“Dark Mode” in Windows could mean the dark theme which jave existed since about Windows 3.1 OR the much newer Dark Mode introduced as part of Windows 10
The older dark mode can access the older color theme colors relatively simply using Win32 API’s
The Windows 10 one I’m sure Anthony could vouch for being a real pain in the butt
And without some Xojo support things like the Window frame may still not be properly themed