♻️ refactor(notification): use custom notification service instead of roam service

This commit is contained in:
sankalp committed 2025-08-06 12:29:52 +05:45
1 parent b497c61fa0
commit 39cdc51e62
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -20,6 +20,7 @@ from utils.roam import modus_service
from widgets.custom_image import CustomImage from widgets.custom_image import CustomImage
from widgets.customrevealer import SlideRevealer from widgets.customrevealer import SlideRevealer
from widgets.wayland import WaylandWindow as Window from widgets.wayland import WaylandWindow as Window
from services.modus import notification_service
NOTIFICATION_WIDTH = 360 NOTIFICATION_WIDTH = 360
NOTIFICATION_IMAGE_SIZE = 48 NOTIFICATION_IMAGE_SIZE = 48
@@ -458,7 +459,7 @@ class NotificationState:
class ModusNoti(Window): class ModusNoti(Window):
def __init__(self): def __init__(self):
self._server = modus_service.notification_service self._server = notification_service
self.notifications = Box( self.notifications = Box(
v_expand=True, v_expand=True,
+1 -1
View File
@@ -6,7 +6,7 @@ from loguru import logger
from fabric.core.service import Property, Service, Signal from fabric.core.service import Property, Service, Signal
from fabric.hyprland.service import Hyprland from fabric.hyprland.service import Hyprland
from fabric.notifications import Notification from fabric.notifications import Notification
from services.new_notification import CachedNotifications from services.custom_notification import CachedNotifications
notification_service = CachedNotifications() notification_service = CachedNotifications()