The sample project doesn’t set the theme, but you can set it yourself (just open the project’s main.lua file and add “widget.setTheme( “widget_theme_android” )” around line 48 (I assume you want Android, since iOS is the default).
The iOS button graphics should be present. In the demo, go to the “PickerWheel” section and the button should be there (labeled “Values”). Is that the style you’re looking for?
What kind of iOS button are you envisioning? The one in the Widget demo matches those in the left side of the following screenshot very close, if not exactly:
That being said, I know there’s not every available iOS button style bundled along with the Widgets. Some of these you’ll need to skin yourself, using the theme file.
Interesting where did you get them screen shots from ? They do look a lot like widget 2 buttons. Am still on 5.1 and mine look different. In things like forward in safari, hold a like down in a email. I was kinda after the blue ish type buttons you see a lot in iOS. Am sure before widget 2 the widget demo had them. Am gonna look in the theme graphics folder. Dave
The sample project doesn’t set the theme, but you can set it yourself (just open the project’s main.lua file and add “widget.setTheme( “widget_theme_android” )” around line 48 (I assume you want Android, since iOS is the default).
The iOS button graphics should be present. In the demo, go to the “PickerWheel” section and the button should be there (labeled “Values”). Is that the style you’re looking for?
What kind of iOS button are you envisioning? The one in the Widget demo matches those in the left side of the following screenshot very close, if not exactly:
That being said, I know there’s not every available iOS button style bundled along with the Widgets. Some of these you’ll need to skin yourself, using the theme file.
Interesting where did you get them screen shots from ? They do look a lot like widget 2 buttons. Am still on 5.1 and mine look different. In things like forward in safari, hold a like down in a email. I was kinda after the blue ish type buttons you see a lot in iOS. Am sure before widget 2 the widget demo had them. Am gonna look in the theme graphics folder. Dave
The setTheme documentation says “See the WidgetDemo sample to see how a theme file is structured and can [be] used in a real app.”
I tried both the public release (1076) and a recent daily build (1101). For both, the included WidgetDemo in SampleCode did not include an example theme file. I vaguely remember reading a Widgets 1.0 example code that shows a custom theme. Can you point to us where we can get a sample custom theme file?