Page 1 of 1

Font color turns black in Mac light mode, making text hard to read.

Posted: Tue Feb 11, 2025 7:48 am
by vaibhavopkey
I'm working on a Mac installer using InstallAware Multi-Platform. After creating the DMG file, I noticed that when I open the DMG in light mode, some text appears in black, making it hardly visible.

Please note: The issue occurs when I open the installer directly in light mode, not when switching themes while the installer is running.

Re: Font color turns black in Mac light mode, making text hard to read.

Posted: Tue Feb 11, 2025 12:33 pm
by JohnGaver
That's a great question!

The fonts automatically adjust to light/dark themes, when you have actually set them to certain color constants, instead of hard-coding their colors.

I believe clWindowText may be one that is set to adjust automatically.

Can you please confirm which color you have assigned to your font with detailed screenshots?

That ought to help narrow down the issue.

Re: Font color turns black in Mac light mode, making text hard to read.

Posted: Wed Feb 12, 2025 1:35 am
by vaibhavopkey
[img]
Screenshot%202025-02-12%20at%2011.56.52 AM.png
[/img]
Just observe the checkbox in light mode; its color automatically turns black. My font property is set to clWhite.

You can reproduce this issue using the following steps:

Create a new project using InstallAware Multi-Platform.
Under Templates, choose Empty Setup.
Select the LicenseCheck dialog, add a checkbox, and change its color to white.
Now, build and run the DMG in light mode—the checkbox color appears black.

Re: Font color turns black in Mac light mode, making text hard to read.

Posted: Wed Feb 12, 2025 7:22 am
by JohnGaver
So yes, that's exactly what I had predicted in my preceding post, isn't it?

Can you try a color constant like clWindowText for your control (instead of hard-coding a color, which then naturally cannot be overridden), and let me know if that solves your problem?

Re: Font color turns black in Mac light mode, making text hard to read.

Posted: Fri Feb 14, 2025 12:19 am
by vaibhavopkey
It's not working after adding clWindowText; it turns black again in light mode. In fact, assigning any color to the checkbox text does not change its appearance.

Re: Font color turns black in Mac light mode, making text hard to read.

Posted: Fri Feb 14, 2025 8:42 am
by JohnGaver
Strange to hear!

Can you check a built-in theme (like macOS or Official) to see what color they have assigned the TCheckBox controls?

Also please ensure you're checking the Font.Color property in addition to the Color property (as the two are distinct).