ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Mobile specific functions / Phone management functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Is used to find out the current theme of a mobile application. It is thus 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.
Example
// Evénement "Application du thème clair/sombre"
IF GetTheme() = stThemeDark THEN
IMG_ImageFond = "FondSombre.png"
ELSE
IMG_ImageFond = "FondClair.png"
END
Syntax
<Result> = GetTheme([<Window>])
<Result>: Integer constant
Theme currently used by the specified application or window:
stThemeDarkThe 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
New in version 28
Name of the window for which the theme is searched.
If this parameter is not specified, the application theme is 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: wd280android.jar
Minimum version required
  • Version 25
Comments
Click [Add] to post a comment

Last update: 06/30/2023

Send a report | Local help