forked from AuroraMiddleware/gtk
shadow: add blur to icon-shadow (icon)
This commit is contained in:
parent
7c3864ba79
commit
10e2684870
@ -404,6 +404,9 @@ _gtk_css_shadow_value_paint_icon (const GtkCssValue *shadow,
|
||||
|
||||
cairo_save (cr);
|
||||
pattern = cairo_pattern_reference (cairo_get_source (cr));
|
||||
|
||||
cr = gtk_css_shadow_value_start_drawing (shadow, cr);
|
||||
|
||||
gdk_cairo_set_source_rgba (cr, _gtk_css_rgba_value_get_rgba (shadow->color));
|
||||
|
||||
cairo_translate (cr,
|
||||
@ -411,6 +414,8 @@ _gtk_css_shadow_value_paint_icon (const GtkCssValue *shadow,
|
||||
_gtk_css_number_value_get (shadow->voffset, 0));
|
||||
cairo_mask (cr, pattern);
|
||||
|
||||
cr = gtk_css_shadow_value_finish_drawing (shadow, cr);
|
||||
|
||||
cairo_restore (cr);
|
||||
cairo_pattern_destroy (pattern);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user