Color.IsDarkMode
From Xojo Documentation
Shared Method
![]() |
This method is only available on platform. For cross-platform compatibility, use #If...#Endif with the Target... specifiers to make sure you will not attempt to use this method on an incompatible platform. |
True when the devices is currently in dark mode, otherwise False.
Notes
For other platforms use the global IsDarkMode method.
Compatibility
Desktop projects on macOS Mobile projects on iOS