bar: make power button smaller
Also move the circle logic to the pills preset and fix for other font sizes
This commit is contained in:
parent
9b4324310d
commit
7f93c3ed13
2 changed files with 8 additions and 2 deletions
|
|
@ -95,7 +95,14 @@ Item {
|
|||
}
|
||||
|
||||
Pill {
|
||||
// Make circle
|
||||
Layout.maximumWidth: BarConfig.sizes.height
|
||||
Layout.maximumHeight: BarConfig.sizes.height
|
||||
|
||||
Power {
|
||||
// Center in pill
|
||||
x: (BarConfig.sizes.height - width) / 2
|
||||
|
||||
anchors.horizontalCenter: root.get(undefined, parent.horizontalCenter)
|
||||
anchors.verticalCenter: root.get(parent.verticalCenter, undefined)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,5 @@ MaterialIcon {
|
|||
text: "power_settings_new"
|
||||
color: Appearance.colours.red
|
||||
font.bold: true
|
||||
x: implicitWidth + Appearance.padding.large * 2 - BarConfig.sizes.height
|
||||
width: BarConfig.sizes.height - Appearance.padding.large * 2
|
||||
font.pointSize: Appearance.font.size.normal
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue