fix alignment again?
This commit is contained in:
parent
5070429bf8
commit
5316f40967
1 changed files with 20 additions and 16 deletions
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue