fix centering
This commit is contained in:
parent
450f24528c
commit
44dde3d034
1 changed files with 6 additions and 9 deletions
|
|
@ -26,15 +26,15 @@ 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: 8
|
|
||||||
|
|
||||||
// ---- left ----
|
// ---- left ----
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.alignment: Qt.AlignLeft
|
anchors.left: parent.left
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
spacing: 8
|
spacing: 8
|
||||||
|
|
||||||
// M.Workspaces {}
|
// M.Workspaces {}
|
||||||
|
|
@ -42,22 +42,19 @@ PanelWindow {
|
||||||
M.WindowTitle { Layout.maximumWidth: 400 }
|
M.WindowTitle { Layout.maximumWidth: 400 }
|
||||||
}
|
}
|
||||||
|
|
||||||
Item { Layout.fillWidth: true }
|
|
||||||
|
|
||||||
// ---- center ----
|
// ---- center ----
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.alignment: Qt.AlignHCenter
|
anchors.centerIn: parent
|
||||||
spacing: 8
|
spacing: 8
|
||||||
|
|
||||||
M.Clock {}
|
M.Clock {}
|
||||||
M.Notifications {}
|
M.Notifications {}
|
||||||
}
|
}
|
||||||
|
|
||||||
Item { Layout.fillWidth: true }
|
|
||||||
|
|
||||||
// ---- right ----
|
// ---- right ----
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.alignment: Qt.AlignRight
|
anchors.right: parent.right
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
spacing: 12
|
spacing: 12
|
||||||
|
|
||||||
M.Mpris {}
|
M.Mpris {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue