[Xfce4-commits] [xfce/xfdesktop] 01/01: Add 1px to widen the text shadow and improve contrast.

noreply at xfce.org noreply at xfce.org
Fri Feb 13 20:18:48 CET 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository xfce/xfdesktop.

commit 9ac6329aa6451f261fc366901492eb002de8d62c
Author: Matias De lellis <mati86dl at gmail.com>
Date:   Wed Feb 11 20:14:00 2015 -0300

    Add 1px to widen the text shadow and improve contrast.
    
    Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
 src/xfdesktop-icon-view.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/xfdesktop-icon-view.c b/src/xfdesktop-icon-view.c
index 9826bf3..8f1cdc4 100644
--- a/src/xfdesktop-icon-view.c
+++ b/src/xfdesktop-icon-view.c
@@ -2999,6 +2999,10 @@ xfdesktop_icon_view_draw_text(cairo_t *cr, PangoLayout *playout, GdkRectangle *t
     if (blur_radius > 1) {
         cr = gtk_css_shadow_value_start_drawing (cr, blur_radius);
         pango_cairo_show_layout (cr, playout);
+        cairo_set_line_width(cr, 1);
+        cairo_set_line_join(cr, CAIRO_LINE_JOIN_BEVEL);
+        pango_cairo_layout_path(cr, playout);
+        cairo_stroke(cr);
         cr = gtk_css_shadow_value_finish_drawing (cr, blur_radius, color);
     }
     else {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list