From 63ee181839092be614ef3b38d470c37e819f005e Mon Sep 17 00:00:00 2001 From: tr1x_em Date: Wed, 30 Jul 2025 22:54:00 +0530 Subject: [PATCH] Completed notification todo animations --- main.py | 20 ++++++++++---------- modules/notification.py | 4 ++-- styles/notification.css | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/main.py b/main.py index 95fb2a4..815b680 100644 --- a/main.py +++ b/main.py @@ -8,20 +8,20 @@ from modules.dock import Dock from modules.launcher.main import Launcher from modules.osd import OSD from modules.about import About -from modules.notification import EnvNoti +from modules.notification import ModusNoti # from modules.corners import Corners from modules.panel.main import Panel from modules.switcher import ApplicationSwitcher -# for log in [ -# "fabric.hyprland.widgets", -# "fabric.audio.service", -# "fabric.bluetooth.service", -# "services.network", -# "utils.wayland", -# ]: -# logger.disable(log) +for log in [ + "fabric.hyprland.widgets", + "fabric.audio.service", + "fabric.bluetooth.service", + "services.network", + "utils.wayland", +]: + logger.disable(log) if __name__ == "__main__": @@ -36,7 +36,7 @@ if __name__ == "__main__": panel = Panel() # corners = Corners() dock = Dock() - envnoti = EnvNoti() + envnoti = ModusNoti() switcher = ApplicationSwitcher() launcher = Launcher() panel.launcher = launcher diff --git a/modules/notification.py b/modules/notification.py index 9896401..5263079 100644 --- a/modules/notification.py +++ b/modules/notification.py @@ -60,7 +60,7 @@ class NotificationWidget(Box): self._notification = notification self.image = notification.app_icon - body_container = Box(spacing=4, orientation="h") + body_container = Box(name="noti-image", spacing=4, orientation="h") # Load and show image (from app_icon, image_file, or pixbuf) pixbuf = get_notification_image_pixbuf(notification) @@ -172,7 +172,7 @@ class NotificationWidget(Box): self.destroy() -class EnvNoti(Window): +class ModusNoti(Window): def __init__(self, **kwargs): super().__init__( margin="8px 8px 8px 8px", diff --git a/styles/notification.css b/styles/notification.css index dec5efc..798fcb4 100644 --- a/styles/notification.css +++ b/styles/notification.css @@ -43,7 +43,7 @@ } #noti-image image{ - border-radius: 16px; + border-radius: 25px; } #notification-action:hover { background-color: #007aff; /* macOS-style blue */