AppSupportsDarkMode

From Xojo Documentation

Revision as of 01:04, 15 December 2018 by PLefebvre (talk | contribs) (See Also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Constant As Boolean

aBoolean = AppSupportsDarkMode

New in 2018r4

Indicates if the app is built with Supports Dark Mode property set to ON.

Usage

result = AppSupportsDarkMode

Part Type Description
result Boolean Returns True if you are compiling or running an app with Supports Dark Mode property set to ON.

Sample Code

Use AppSupportsDarkMode to isolate code specific for when Supports Dark Mode is ON or OFF.

#If AppSupportsDarkMode Then
// Use a different image or adjust colors
#Endif

See Also

#If...#Endif statement; IsDarkMode function; UserGuide:Dark Mode topic