mirror of https://github.com/GNOME/gimp.git
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:
parent
434728da08
commit
4d94863abc
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue