Page 1 of 1

TextEditor & StringGadget Cursor colour Tags?

Posted: Thu Jan 07, 2021 7:25 pm
by amifrog
Recently while playing with Workbench themes it appears to be seriously difficult to find colour combinations that let the cursor in text fields really pop out, namely in Notepad and other applications using the normal Gadget toolkit (Reaction).
I wonder how those colours are being set from the developers pov; what pen is used?
String gadgets seem to only have foreground/background cols (each for active&inactive states), and borders, but no cursor colour?
In comparison, MUI allows distinct colours for the cursor as well, for every class separately sometimes.

Re: TextEditor & StringGadget Cursor colour Tags?

Posted: Mon Jan 18, 2021 2:17 pm
by broadblues
A quick test confirms that the cursor background is taken from the shine colour in GUI prefs. There doesn't appear to be a distinct cursor colour pen ID.

I'm not sure that seperate tags to allow setting the cursor colour would be useful as every app would need to be updated to make any use of them.

But a CURSORPEN would make sense.

For now when designing a theme palette make sure that SHINEPEN contrasts well with TEXTPEN

Re: TextEditor & StringGadget Cursor colour Tags?

Posted: Mon Jan 18, 2021 2:31 pm
by broadblues
I created an enhancement request for a dedicated CURSORPEN, BZ 10326 can't give any guarantees as to it's adoption though :-)

Re: TextEditor & StringGadget Cursor colour Tags?

Posted: Mon Jan 18, 2021 3:38 pm
by amifrog
Thanx.