This has come up in previous versions but trying to set it at runtime fails. It won’t override the default for dark/light mode. Mac 15.3.1, Xojo 24r4.2. Even text.color is hit and miss.
Anyone else seeing this?
This has come up in previous versions but trying to set it at runtime fails. It won’t override the default for dark/light mode. Mac 15.3.1, Xojo 24r4.2. Even text.color is hit and miss.
Anyone else seeing this?
No. Check your code or better display it
Seems to be working here. See the attached sample project.
ColorTest.xojo_binary_project.zip (6.3 KB)
Something to keep in mind…
In Xojo, there are two colors that are special when it comes to text controls:
The reason for this is so people’s legacy apps would just work in dark mode since those were the default colors in a text control. That is, black text is set (under the hood) to a color that automatically changes to white when changing to dark mode as well as a white background that changes to (nearly) black.
That means that you can’t set text to be absolute black in dark mode, nor can you set the background color to absolute white. You can however use &c010101 and &cFEFEFE respectively and your users will probably never know.
Thanks for your replies guys. Yes, I said it had come up before now I remember what I did. #idiot