BatteryPanel: implement basic battery panel with 3 radio buttons

This commit is contained in:
Damian D'Souza
2025-10-09 17:52:35 +02:00
parent 90ed62ccf2
commit 2f515ca3c5
4 changed files with 115 additions and 5 deletions
+1
View File
@@ -96,6 +96,7 @@ Item {
forceOpen: isReady && (testMode || battery.isLaptopBattery) && displayMode === "alwaysShow"
forceClose: displayMode === "alwaysHide"
disableOpen: (!isReady || (!testMode && !battery.isLaptopBattery))
onClicked: PanelService.getPanel("batteryPanel")?.toggle(this)
tooltipText: {
let lines = []
if (testMode) {