Hi. My Apps supports darkMode correctly. They start in DarkMode or LightMode depending on the OS settings. This is working fine in MacOS and also on Windows.
I can check if the darkMode is turn on or off in the OS, but I can’t choose it. The problem is I’d like to enable or disable DarkMode support in the software independently of the OS settings.
So let’s imagine I’ve turn on DarkMode in the OS, but I want to switch off the DarkMode on my app because depending on the monitor and user, the software looks better on LightMode. But I want to have the DarkMode turn on for the same App on other computers, so I can’t just turn off the DarkMode feature for the App.
How can I turn one or on the DarkMode support while running the App (or even when starting the App as I can create a preferences file for checking if DarkMode has to be enabled or disabled).
Have a look at this example project: GitHub: jo-tools/app-appearance.
It shows what’s currently possible with Xojo for macOS (always light | always dark | auto) and Windows (DarkMode: Opt-In). No Plugins required.