This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch main
in repository engage.
View the commit online.
commit 6a7ab0426f8fdced46fe499496e34d5faaaf8197
Author: Alastair Poole <[email protected]>
AuthorDate: Thu Dec 3 07:21:57 2026 +0000
dock: restore the square running indicator for animated icons
The radial gradient made the pulsing running indicator look like a
round glow. Use a solid square when dock animations are enabled and
keep the existing pulse timing.
Keep the radial gradient for static indicators. Premultiply each
stop's RGB channels by its alpha before passing the stops to Evas
so transparent stops fade out correctly.
---
engage_dock.c | 27 +++++++++++++++++++++++----
1 file changed, 23 insertions(+), 4 deletions(-)
diff --git a/engage_dock.c b/engage_dock.c
index 25d8090..b5c1493 100644
--- a/engage_dock.c
+++ b/engage_dock.c
@@ -1170,8 +1170,23 @@ running_indicator_add(Evas *evas)
evas_object_vg_root_node_set(indicator, root);
shape = evas_vg_shape_add(root);
+ if (!shape)
+ {
+ evas_object_del(indicator);
+ return NULL;
+ }
+
+ evas_object_vg_viewbox_set(indicator, EINA_RECT(0, 0, 100, 100));
+ evas_object_vg_fill_mode_set(indicator, EVAS_OBJECT_VG_FILL_MODE_STRETCH);
+ evas_vg_shape_append_rect(shape, 0, 0, 100, 100, 0, 0);
+ if (engage_config_dock_animations_get())
+ {
+ evas_vg_node_color_set(shape, r, g, b, a);
+ return indicator;
+ }
+
gradient = evas_vg_gradient_radial_add(root);
- if (!shape || !gradient)
+ if (!gradient)
{
evas_object_del(indicator);
return NULL;
@@ -1186,9 +1201,13 @@ running_indicator_add(Evas *evas)
{ 0.91, r, g, b, a / 20 },
{ 1.00, r, g, b, 0 }
};
- evas_object_vg_viewbox_set(indicator, EINA_RECT(0, 0, 100, 100));
- evas_object_vg_fill_mode_set(indicator, EVAS_OBJECT_VG_FILL_MODE_STRETCH);
- evas_vg_shape_append_rect(shape, 0, 0, 100, 100, 0, 0);
+ unsigned int i;
+
+ for (i = 0; i < EINA_C_ARRAY_LENGTH(stops); i++)
+ {
+ evas_color_argb_premul(stops[i].a, &stops[i].r, &stops[i].g, &stops[i].b);
+ }
+
evas_vg_gradient_radial_center_set(gradient, 50, 50);
evas_vg_gradient_radial_focal_set(gradient, 50, 50);
evas_vg_gradient_radial_radius_set(gradient, 50);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.