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