[gimp] app: fix outer border color of GimpSpinScale to look OK on all themes



commit a31ee3ec22db2f1c02d02900c558dba87937839a
Author: Michael Natterer <mitch gimp org>
Date:   Mon Apr 23 01:23:09 2018 +0200

    app: fix outer border color of GimpSpinScale to look OK on all themes
    
    it used to be "text" which is almost always too extreme; use "text_aa"
    instead which is half way between "text" and "base" and always gives a
    reasonable contrast.

 app/widgets/gimpspinscale.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpspinscale.c b/app/widgets/gimpspinscale.c
index f62af26..d72fe23 100644
--- a/app/widgets/gimpspinscale.c
+++ b/app/widgets/gimpspinscale.c
@@ -415,7 +415,7 @@ gimp_spin_scale_expose (GtkWidget      *widget,
         cairo_rectangle (cr, 0.5, 0.5, w, h - 1.0);
 
       gdk_cairo_set_source_color (cr,
-                                  &style->text[gtk_widget_get_state (widget)]);
+                                  &style->text_aa[gtk_widget_get_state (widget)]);
       cairo_stroke (cr);
     }
   else
@@ -427,7 +427,7 @@ gimp_spin_scale_expose (GtkWidget      *widget,
         cairo_rectangle (cr, -0.5, 0.5, w, h - 1.0);
 
       gdk_cairo_set_source_color (cr,
-                                  &style->text[gtk_widget_get_state (widget)]);
+                                  &style->text_aa[gtk_widget_get_state (widget)]);
       cairo_stroke (cr);
 
       if (rtl)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]