U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » Look and Chameleon Technology » RichTextView and Chameleon with a dark background.
RichTextView and Chameleon with a dark background. [message #35925] Wed, 04 April 2012 17:54 Go to previous message
rxantos is currently offline  rxantos
Messages: 73
Registered: October 2011
Member
If I use a dark background theme the colors on a formated text are ignored. For example a "[@R= Red] [@G = Green] [@B Blue]" will all be showing white instead of Red-Green-Blue.

I found the reason in:

uppsrc/CtrlLib/RichTextView.cpp

Color c = SColorPaper();
if(Grayscale(c) < 100)
  pi.coloroverride = true;


Which basically tells the control to override the all the colors of the text.

Is there a way to tell the control not to clobber the text colors when the background is dark?
 
Read Message
Read Message
Read Message
Previous Topic: Unable to locate theme engine
Next Topic: Bug: Ctrl::NoLayoutZoom() has no effect
Goto Forum:
  


Current Time: Tue Apr 28 15:56:38 GMT+2 2026

Total time taken to generate the page: 0.00460 seconds