From 2b93af1a0861b75e16a71b5b3f3b30739ddbac93 Mon Sep 17 00:00:00 2001 From: tux Date: Sun, 23 Aug 2026 13:11:12 +0530 Subject: [PATCH] refactor(config): reorganize bar layout widgets --- config/BarLayout.qml | 5 +++-- windows/Bar.qml | 7 +++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/config/BarLayout.qml b/config/BarLayout.qml index a76b3f5..97bef46 100644 --- a/config/BarLayout.qml +++ b/config/BarLayout.qml @@ -14,11 +14,12 @@ Singleton { property var left: [ root.widget("LauncherButton"), root.widget("BatteryIndicator"), - root.widget("CavaVisualizer") ] property var center: [ - root.widget("Workspaces") + root.widget("CavaVisualizer"), + root.widget("Workspaces"), + root.widget("CavaVisualizer"), ] property var right: [ diff --git a/windows/Bar.qml b/windows/Bar.qml index a20b795..2641766 100644 --- a/windows/Bar.qml +++ b/windows/Bar.qml @@ -36,9 +36,11 @@ PanelWindow { implicitHeight: parent.height Layout.fillWidth: true - Row { + RowLayout { + id: secRow + + anchors.verticalCenter: parent.verticalCenter x: section.alignment === Qt.AlignLeft ? 0 : section.alignment === Qt.AlignRight ? parent.width - width : (parent.width - width) / 2 - y: (section.height - height) / 2 spacing: Appearance.spacing Repeater { @@ -48,6 +50,7 @@ PanelWindow { required property var modelData source: modelData + Layout.alignment: Qt.AlignVCenter } } }