Get application color scheme
Get application color scheme {( * )} : Text
Parameter | Type | Description | |
---|---|---|---|
* | Operator | → | Returns color scheme of host database |
Function result | Text | ← | Current application color scheme |
This command is not thread-safe, it cannot be used in preemptive code.
Description
The Get application color scheme command returns the name of the actual color scheme in use at the application level.
Note: On Windows, this command always returns "light".
The actual color scheme is defined by:
- a call to the SET APPLICATION COLOR SCHEME command;
- if SET APPLICATION COLOR SCHEME was not called or called with "inherited" parameter value, the Settings (host database Settings in case of a component);
- if settings set to "inherited", the OS user preferences.
The * parameter is useful when the command is called from a component: when it is passed, the command returns the color scheme of the host database.
Please refer to the SET APPLICATION COLOR SCHEME command description for details about color scheme names.
Example
var $colorScheme : Text
// Retrieve the colorScheme of the host database
$colorScheme:=Get application color scheme(*)