Completed notification todo animations
This commit is contained in:
1 parent
47d2d4a847
commit
63ee181839
3 files changed
+13
-13
No files matched your search
@@ -8,20 +8,20 @@ from modules.dock import Dock
|
|||||||
from modules.launcher.main import Launcher
|
from modules.launcher.main import Launcher
|
||||||
from modules.osd import OSD
|
from modules.osd import OSD
|
||||||
from modules.about import About
|
from modules.about import About
|
||||||
from modules.notification import EnvNoti
|
from modules.notification import ModusNoti
|
||||||
|
|
||||||
# from modules.corners import Corners
|
# from modules.corners import Corners
|
||||||
from modules.panel.main import Panel
|
from modules.panel.main import Panel
|
||||||
from modules.switcher import ApplicationSwitcher
|
from modules.switcher import ApplicationSwitcher
|
||||||
|
|
||||||
# for log in [
|
for log in [
|
||||||
# "fabric.hyprland.widgets",
|
"fabric.hyprland.widgets",
|
||||||
# "fabric.audio.service",
|
"fabric.audio.service",
|
||||||
# "fabric.bluetooth.service",
|
"fabric.bluetooth.service",
|
||||||
# "services.network",
|
"services.network",
|
||||||
# "utils.wayland",
|
"utils.wayland",
|
||||||
# ]:
|
]:
|
||||||
# logger.disable(log)
|
logger.disable(log)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
@@ -36,7 +36,7 @@ if __name__ == "__main__":
|
|||||||
panel = Panel()
|
panel = Panel()
|
||||||
# corners = Corners()
|
# corners = Corners()
|
||||||
dock = Dock()
|
dock = Dock()
|
||||||
envnoti = EnvNoti()
|
envnoti = ModusNoti()
|
||||||
switcher = ApplicationSwitcher()
|
switcher = ApplicationSwitcher()
|
||||||
launcher = Launcher()
|
launcher = Launcher()
|
||||||
panel.launcher = launcher
|
panel.launcher = launcher
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ class NotificationWidget(Box):
|
|||||||
self._notification = notification
|
self._notification = notification
|
||||||
|
|
||||||
self.image = notification.app_icon
|
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)
|
# Load and show image (from app_icon, image_file, or pixbuf)
|
||||||
pixbuf = get_notification_image_pixbuf(notification)
|
pixbuf = get_notification_image_pixbuf(notification)
|
||||||
@@ -172,7 +172,7 @@ class NotificationWidget(Box):
|
|||||||
self.destroy()
|
self.destroy()
|
||||||
|
|
||||||
|
|
||||||
class EnvNoti(Window):
|
class ModusNoti(Window):
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
super().__init__(
|
super().__init__(
|
||||||
margin="8px 8px 8px 8px",
|
margin="8px 8px 8px 8px",
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#noti-image image{
|
#noti-image image{
|
||||||
border-radius: 16px;
|
border-radius: 25px;
|
||||||
}
|
}
|
||||||
#notification-action:hover {
|
#notification-action:hover {
|
||||||
background-color: #007aff; /* macOS-style blue */
|
background-color: #007aff; /* macOS-style blue */
|
||||||
|
|||||||
Reference in new issue
Block a user