|
|
|
|
|
GetTheme (Function) In french: RécupèreThème Gets the current theme of a mobile application. This makes it possible to manage special cases (e.g. selection of a specific image according to the current theme) via the "Application of light/dark theme" event.
IF GetTheme() = stThemeDark THEN
IMG_BackgroundImage = "DarkBackground.png"
ELSE
IMG_BackgroundImage = "LightBackground.png"
END
Syntax
<Result> = GetTheme([<Window>])
<Result>: Integer constant Theme currently used by the application or window:
| | stThemeDark | The application uses the dark theme. | stThemeLight | - The application uses the light theme.
- The light/dark theme management is not enabled in the application ("Allow switching to dark theme (automatically or manually via ChangeTheme)" option in the "Style" tab of the project description).
|
<Window>: Optional window name Name of the window whose theme you want to get. If this parameter is not specified, the application theme will be searched. Remarks - To change the theme of the application, use ChangeTheme.
- To find out the active theme on the mobile device, use SysTheme.
Business / UI classification: UI Code Component: wd300android.jar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|