From 44dde3d034115ac32b8f9e6637656e63c6f2c8e3 Mon Sep 17 00:00:00 2001 From: Damocles Date: Fri, 10 Apr 2026 14:12:01 +0200 Subject: [PATCH] fix centering --- modules/Bar.qml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/modules/Bar.qml b/modules/Bar.qml index 345184b..d4bd398 100644 --- a/modules/Bar.qml +++ b/modules/Bar.qml @@ -26,15 +26,15 @@ PanelWindow { opacity: M.Theme.barOpacity } - RowLayout { + Item { anchors.fill: parent anchors.leftMargin: 8 anchors.rightMargin: 8 - spacing: 8 // ---- left ---- RowLayout { - Layout.alignment: Qt.AlignLeft + anchors.left: parent.left + anchors.verticalCenter: parent.verticalCenter spacing: 8 // M.Workspaces {} @@ -42,22 +42,19 @@ PanelWindow { M.WindowTitle { Layout.maximumWidth: 400 } } - Item { Layout.fillWidth: true } - // ---- center ---- RowLayout { - Layout.alignment: Qt.AlignHCenter + anchors.centerIn: parent spacing: 8 M.Clock {} M.Notifications {} } - Item { Layout.fillWidth: true } - // ---- right ---- RowLayout { - Layout.alignment: Qt.AlignRight + anchors.right: parent.right + anchors.verticalCenter: parent.verticalCenter spacing: 12 M.Mpris {}