aboutsummaryrefslogtreecommitdiff
path: root/src/animate.c
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 /src/animate.c
parent121415c252310fe449ab24640f9312a7971305fb (diff)
Tweak shine animation
Diffstat (limited to 'src/animate.c')
-rw-r--r--src/animate.c4
1 files changed, 2 insertions, 2 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;