From 185e7618a4293a7ea55d695340e15f26d48a6576 Mon Sep 17 00:00:00 2001 From: voidarc Date: Thu, 6 Aug 2026 17:43:44 +0100 Subject: [PATCH] fixed weird layout thing --- Bar.qml | 65 +++++++++++++++++++++++++++++++-------------------------- 1 file changed, 35 insertions(+), 30 deletions(-) diff --git a/Bar.qml b/Bar.qml index 77c92a9..60a9880 100644 --- a/Bar.qml +++ b/Bar.qml @@ -51,47 +51,52 @@ Scope { topMargin: 3 } - RowLayout { + anchors { + left: parent.left + leftMargin: 3 + right: parent.right + rightMargin: 3 + top: parent.top + } + + Row { + id: left + anchors { left: parent.left - leftMargin: 3 - right: parent.right - rightMargin: 3 top: parent.top } - Row { - id: left + WorkspaceSelector { + monitor: win.monitor + } + } - Layout.alignment: Qt.AlignTop + Row { + id: center - WorkspaceSelector { - monitor: win.monitor - } + anchors { + horizontalCenter: parent.horizontalCenter + top: parent.top } - Item { - Layout.fillWidth: true + Time { + monitor: win.monitor + } + } + + Row { + id: right + + Layout.alignment: Qt.AlignTop + + anchors { + right: parent.right + top: parent.top } - Row { - id: center - - Layout.alignment: Qt.AlignTop - - Time { - monitor: win.monitor - } - } - - Item { - Layout.fillWidth: true - } - - Row { - id: right - - Layout.alignment: Qt.AlignTop + Bluetooth { + monitor: win.monitor } } }