- Open
cmd.exe
- Change to the directory of the Xojo IDE, set the environment variable and launch the Xojo IDE:
c: cd "C:\Program Files\Xojo\Xojo 2021r3.1" set XOJO_WIN32_DARKMODE_DISABLED=True xojo.exe
- The SplashScreen will still shown in DarkMode, but the IDE will not be in DarkMode.
If you’re doing that, then bear in mind that this environment variable also effects Debug-Runs that you are going to launch via the IDE’s Run Button. So an application with enabled DarkMode support will show in LightMode in a DebugRun, too.
If you don’t want that, then you can either do a “run paused”, and launch the DebugApp.exe from Windows Explorer. That way the environment variable won’t be inherited.
Or add the following line of Code to in App.Opening
to get the “default behavior” back in a DebugRun:
System.EnvironmentVariable("XOJO_WIN32_DARKMODE_DISABLED") = "False"
That allows to have the Xojo IDE in LightMode, but develop/test/debug-run an application supporting DarkMode.
Instead of going through cmd.exe
to launch the Xojo IDE, you could also write a simple .bat to launch Xojo with a custom environment variable.