fix centering

This commit is contained in:
Damocles 2026-04-10 14:12:01 +02:00
parent 450f24528c
commit 44dde3d034

View file

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