diff --git a/modules/Bar.qml b/modules/Bar.qml index a01ba5a..c3c16fc 100644 --- a/modules/Bar.qml +++ b/modules/Bar.qml @@ -27,35 +27,39 @@ PanelWindow { opacity: M.Theme.barOpacity } - RowLayout { + Item { anchors.fill: parent anchors.leftMargin: 8 anchors.rightMargin: 8 - spacing: 0 - // ---- left ---- + // ---- center (declared first so left/right can anchor to it) ---- RowLayout { - Layout.fillWidth: true + id: centerSection + anchors.horizontalCenter: parent.horizontalCenter + anchors.verticalCenter: parent.verticalCenter spacing: 8 - M.Workspaces {} - M.Tray { bar: bar } - M.WindowTitle { Layout.maximumWidth: 400 } - Item { Layout.fillWidth: true } - } - - // ---- center ---- - RowLayout { - spacing: 8 - Layout.alignment: Qt.AlignVCenter - M.Clock {} M.Notifications {} } + // ---- left ---- + RowLayout { + anchors.left: parent.left + anchors.right: centerSection.left + anchors.verticalCenter: parent.verticalCenter + spacing: 8 + + M.Workspaces {} + M.Tray { bar: bar } + M.WindowTitle { Layout.maximumWidth: 400 } + } + // ---- right ---- RowLayout { - Layout.fillWidth: true + anchors.left: centerSection.right + anchors.right: parent.right + anchors.verticalCenter: parent.verticalCenter spacing: 12 Item { Layout.fillWidth: true }