mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
CompositorService: use idx for niri workspaces
This commit is contained in:
@@ -41,14 +41,14 @@ Rectangle {
|
||||
implicitHeight: compactMode ? (timeText.implicitHeight + dateText.implicitHeight + Math.round(
|
||||
Style.marginXS * scaling) + Math.round(Style.marginM * 2 * scaling)) : Math.round(
|
||||
Style.capsuleHeight * scaling)
|
||||
radius: Math.round(Style.radiusM * scaling)
|
||||
radius: Math.round(implicitHeight / 2)
|
||||
color: Color.mSurfaceVariant
|
||||
|
||||
// Clock with optional compact layout & attached calendar
|
||||
Item {
|
||||
id: clockContainer
|
||||
anchors.fill: parent
|
||||
anchors.margins: Math.round((compactMode ? Style.marginXS : Style.marginM) * scaling)
|
||||
anchors.margins: 0
|
||||
|
||||
Column {
|
||||
id: compactColumn
|
||||
|
||||
@@ -37,7 +37,7 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: "Compact clock (date under time)"
|
||||
label: "Compact Mode"
|
||||
checked: valueCompactMode
|
||||
onToggled: checked => valueCompactMode = checked
|
||||
}
|
||||
|
||||
@@ -281,7 +281,7 @@ Singleton {
|
||||
if (a.output !== b.output) {
|
||||
return a.output.localeCompare(b.output)
|
||||
}
|
||||
return a.id - b.id
|
||||
return a.idx - b.idx
|
||||
})
|
||||
|
||||
// Update the workspaces ListModel
|
||||
|
||||
Reference in New Issue
Block a user