[bijiben] Adapt thumnails text color to background
- From: Pierre-Yves Luyten <pyluyten src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [bijiben] Adapt thumnails text color to background
 
- Date: Tue, 22 Jul 2014 20:21:14 +0000 (UTC)
 
commit ac838de9f6c9ced02eb60a41fb7d54f513c3a045
Author: mtbar131 <mtbar131 gmail com>
Date:   Tue Jul 22 22:20:13 2014 +0200
    Adapt thumnails text color to background
    
    See #726067
 src/libbiji/biji-note-obj.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/libbiji/biji-note-obj.c b/src/libbiji/biji-note-obj.c
index 24e5e9e..3914c60 100644
--- a/src/libbiji/biji-note-obj.c
+++ b/src/libbiji/biji-note-obj.c
@@ -668,7 +668,11 @@ biji_note_obj_get_icon (BijiItem *item)
     pango_layout_set_font_description (layout, desc);
     pango_font_description_free (desc);
 
-    cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
+    if(note_color.red < 0.5)
+      cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
+    else
+      cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
+
     pango_cairo_update_layout (cr, layout);
     pango_cairo_show_layout (cr, layout);
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]