Set Theme demo ?

In the documentation (http://docs.coronalabs.com/api/library/widget/setTheme.html) it mentions see the WidgetDemo sample for a example but the WidgetDemo doesn’t set a theme.

I want my app to look just like a native app, is this possible ?

Even if I have to buy a UI graphic collection.

Dave

Hi 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).

Does that help somewhat?

Brent

Yeah that helps.

Are there any IOS button graphics, it’s the only thing missing from the demo.

Dave

Hi Dave,

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?

Brent

Is there a demo for a custom theme somewhere ? My old lua file theme results in an error.

That doesn’t look like a iOS button at all.

Dave

Hi Dave,

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:

http://i.stack.imgur.com/uHoZl.png

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.

Brent

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

@thedavebaxter are you talking about these buttons?

buttons.png

The best example I can find is the ok button when your typing your password into the app store. Dave

Hi 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).

Does that help somewhat?

Brent

Yeah that helps.

Are there any IOS button graphics, it’s the only thing missing from the demo.

Dave

Hi Dave,

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?

Brent

Is there a demo for a custom theme somewhere ? My old lua file theme results in an error.

That doesn’t look like a iOS button at all.

Dave

Hi Dave,

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:

http://i.stack.imgur.com/uHoZl.png

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.

Brent

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

@thedavebaxter are you talking about these buttons?

buttons.png

The best example I can find is the ok button when your typing your password into the app store. Dave

Hi Brent,

Echoing StephanieL’s request here.

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?

Thanks!