feat(src/shared/widgets):add bezier_curve property and trigger animation on active
This commit is contained in:
2 files changed
+15
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user