- Jun
- 137
- 3
In my TCC window (v16.03), I'd like to be able to have a function that will take an input string and display the text and background in opposite colors of what it normally is. For example, my TCC window uses bright cyan letters on a blue background. This function should display the text in blue letters on a bright cyan background. Ideally it should be able to do it interspersed within a single line, like:
I would imagine something like: ECHO This is bright cyan on blue. %@reversecolor[This is blue on bright cyan.] This is bright cyan on blue again.
Or maybe instead of %@reversecolor[], it could be %@echocolor[foreground, background, text]. Then it would be: ECHO This is bright cyan on blue. %@echocolor[blue, brightcyan, This is blue on bright cyan.] This is bright cyan on blue again.
Is this possible?
I would imagine something like: ECHO This is bright cyan on blue. %@reversecolor[This is blue on bright cyan.] This is bright cyan on blue again.
Or maybe instead of %@reversecolor[], it could be %@echocolor[foreground, background, text]. Then it would be: ECHO This is bright cyan on blue. %@echocolor[blue, brightcyan, This is blue on bright cyan.] This is bright cyan on blue again.
Is this possible?