refactor(config): reorganize bar layout widgets

This commit is contained in:
tux
2026-08-23 13:11:12 +05:30
parent 3779974cb2
commit 2b93af1a08
2 changed files with 8 additions and 4 deletions

View File

@@ -14,11 +14,12 @@ Singleton {
property var left: [ property var left: [
root.widget("LauncherButton"), root.widget("LauncherButton"),
root.widget("BatteryIndicator"), root.widget("BatteryIndicator"),
root.widget("CavaVisualizer")
] ]
property var center: [ property var center: [
root.widget("Workspaces") root.widget("CavaVisualizer"),
root.widget("Workspaces"),
root.widget("CavaVisualizer"),
] ]
property var right: [ property var right: [

View File

@@ -36,9 +36,11 @@ PanelWindow {
implicitHeight: parent.height implicitHeight: parent.height
Layout.fillWidth: true 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 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 spacing: Appearance.spacing
Repeater { Repeater {
@@ -48,6 +50,7 @@ PanelWindow {
required property var modelData required property var modelData
source: modelData source: modelData
Layout.alignment: Qt.AlignVCenter
} }
} }
} }