Appearance

Information about user's appearance preferences.

Modulerequire("gui")
TypeObject

Methods

setDarkModeEnabled(enable) Windows

Enable Windows 10 dark mode for current app.

The dark mode of Windows 10 does not support Win32 apps officially and this API makes use of private APIs to force enabling dark mode for current app.

Note that this API can only enable dark mode for window titlebars, all the views and colors are still using light color schemes. You should only use this API when developing custom-drawn apps.

Parameters

isDarkScheme()

Return whether this app is using a dark color scheme.

Note that on Windows the dark mode does not support Win32 apps, and this method will always return false unless dark mode is explicitly enabled with setDarkModeEnabled.

Return

Boolean

Events

onColorSchemeChange()

Emitted when user has changed system color scheme preferences.

Preventable

No.