[REBOL] Re: colour of text-list/picked
From: philb:upnaway at: 13-Feb-2002 17:23
This is nice .... I dont that yellow color ...
I suppose it is consitent with the focus color in fields & areas but it doesnt look great
next to white lines in a text-list.
=== Original Message ===
>I'm too tired to probe through my text-list object or the documentation
available here and there. Can anyone tell me the path to the colour of the
highlighting of picked elements in a text-list, please?
It is hard-wired in the init field of the styles. It is not simple to change
it for many reasons (binding). Here it is an example:
ly: layout [tl: text-list data ["a" "b"]]
tl/iter/feel: make tl/iter/feel [
redraw: func[f a i] bind [
f/color: either find picked f/text [high-col] [slf/color]
] in tl 'self
Now you can also change the high-col var to change the color.
You could also change the init field of the style. But it is more complex.
P.S. If you don't know it, try AnaMonitor to look in the vid objects.