bar: actually center panel workspaces
Cause activetitle moves it around too much Also swap around tray and clock
This commit is contained in:
parent
d54df2792a
commit
d52112f25e
1 changed files with 9 additions and 11 deletions
|
|
@ -51,19 +51,10 @@ StyledRect {
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
}
|
}
|
||||||
|
|
||||||
Workspaces {
|
|
||||||
vertical: BarConfig.vertical
|
|
||||||
}
|
|
||||||
|
|
||||||
Item {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.fillHeight: true
|
|
||||||
}
|
|
||||||
|
|
||||||
Module {
|
Module {
|
||||||
color: Appearance.colours.green
|
color: Appearance.colours.green
|
||||||
|
|
||||||
Tray {
|
Clock {
|
||||||
colour: Appearance.on(Appearance.colours.green)
|
colour: Appearance.on(Appearance.colours.green)
|
||||||
|
|
||||||
anchors.horizontalCenter: root.get(undefined, parent.horizontalCenter)
|
anchors.horizontalCenter: root.get(undefined, parent.horizontalCenter)
|
||||||
|
|
@ -74,7 +65,7 @@ StyledRect {
|
||||||
Module {
|
Module {
|
||||||
color: Appearance.colours.yellow
|
color: Appearance.colours.yellow
|
||||||
|
|
||||||
Clock {
|
Tray {
|
||||||
colour: Appearance.on(Appearance.colours.yellow)
|
colour: Appearance.on(Appearance.colours.yellow)
|
||||||
|
|
||||||
anchors.horizontalCenter: root.get(undefined, parent.horizontalCenter)
|
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 {
|
component Module: PaddedRect {
|
||||||
padding: BarConfig.vertical ? [Appearance.padding.large, 0] : [0, Appearance.padding.large]
|
padding: BarConfig.vertical ? [Appearance.padding.large, 0] : [0, Appearance.padding.large]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue