Constant

# AppSupportsDarkMode

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

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

## Usage

``` xojo
result = AppSupportsDarkMode
```

| Part   | Type                               | Description                                                                                                           |
|--------|------------------------------------|-----------------------------------------------------------------------------------------------------------------------|
| result | `Boolean</api/data_types/boolean>` | Returns `True</api/language/true>` if you are compiling or running an app with Supports Dark Mode property set to ON. |

## Sample code

Use <span class="title-ref">AppSupportsDarkMode</span> to isolate code specific for when Supports Dark Mode is ON or OFF.

``` xojo
#If AppSupportsDarkMode Then
  ' Use a different image or adjust colors
#Endif
```

## Compatibility

|                       |                      |
|-----------------------|----------------------|
| **Project Types**     | Desktop, Mobile, Web |
| **Operating Systems** | All                  |

<div class="seealso">

`＃If...＃Endif</api/compiler_directives/if...endif>` statement; `Color.IsDarkMode<color.isdarkmode>` function; `Supporting Dark Mode</topics/user_interface/supporting_dark_mode>` topic

</div>
