fix battery icon centering issue
This commit is contained in:
parent
848c0b3af3
commit
50ca7c10d1
@ -22,7 +22,6 @@ Loader {
|
|||||||
implicitHeight: Settings.config.barHeight
|
implicitHeight: Settings.config.barHeight
|
||||||
Row {
|
Row {
|
||||||
anchors.centerIn: batRow
|
anchors.centerIn: batRow
|
||||||
anchors.verticalCenter: batRow.verticalCenter
|
|
||||||
CustomText {
|
CustomText {
|
||||||
id: batText
|
id: batText
|
||||||
text: Math.round(UPower.displayDevice.percentage * 100) + "%"
|
text: Math.round(UPower.displayDevice.percentage * 100) + "%"
|
||||||
@ -30,9 +29,9 @@ Loader {
|
|||||||
|
|
||||||
IconImage {
|
IconImage {
|
||||||
id: batIcon
|
id: batIcon
|
||||||
anchors.verticalCenter: batRow.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
source: Quickshell.iconPath(UPower.displayDevice.iconName)
|
source: Quickshell.iconPath(UPower.displayDevice.iconName)
|
||||||
implicitSize: 14
|
implicitSize: 12
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user