fix alignment again?

This commit is contained in:
Damocles 2026-04-11 00:15:14 +02:00
parent 5070429bf8
commit 5316f40967

View file

@ -27,35 +27,39 @@ PanelWindow {
opacity: M.Theme.barOpacity opacity: M.Theme.barOpacity
} }
RowLayout { Item {
anchors.fill: parent anchors.fill: parent
anchors.leftMargin: 8 anchors.leftMargin: 8
anchors.rightMargin: 8 anchors.rightMargin: 8
spacing: 0
// ---- left ---- // ---- center (declared first so left/right can anchor to it) ----
RowLayout { RowLayout {
Layout.fillWidth: true id: centerSection
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
spacing: 8 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.Clock {}
M.Notifications {} 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 ---- // ---- right ----
RowLayout { RowLayout {
Layout.fillWidth: true anchors.left: centerSection.right
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
spacing: 12 spacing: 12
Item { Layout.fillWidth: true } Item { Layout.fillWidth: true }