feat(desktop): updates

This commit is contained in:
sankalp committed 2026-07-27 14:27:13 +05:45
1 parent fc7f2851c9
commit 29f3519965
13 files changed
+549 -29

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
from fabric.widgets.box import Box
from fabric.widgets.label import Label
from window.desktop.registry import DesktopWidgetRegistry
class ExampleClockWidget(Box):
def __init__(self, **kwargs):
super().__init__(
name="example-widget",
orientation="v",
h_expand=True,
v_expand=True,
h_align="center",
v_align="center",
**kwargs,
)
self.label = Label(
name="examplelabel",
label="Hello Desktop",
justification="center",
)
self.add(self.label)
DesktopWidgetRegistry.register(
"example",
ExampleClockWidget,
(174, 174),
(0.45, 0.45),
)