This commit is contained in:
2026-03-13 00:51:09 +00:00
parent 824f75f9cb
commit ea47a2ca71
4 changed files with 42 additions and 4 deletions

View File

@@ -0,0 +1,31 @@
import QtQuick
import QtQuick.Layouts
import Quickshell
import Quickshell.Services.UPower
Item {
id: root
// enabled: uPowerExists
width: content.width
height: content.height
Layout.alignment: Qt.AlignCenter
RowLayout {
id: content
height: 20
anchors.centerIn: root
Rectangle {
height: text.height
width: text.width
color: Colors.backgroundAlt
Layout.alignment: Qt.AlignCenter
Text {
property int power: UPower.displayDevice.percentage * 100
id: text
anchors.centerIn: parent
text: power
color: Colors.textPrimary
}
}
}
}