feat(root): add OSD module and clean up CSS imports

New Features
- Introduced OSD functionality integrated into the application.

Enhancements
- Removed unused stylesheet imports from main.css and corrected the stylesheet path to `styles/main.css`.
- Adjusted the lambda in the network service for consistent method invocation.

Bug Fixes
- Ensured `on_access_point_activated` is properly called when the active access point changes.
This commit is contained in:
sankalp committed 2026-02-26 06:54:48 +05:45
1 parent 2c1ec69023
commit 5bef139db9
3 files changed
+7 -43

No files matched your search

+4 -8
View File
@@ -4,6 +4,7 @@ from fabric.utils import get_relative_path, logger, monitor_file
from config.data import APP_NAME
from modules.desktop.widget import Deskwidgets
from modules.notification.notification import ModusNoti
from modules.osd import OSD
from modules.panel.main import Panel
from utils.functions import set_process_name
@@ -28,21 +29,16 @@ if __name__ == "__main__":
panel = Panel()
modusnoti = ModusNoti()
deskwidget = Deskwidgets()
osd = OSD()
# Monitor CSS files for changes
css_file = monitor_file(get_relative_path("styles"))
_ = css_file.connect("changed", lambda *_: set_css())
app = Application(
f"{APP_NAME}",
panel,
modusnoti,
deskwidget,
)
app = Application(f"{APP_NAME}", panel, modusnoti, deskwidget, osd)
def set_css():
app.set_stylesheet_from_file(
get_relative_path("main.css"),
get_relative_path("styles/main.css"),
)
app.set_css = set_css