aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-03-16 00:38:25 +0100
committerFederico Angelilli <code@fedang.net>2024-03-16 00:38:25 +0100
commit58476d9c85a427141fdee2d3d74c162ff40aecca (patch)
tree4baf741adc55859f4a624e038027020505c6131d
parent121415c252310fe449ab24640f9312a7971305fb (diff)
Tweak shine animation
-rw-r--r--src/animate.c4
-rw-r--r--src/connect.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/animate.c b/src/animate.c
index 7eca040..7241104 100644
--- a/src/animate.c
+++ b/src/animate.c
@@ -92,11 +92,11 @@ Animation *animation_shine_create(gint64 duration)
shine->anim.duration = duration;
// TODO: Change it depending on container size
- shine->width = 20;
+ shine->width = 25;
shine->gradient = cairo_pattern_create_linear(0, 0, shine->width, 0);
cairo_pattern_add_color_stop_rgba(shine->gradient, 0, 1, 1, 1, 0);
- cairo_pattern_add_color_stop_rgba(shine->gradient, 0.5, 1, 1, 1, 0.333);
+ cairo_pattern_add_color_stop_rgba(shine->gradient, 0.5, 1, 1, 1, 0.2);
cairo_pattern_add_color_stop_rgba(shine->gradient, 1, 1, 1, 1, 0);
return (gpointer)shine;
diff --git a/src/connect.c b/src/connect.c
index 8e2578c..ed5a23b 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(300 * G_TIME_SPAN_MILLISECOND);
+ //Animation *anim = animation_pulse_create(200 * G_TIME_SPAN_MILLISECOND);
if (button_set_animation(btn, anim))
state_request_animation(state);