I fear you can't change that behaviour easily because it is hardcoded
in the Fl_Text_Display class.

You can only try to change the library:

Have a look at the fl_contrast() statements in Fl_Text_Display.cxx.

Change

e.g.
foreground = fl_contrast(styleRec->color, background);

to

foreground = styleRec->color;

and so on.


chris

>
> Hi. I=B4m trying to change the background color of the sample code editor (=
> editor.cxx) but everytime I try using something like:
> editor->color(0x30303000)=3B // dark background
> the editor loses all highlighting capabilities - all text comes as plain wh=
> ite. If I try some other color=2C the text colors end up beingdependent on =
> the background color. In other words=2C I can=B4t have black text on a blac=
> k background=2C because as soon as I set the backgroundto black=2C the text=
>  comes out white.
> Any ideas?
> Carlos.                                         =

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

Reply via email to