From e8171be6f216e3afa4f69e9cd654c4ba2db593c1 Mon Sep 17 00:00:00 2001 From: tr1x_em Date: Sat, 2 Aug 2025 21:30:12 +0530 Subject: [PATCH] fix: update animation duration in smooth_revealer_animation and SlideRevealer --- modules/notification/notification.py | 2 +- widgets/customrevealer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/notification/notification.py b/modules/notification/notification.py index c125f72..11c8549 100644 --- a/modules/notification/notification.py +++ b/modules/notification/notification.py @@ -24,7 +24,7 @@ NOTIFICATION_WIDTH = 360 NOTIFICATION_IMAGE_SIZE = 48 -def smooth_revealer_animation(revealer: SlideRevealer, duration: int = 600): +def smooth_revealer_animation(revealer: SlideRevealer, duration: int = 500): revealer.duration = duration diff --git a/widgets/customrevealer.py b/widgets/customrevealer.py index 9576137..e33d08f 100644 --- a/widgets/customrevealer.py +++ b/widgets/customrevealer.py @@ -87,7 +87,7 @@ class AnimationManager: class SlideRevealer(Gtk.Overlay): - def __init__(self, child: Gtk.Widget, direction="right", duration=300, size=None): + def __init__(self, child: Gtk.Widget, direction="right", duration=600, size=None): super().__init__() self.child = child