popouts: fixed width for battery popout
This commit is contained in:
parent
0cf46c4409
commit
285221b1ff
2 changed files with 2 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ Singleton {
|
|||
property int innerHeight: 30
|
||||
property int windowPreviewSize: 400
|
||||
property int trayMenuWidth: 300
|
||||
property int batteryWidth: 200
|
||||
}
|
||||
|
||||
component Workspaces: QtObject {
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ Column {
|
|||
id: root
|
||||
|
||||
spacing: Appearance.spacing.normal
|
||||
width: BarConfig.sizes.batteryWidth
|
||||
|
||||
StyledText {
|
||||
text: UPower.displayDevice.isLaptopBattery ? qsTr("Remaining: %1%").arg(Math.round(UPower.displayDevice.percentage * 100)) : qsTr("No battery detected")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue