From 4d94863abcb267af962fa0ba0df56a98b7f44da0 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Tue, 17 Apr 2018 20:44:03 +0200 Subject: [PATCH] app: don't use style->dark for histogram and curve intersections/grid because it's always darker than "bg" and not visible in dark themes. Instead, use "text_aa" which is always between "text" and "base". --- app/widgets/gimpcurveview.c | 2 +- app/widgets/gimphistogramview.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/widgets/gimpcurveview.c b/app/widgets/gimpcurveview.c index 36b9d953ce..2acd166c55 100644 --- a/app/widgets/gimpcurveview.c +++ b/app/widgets/gimpcurveview.c @@ -511,7 +511,7 @@ gimp_curve_view_expose (GtkWidget *widget, cairo_translate (cr, 0.5, 0.5); /* Draw the grid lines */ - gdk_cairo_set_source_color (cr, &style->dark[GTK_STATE_NORMAL]); + gdk_cairo_set_source_color (cr, &style->text_aa[GTK_STATE_NORMAL]); gimp_curve_view_draw_grid (view, cr, width, height, border); diff --git a/app/widgets/gimphistogramview.c b/app/widgets/gimphistogramview.c index 6029622e47..a9f75797df 100644 --- a/app/widgets/gimphistogramview.c +++ b/app/widgets/gimphistogramview.c @@ -316,7 +316,7 @@ gimp_histogram_view_expose (GtkWidget *widget, cairo_translate (cr, 0.5, 0.5); /* Draw the outer border */ - gdk_cairo_set_source_color (cr, &style->dark[GTK_STATE_NORMAL]); + gdk_cairo_set_source_color (cr, &style->text_aa[GTK_STATE_NORMAL]); cairo_rectangle (cr, border, border, width - 1, height - 1); cairo_stroke (cr); @@ -373,7 +373,7 @@ gimp_histogram_view_expose (GtkWidget *widget, if (view->subdivisions > 1 && x >= (xstop * width / view->subdivisions)) { - gdk_cairo_set_source_color (cr, &style->dark[GTK_STATE_NORMAL]); + gdk_cairo_set_source_color (cr, &style->text_aa[GTK_STATE_NORMAL]); cairo_move_to (cr, x + border, border); cairo_line_to (cr, x + border, border + height - 1);