Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
SystemInfo.MacSystemDarkMode
Queries dark mode setting for system.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
SystemInfo | 9.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |
MBS( "SystemInfo.MacSystemDarkMode" )
Parameters
none
Result
Returns OK or error.
Description
Queries dark mode setting for system.Returns 1 if system runs in dark mode.
The application may not run in dark mode, even if system has dark mode.
Examples
Query dark mode values:
MBS( "SystemInfo.MacSystemDarkMode" ) & ¶ & MBS( "SystemInfo.MacAppDarkMode" )
See also
Release notes
- Version 9.5
- Added SystemInfo.MacAppDarkMode and SystemInfo.MacSystemDarkMode function.
Blog Entries
This function is free to use.
Created 28th October 2019, last changed 28th January 2023