Centre the quick settings panel under the clock
This commit is contained in:
@@ -192,13 +192,10 @@ Item {
|
||||
onClicked: root.dismiss()
|
||||
}
|
||||
|
||||
Row {
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: Style.spaceReal(10) + root.barInset
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
spacing: Style.spaceReal(12)
|
||||
|
||||
WeatherCard {
|
||||
anchors.top: controlCentre.top
|
||||
anchors.right: controlCentre.left
|
||||
anchors.rightMargin: Style.spaceReal(12)
|
||||
available: root.weatherAvailable
|
||||
glyph: root.weatherGlyph
|
||||
place: root.weatherPlace
|
||||
@@ -208,6 +205,9 @@ Item {
|
||||
|
||||
Card {
|
||||
id: controlCentre
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: Style.spaceReal(10) + root.barInset
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
implicitWidth: Style.spaceReal(400)
|
||||
fillColor: Util.alpha(Color.background, Style.panelFillAlpha)
|
||||
spacing: Style.spaceReal(12)
|
||||
@@ -272,7 +272,6 @@ Item {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
onOpenedChanged: if (root.opened) root.refreshState()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user