bar: actually center panel workspaces

Cause activetitle moves it around too much
Also swap around tray and clock
This commit is contained in:
2 * r + 2 * t 2025-05-01 01:04:24 +10:00
parent d54df2792a
commit d52112f25e

View file

@ -51,19 +51,10 @@ StyledRect {
Layout.fillHeight: true
}
Workspaces {
vertical: BarConfig.vertical
}
Item {
Layout.fillWidth: true
Layout.fillHeight: true
}
Module {
color: Appearance.colours.green
Tray {
Clock {
colour: Appearance.on(Appearance.colours.green)
anchors.horizontalCenter: root.get(undefined, parent.horizontalCenter)
@ -74,7 +65,7 @@ StyledRect {
Module {
color: Appearance.colours.yellow
Clock {
Tray {
colour: Appearance.on(Appearance.colours.yellow)
anchors.horizontalCenter: root.get(undefined, parent.horizontalCenter)
@ -109,6 +100,13 @@ StyledRect {
}
}
Workspaces {
vertical: BarConfig.vertical
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
}
component Module: PaddedRect {
padding: BarConfig.vertical ? [Appearance.padding.large, 0] : [0, Appearance.padding.large]