tried that code in murrine, low quality shadows compared to the one we have now :(
cairo_pattern_t * text_pattern;
/* Render to a temporary surface (similar to your target surface). */ cairo_push_group(cr);
cairo_translate (cr, x, y); murrine_set_color_rgb (cr, use_text ? &colors->text[state_type] : &colors->fg[state_type]); pango_cairo_show_layout (cr, layout);
text_pattern = cairo_pop_group(cr);
/* Drop the shadow. */ cairo_save(cr);
cairo_translate (cr, xos, yos); murrine_set_color_rgba (cr, &temp, 0.5); cairo_mask(cr, text_pattern);
cairo_restore(cr);
/* Paint the text on top of the shadow. */ cairo_set_source(cr, text_pattern); cairo_paint(cr); cairo_pattern_destroy(text_pattern); cairo_destroy (cr);
tried that code in murrine, low quality shadows compared to the one we have now :(
cairo_pattern_t * text_pattern;
/* Render to a temporary surface (similar to your target surface). */ group(cr) ;
cairo_push_
cairo_translate (cr, x, y); set_color_ rgb (cr, use_text ? &colors- >text[state_ type] : &colors- >fg[state_ type]); show_layout (cr, layout);
murrine_
pango_cairo_
text_pattern = cairo_pop_ group(cr) ;
/* Drop the shadow. */
cairo_save(cr);
cairo_translate (cr, xos, yos); set_color_ rgba (cr, &temp, 0.5);
murrine_
cairo_mask(cr, text_pattern);
cairo_restore(cr);
/* Paint the text on top of the shadow. */ source( cr, text_pattern); destroy( text_pattern) ;
cairo_set_
cairo_paint(cr);
cairo_pattern_
cairo_destroy (cr);