From d52112f25e190201060c5414151dd3a3d185146a Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 1 May 2025 01:04:24 +1000 Subject: bar: actually center panel workspaces Cause activetitle moves it around too much Also swap around tray and clock --- modules/bar/Panel.qml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/modules/bar/Panel.qml b/modules/bar/Panel.qml index ee0c0ea..62d2776 100644 --- a/modules/bar/Panel.qml +++ b/modules/bar/Panel.qml @@ -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] -- cgit v1.2.3-freya