Skip to main content
Version: 20 R7 BETA

SET APPLICATION COLOR SCHEME

SET APPLICATION COLOR SCHEME ( colorScheme )

ParameterTypeDescription
colorSchemeText"light", "dark", or "inherited"

This command is not thread-safe, it cannot be used in preemptive code.

Description

The SET APPLICATION COLOR SCHEME command defines the color scheme to use at the application level for the current session. This scheme will be applied to forms that do not already declare a specific scheme (a color scheme defined at the form level takes priority over the application level).

Note: This command only works on macOS. On Windows, the only available scheme is "light".

In the colorScheme parameter, pass a color scheme to apply:

  • "light" - the application will use the Default Light Theme
  • "dark" - the application will use the Default Dark Theme
  • "inherited" - the application will inherit from the higher priority level (i.e., in Settings)

Example

  // Force the current application in dark
 SET APPLICATION COLOR SCHEME("dark")

See also

FORM Get color scheme
Get application color scheme