mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
icontheme: Use rgba() when loading symbolic icons
This way, we correctly pass on translucency information. Note: This currently requires librsvg master.
This commit is contained in:
parent
0e6a9858e1
commit
303cf53f3f
@ -4081,10 +4081,11 @@ static gchar *
|
||||
gdk_rgba_to_css (const GdkRGBA *color)
|
||||
{
|
||||
/* drop alpha for now, since librsvg does not understand rgba() */
|
||||
return g_strdup_printf ("rgb(%d,%d,%d)",
|
||||
return g_strdup_printf ("rgba(%d,%d,%d,%g)",
|
||||
(gint)(color->red * 255),
|
||||
(gint)(color->green * 255),
|
||||
(gint)(color->blue * 255));
|
||||
(gint)(color->blue * 255),
|
||||
color->alpha);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user