mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-05 18:31:09 +00:00
theme: Fix spinner for inactive state.
Previously, the inactive state caused the spinner's solid line to be drawn to the right. Now it's drawn to the top instead, which makes the inactive state look more natural.
This commit is contained in:
parent
9b8fbe5b72
commit
8b17b16d63
@ -3004,8 +3004,8 @@ gtk_theming_engine_render_activity (GtkThemingEngine *engine,
|
||||
|
||||
/* transparency is a function of time and intial value */
|
||||
gdouble t = 1.0 - (gdouble) ((i + step) % num_steps) / num_steps;
|
||||
gdouble xscale = cos (i * G_PI / half);
|
||||
gdouble yscale = - sin (i * G_PI / half);
|
||||
gdouble xscale = - sin (i * G_PI / half);
|
||||
gdouble yscale = - cos (i * G_PI / half);
|
||||
|
||||
cairo_set_source_rgba (cr,
|
||||
color->red,
|
||||
|
Loading…
Reference in New Issue
Block a user