Get(SystemAppearance)
Returns the name of the current operating system appearance.
Format
Get ( SystemAppearance )
Parameters
None
Data type returned
text
Originated in version
6.0 or earlier
Description
In Windows, this function returns the current high contrast default color scheme name if the high contrast option is enabled in Windows Settings under Ease of Access and if the high contrast color scheme is active. Returns an empty string if the option is unavailable or inactive.
In macOS, iOS, and iPadOS, this function returns the current system appearance name. You can use this to detect when the system is using the dark appearance (Dark Mode).
Notes
- This function is not supported and returns an empty string:
- in FileMaker WebDirect
- when evaluated by a Linux host
Example 1
Returns High Contrast White when the Windows theme is set to High Contrast White.
Example 2
Returns DarkAqua when macOS uses the dark system appearance; returns Aqua when it uses the light appearance.