This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20.6
SET APPLICATION COLOR SCHEME

SET APPLICATION COLOR SCHEME 


 

SET APPLICATION COLOR SCHEME ( colorScheme ) 
Parameter Type   Description
colorScheme  Text in "light", "dark", or "inherited"

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

 
PROPERTIES 

Product: 4D
Theme: User Interface
Number: 1762

This command has platform-specific behavior

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v19

 
ARTICLE USAGE

4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)
4D Language Reference ( 4D v20.2)
4D Language Reference ( 4D v20.3)
4D Language Reference ( 4D v20.4)
4D Language Reference ( 4D v20.5)
4D Language Reference ( 4D v20.6)