feat: improve notification animation smoothness and duration

This commit is contained in:
tr1x_em committed 2025-08-02 21:30:13 +05:30
1 parent 4a906425b3
commit 84d0f14526
2 files changed
+13 -26

No files matched your search

+2 -2
View File
@@ -24,7 +24,7 @@ NOTIFICATION_WIDTH = 360
NOTIFICATION_IMAGE_SIZE = 48
def smooth_revealer_animation(revealer: SlideRevealer, duration: int = 500):
def smooth_revealer_animation(revealer: SlideRevealer, duration: int = 400):
revealer.duration = duration
@@ -285,7 +285,7 @@ class NotificationRevealer(SlideRevealer):
super().__init__(
child=self.event_box,
direction="right",
duration=600,
duration=400, # Reduced duration for snappier animations
)
smooth_revealer_animation(self)