fix clock centering
This commit is contained in:
parent
bf46b0f277
commit
3c9f6e78cc
1 changed files with 37 additions and 27 deletions
|
|
@ -26,12 +26,17 @@ PanelWindow {
|
||||||
opacity: M.Theme.barOpacity
|
opacity: M.Theme.barOpacity
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
RowLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.leftMargin: 8
|
anchors.leftMargin: 8
|
||||||
anchors.rightMargin: 8
|
anchors.rightMargin: 8
|
||||||
|
spacing: 0
|
||||||
|
|
||||||
// ---- left ----
|
// ---- left ----
|
||||||
|
Item {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.fillHeight: true
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
@ -41,10 +46,10 @@ PanelWindow {
|
||||||
M.Tray { bar: bar }
|
M.Tray { bar: bar }
|
||||||
M.WindowTitle { Layout.maximumWidth: 400 }
|
M.WindowTitle { Layout.maximumWidth: 400 }
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ---- center ----
|
// ---- center ----
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.centerIn: parent
|
|
||||||
spacing: 8
|
spacing: 8
|
||||||
|
|
||||||
M.Clock {}
|
M.Clock {}
|
||||||
|
|
@ -52,6 +57,10 @@ PanelWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---- right ----
|
// ---- right ----
|
||||||
|
Item {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.fillHeight: true
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
@ -74,3 +83,4 @@ PanelWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue