CompositorService: use idx for niri workspaces
This commit is contained in:
parent
baafe54d13
commit
a029463527
3 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue