<div class="meta" robots="noindex">

</div>

Method

# IsDarkMode

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

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r3. Please use `Color.IsDarkMode<color.isdarkmode>` as a replacement.

</div>

## Description

Indicates if the app is running in dark mode for the OS.

## Usage

*result* = **IsDarkMode**

| Part   | Type                               | Description                                                                                                  |
|--------|------------------------------------|--------------------------------------------------------------------------------------------------------------|
| result | `Boolean</api/data_types/boolean>` | `True</api/language/true>` if the app is running in dark mode and `False</api/language/false>` if it is not. |

## Notes

Currently this will only return True when running on macOS Mojave or later when dark mode is enabled in System Preferences and when Supports Dark Mode is set to ON in the project Shared Build Settings.

For the most accurate results, <span class="title-ref">IsDarkMode</span> is not cached. If you are using it within a tight drawing space (such as Listbox rows) you may optionally cache it yourself for faster drawing.

## Compatibility

All project types on all supported operating systems.

## See also

`Color.FillColor<color.fillcolor>`, `Color.FrameColor<color.framecolor>`, `Color.TextColor<color.textcolor>` methods; `Supporting Dark Mode</topics/user_interface/supporting_dark_mode>` topic
