Theme_SetTheme
- Last UpdatedJul 18, 2023
- 1 minute read
Selects the theme to apply to the user interface. This will update dynamically at runtime.
Syntax
Theme_SetTheme(INT nTheme)
nTheme
The ID of the theme. This can be one of the default themes:
THEME_Grey - Header is Grey, selection color is SE_Green
THEME_Blue - Header is Blue, selection color is Blue
THEME_SEGreen - Header is SE_Green, selection color is SE_Green
THEME_Indigo - Header is Indigo, selection color is Indigo
THEME_Orange - Header is Orange, selection color is Orange
THEME_Dark - Header is Black, selection color is SE_Green
Or it can be value 5 or 6, which are custom themes which you can configure with Theme_SetHeaderColor and Theme_SetSelectionColor.
Return Value
N/A
Example
Theme_SetTheme(THEME_SEGreen)
Related Functions
Theme_Control_GetColorIndex, Theme_Control_GetForegroundColorIndex, Theme_Header_GetBackgroundColorIndex, Theme_Header_GetColorIndex, Theme_Header_GetForegroundColorIndex, Theme_Header_GetMidColorIndex, Theme_ToggleButton_GetForegroundColorIndex