✨ feat: add dashboard module with network, bluetooth and player controls

This commit is contained in:
sankalp committed 2025-07-24 12:46:41 +05:45
1 parent fef4312996
commit 943fe24a55
18 files changed
+1946 -849

No files matched your search

-5
View File
@@ -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")