✨ feat(dock, components, battery): add BatteryPopup with power profile switcher and battery info
This commit is contained in:
3 files changed
+512
-147
No files matched your search
+1
-1
@@ -55,7 +55,7 @@ class Battery(Service):
|
||||
|
||||
@Property(str, "readable")
|
||||
def capacity(self):
|
||||
return f"{self._battery.Capacity}%"
|
||||
return f"{int(self._battery.Capacity)}%"
|
||||
|
||||
@Property(bool, "readable", default_value=False)
|
||||
def is_present(self):
|
||||
|
||||
Reference in new issue
Block a user