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".
This commit is contained in:
Michael Natterer 2018-04-17 20:44:03 +02:00
parent 434728da08
commit 4d94863abc
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);