From 6e6992ec09edf79ef2cdcaf249e31809cf7d3145 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Sun, 17 Mar 2024 15:12:45 +0100 Subject: Add millis macro and refactor --- src/connect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/connect.c') diff --git a/src/connect.c b/src/connect.c index 3788db1..4b04ac4 100644 --- a/src/connect.c +++ b/src/connect.c @@ -113,8 +113,8 @@ static bool button_action_find(State *state, GList *layouts, int x, int y) } // NOTE: Animations may change the layouts! - Animation *anim = animation_shine_create(300 * G_TIME_SPAN_MILLISECOND); - //Animation *anim = animation_pulse_create(200 * G_TIME_SPAN_MILLISECOND); + Animation *anim = animation_shine_create(MILLIS(250)); + //Animation *anim = animation_pulse_create(MILLIS(200)); if (button_set_animation(btn, anim)) state_request_animation(state); -- cgit v1.2.3