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

Got a problem you cannot solve? Try here.
vaibhavopkey
Posts: 28
Joined: Wed Feb 05, 2025 6:13 am

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

Postby vaibhavopkey » Tue Feb 11, 2025 7:48 am

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.

JohnGaver
Posts: 197
Joined: Mon Feb 05, 2024 6:15 pm

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

Postby JohnGaver » Tue Feb 11, 2025 12:33 pm

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.
John Gaver
InstallAware Skunkworks
InstallAware Multi Platform - Liberating DEB/RPM/PKG/MSI(X) into universal native setups!
Get your free copy today - https://www.installaware.com/installaware-multi-platform.htm

vaibhavopkey
Posts: 28
Joined: Wed Feb 05, 2025 6:13 am

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

Postby vaibhavopkey » Wed Feb 12, 2025 1:35 am

[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.
Attachments
Screenshot 2025-02-12 at 11.56.52 AM.png
Screenshot 2025-02-12 at 11.56.52 AM.png (289.02 KiB) Viewed 16038 times

JohnGaver
Posts: 197
Joined: Mon Feb 05, 2024 6:15 pm

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

Postby JohnGaver » Wed Feb 12, 2025 7:22 am

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?
John Gaver
InstallAware Skunkworks
InstallAware Multi Platform - Liberating DEB/RPM/PKG/MSI(X) into universal native setups!
Get your free copy today - https://www.installaware.com/installaware-multi-platform.htm

vaibhavopkey
Posts: 28
Joined: Wed Feb 05, 2025 6:13 am

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

Postby vaibhavopkey » Fri Feb 14, 2025 12:19 am

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.

JohnGaver
Posts: 197
Joined: Mon Feb 05, 2024 6:15 pm

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

Postby JohnGaver » Fri Feb 14, 2025 8:42 am

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).
John Gaver
InstallAware Skunkworks
InstallAware Multi Platform - Liberating DEB/RPM/PKG/MSI(X) into universal native setups!
Get your free copy today - https://www.installaware.com/installaware-multi-platform.htm


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 49 guests