From eca301553eb8344c24798845ea75781718b211e1 Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Sun, 14 Sep 2025 21:51:43 -0400 Subject: [PATCH] Bar: better vertical centering on horizontal bar. --- Modules/Bar/Bar.qml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Modules/Bar/Bar.qml b/Modules/Bar/Bar.qml index adc849e..a15d92e 100644 --- a/Modules/Bar/Bar.qml +++ b/Modules/Bar/Bar.qml @@ -91,7 +91,7 @@ Variants { anchors.fill: parent // Top section (left widgets) - Column { + ColumnLayout { anchors.horizontalCenter: parent.horizontalCenter anchors.top: parent.top anchors.topMargin: Style.marginM * root.scaling @@ -115,7 +115,7 @@ Variants { } // Center section (center widgets) - Column { + ColumnLayout { anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter spacing: Style.marginS * root.scaling @@ -138,7 +138,7 @@ Variants { } // Bottom section (right widgets) - Column { + ColumnLayout { anchors.horizontalCenter: parent.horizontalCenter anchors.bottom: parent.bottom anchors.bottomMargin: Style.marginM * root.scaling @@ -169,7 +169,7 @@ Variants { anchors.fill: parent // Left Section - RowLayout { + RowLayout{ id: leftSection objectName: "leftSection" anchors.left: parent.left @@ -189,6 +189,7 @@ Variants { "sectionWidgetIndex": index, "sectionWidgetsCount": Settings.data.bar.widgets.left.length } + Layout.alignment: Qt.alignVCenter } } } @@ -213,6 +214,7 @@ Variants { "sectionWidgetIndex": index, "sectionWidgetsCount": Settings.data.bar.widgets.center.length } + Layout.alignment: Qt.alignVCenter } } } @@ -238,6 +240,7 @@ Variants { "sectionWidgetIndex": index, "sectionWidgetsCount": Settings.data.bar.widgets.right.length } + Layout.alignment: Qt.alignVCenter } } }