Bug 775646 - Levels Tool: handles difficult to read with dark theme.

The white, gray and dark sliders of GimpHandleBar have a black contour.
This makes the white and gray slider visible even with similar colored
background. On the other hand, the black slider is barely visible on a
dark background (and could even be made totally invisible using the same
color). So let's use a light-gray contour on the dark slider, making now
all sliders working with any background color.
This commit is contained in:
Jehan 2016-12-07 01:37:56 +01:00
parent c3510405c4
commit afccaa9105
1 changed files with 7 additions and 1 deletions

View File

@ -198,7 +198,13 @@ gimp_handle_bar_expose (GtkWidget *widget,
cairo_fill_preserve (cr);
cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
/* Make all sliders well visible even on similar colored
* backgrounds.
*/
if (i == 0)
cairo_set_source_rgb (cr, 0.6, 0.6, 0.6);
else
cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
cairo_stroke (cr);
}