✨ 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

+28
View File
@@ -0,0 +1,28 @@
from fabric.widgets.label import Label
from modules.dashboard.tile import Tile
import utils.icons as icons
class Bluetooth(Tile):
def __init__(self, **kwargs):
self.label = Label(
style_classes=["desc-label", "off"],
label="Off",
h_align="start",
)
self.state = False
super().__init__(
label="Bluetooth",
props=self.label,
markup=icons.bluetooth,
menu=True,
**kwargs,
)
if self.state:
self.add_style_class("on")
else:
self.add_style_class("off")