✨ 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
@@ -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")
|
||||
Reference in new issue
Block a user