Yes, something like that would definitely be the better solution.

Perhaps it could be put into the widget flags as a new flag

e.g. NO_AUTOCONTRAST

which is off per default.

This could be useable then for other widgets too.
And it would not even break the ABI.

Someone (you?) should file a RFE.

chris


> So there could be a variable, say:
>
> bool highContrast;
>
> which defaults to true, and then change, for example:
>
> foreground = fl_contrast(styleRec->color, background);
>
> to
>
> foreground = highContrast? fl_contrast(styleRec->color, background) : 
> styleRec->color;
>
>
> and so on. That would give the programmer the ability to disable the 
> automatic contrast control if needed.
>
> Is this a good idea or I might be breaking something else?
>
> Carlos
>

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to