better centering of the power down icon
This commit is contained in:
parent
84bf78fc46
commit
3161ac6c83
1 changed files with 4 additions and 1 deletions
|
|
@ -130,11 +130,12 @@ Rectangle {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
anchors.horizontalCenterOffset: -1
|
anchors.horizontalCenterOffset: -0.5 * Theme.scale(Screen)
|
||||||
text: "settings"
|
text: "settings"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(Screen)
|
||||||
color: settingsButtonArea.containsMouse || settingsButtonArea.pressed ? Theme.backgroundPrimary : Theme.accentPrimary
|
color: settingsButtonArea.containsMouse || settingsButtonArea.pressed ? Theme.backgroundPrimary : Theme.accentPrimary
|
||||||
|
font.variableAxes: { "wght": (Font.Normal + Font.Bold) / 2.0 }
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
@ -172,10 +173,12 @@ Rectangle {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
anchors.horizontalCenterOffset: -0.5 * Theme.scale(Screen)
|
||||||
text: "power_settings_new"
|
text: "power_settings_new"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(Screen)
|
||||||
color: systemButtonArea.containsMouse || systemButtonArea.pressed ? Theme.backgroundPrimary : Theme.accentPrimary
|
color: systemButtonArea.containsMouse || systemButtonArea.pressed ? Theme.backgroundPrimary : Theme.accentPrimary
|
||||||
|
font.variableAxes: { "wght": (Font.Normal + Font.Bold) / 2.0 }
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue