This commit is contained in:
2026-03-18 12:09:46 +00:00
parent 6de66cf1cf
commit 4a1e5afd79

View File

@@ -8,6 +8,7 @@ RowLayout {
height: 20 height: 20
anchors.centerIn: root anchors.centerIn: root
visible: UPower.displayDevice.percentage != 0 visible: UPower.displayDevice.percentage != 0
property string charging: (UPower.displayDevice.changeRate > 0) ? "Charging.." : ""
Rectangle { Rectangle {
implicitHeight: text.height implicitHeight: text.height
implicitWidth: text.width implicitWidth: text.width
@@ -18,7 +19,7 @@ RowLayout {
id: text id: text
property int power: UPower.displayDevice.percentage * 100 property int power: UPower.displayDevice.percentage * 100
anchors.centerIn: parent anchors.centerIn: parent
text: power + "%" text: charging + " " + power + "%"
color: Colors.textPrimary color: Colors.textPrimary
} }
} }