✨ feat: add dashboard module with network, bluetooth and player controls
This commit is contained in:
18 files changed
+1946
-849
No files matched your search
@@ -39,8 +39,6 @@ class Battery(Box):
|
||||
child=self.circle,
|
||||
)
|
||||
|
||||
|
||||
|
||||
# Create percentage label
|
||||
self.level = Label(
|
||||
name="battery-level",
|
||||
@@ -76,8 +74,6 @@ class Battery(Box):
|
||||
# Initial update
|
||||
GLib.idle_add(self.update_battery)
|
||||
|
||||
|
||||
|
||||
def on_query_tooltip(self, _widget, _x, _y, _keyboard_mode, tooltip):
|
||||
"""Handle tooltip query"""
|
||||
tooltip.set_markup(self.get_tooltip_text())
|
||||
@@ -161,7 +157,6 @@ class Battery(Box):
|
||||
else:
|
||||
self.level.set_visible(False)
|
||||
|
||||
|
||||
# Apply alert styling if battery is low AND not charging
|
||||
if percentage <= 15 and not charging:
|
||||
self.icon.add_style_class("alert")
|
||||
|
||||
Reference in new issue
Block a user