This repository has been archived by the owner on Aug 31, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-merge pull request #3684 from peter-b/switchbutton-rework
switchbutton: General rework * The switchbutton now uses a "theme" property to control its theme. The "theme" defaults to "native", but can also be _temporarily_ set to "Android" or "iOS". However, the "theme" is not persisted over a save, so the switchbutton will always look "correct" when deployed. This is a temporary expedient to ensure that widgets look correct on mobile devices and can also have their mobile appearance previewed in the IDE. * The switchbutton now uses the "hilited"/"highlight"/etc. control property, the same as the built-in checkbox control. It uses the "hiliteChanged" message to indicate that the switchbutton has turned on or off. It's currently possible to change the status of the switchbutton _without_ emiting "hiliteChanged" by setting the "hilite" property directly. Maybe this is wrong. * The different Android colour themes have gone. * The switchbutton is now the same size in both the Android and iOS styles.
- Loading branch information