Friday, November 30th, 2012 at
12:44 pm
The mechanism used for ‘theming’ widgets is now completely different, and much more flexible. Themes are now external lua modules that you include in your project folder, which will have tables for the corresponding widgets. The individual widget tables in your theme file will have the parameters, and references to any graphics assets that are needed.
When a widget is instantiated, it first checks to see if there is a corresponding table in your theme file, with corresponding parameters. For parameters that aren’t found in your theme file, the default values are used. You can override any theme parameters by setting your own parameters when you create a widget.
Please use the official themes as a reference for creating your own themes. Download links for the current “official” themes are below:
To set a theme, use the widget.setTheme()