This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
FORM Get color scheme
|
FORM Get color scheme -> Function result | ||||||||
Parameter | Type | Description | ||||||
Function result | Text |
![]() |
Color scheme of current form: "light" or "dark" | |||||
The FORM Get color scheme command returns the name of the actual color scheme of the currently displayed form. If there is no current form, the command returns an empty string.
Note: On Windows, this command always returns "light".
The actual color scheme of a form is defined by:
Please refer to the SET APPLICATION COLOR SCHEME command for details about color scheme names.
You want to load a picture depending on the form current scheme:
$txt_suffix:=Choose((FORM Get color scheme="dark");"_dark";"")
READ PICTURE FILE(Get 4D folder(Current resources folder)+"myPict"+$txt_suffix+".png";$Pic_icon)
Note: It is recommended to use css to adapt form objects design to the current scheme.
Product: 4D
Theme: Forms
Number:
1761
Created: 4D v19
4D Language Reference ( 4D v20 R7)