On 27.10.2010, at 19:07, Greg Ercolano wrote:

> Uwe Duerr wrote:
>> The solution I came up with was to use fl_color_average(color,FL_WHITE,0.35);
>> to set the textbackground in the Fl_Select_Browser. Now colors are similar.
>> Not a good solution, but it works at least.
>> Just in case you have the same problem.
> 
>       Cool, glad you figured it out.
> 
>       We should maybe have a method in FLTK that does something like this,
>       where it returns the color /unless/ it's plastic, in which case it
>       returns something like your solution above.

You can find the function that calculates the background color here:

src/fl_plastic.cxx

Fl_Color shade_color(uchar gc, Fl_Color bc)

Isn't OpenSource great? ;-)
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to