Skip to main content

theme

Type

property

Summary

Specifies the theme to use when drawing the switch button.

Syntax

get the theme of <widget>
set the theme of <widget> to <pWidgetTheme>

Description

Use the theme property to control the general appearance of the switch button. The currently-supported values are "native", "iOS" and "Android".

Note: The value of the theme property is not saved by the switch button. Set the theme property to preview the way the switch button will appear when used on an Android or iOS device.