From Xojo Documentation
Design Property (as Boolean)
You can only set this property in the Inspector for the App object. Set to ON to make the app run in dark mode when dark mode is set in the OS settings. This is set to False by default.
Dark mode is only relevant on macOS Mojave or later.