feat(src/shared/widgets):add bezier_curve property and trigger animation on active

This commit is contained in:
sankalp committed 2026-06-17 04:52:09 +05:45
1 parent 32080ab17f
commit bceebd646c
2 files changed
+15

No files matched your search

+3
View File
@@ -55,6 +55,9 @@ class SmoothSwitch(Gtk.DrawingArea):
max_value=1.0,
tick_widget=self,
)
if active:
self._animator.value = 1.0
self._animator.connect("notify::value", lambda *_: self.queue_draw())
self.add_events(