feat: improve notification animation smoothness and duration
This commit is contained in:
1 parent
4a906425b3
commit
84d0f14526
2 files changed
+13
-26
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user