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 {}