Ugly and weird acting widgets win simulator 2013.1225

Gee, what happened to the very nice widgets?

Not only they look very ugly, but also the switch moves now about 100px to the right when in state “on” compared to its position when in state “off”.

Still work and looks fine on a device, so no biggie.

Recent daily builds look to see if you’re iOS 7 or not and turn on the iOS 7 theme for widgets.  If you want to go back to the iOS 6 look, then you can do:

widget.setTheme(“widget_ios”)

after you load the widget library.

Hmm… Thanks, but I’m on Windows, you know. Does that apply to Windows, too?

Sorry, mac users, for calling your GUI ugly :stuck_out_tongue:

so I tried

local widget = require("widget") widget.setTheme("widget\_ios")

and got this error:

module 'widget\_ios' not found:resource (widget\_ios.lu) does not exist in archive no field package.preload['widget\_ios'] no file 'C:\Users\martin\AppData\Roaming\Corona Labs\Corona Simulator\Plugins\widget\_ios.lua' no file 'c:\users\martin...

the code to use is

widget.setTheme("widget\_theme\_ios")

works for me, however the theme name is a bit confusing for windows users

Sorry about that, I was just typing from memory.  “widget_theme_ios” is correct.

As for it not being intuitive, remember you’re building for either an iOS device or an Android device in the end.  Widgets, unless you custom skin them, should mirror their operating system equivalents.   An on/off switch should look and behave like the on/off switch in your device’s settings panel by default.   We have programmed widgets to be smart.

When you are on an Android device, the theme should change to the “widget_theme_android” look.  Right now the skins in the simulator seem to all default to iOS 7.  I’ll make a recommendation that the themes be a bit smarter, if possible. 

By setting the theme to the ios theme, you will lock your app into that look regardless of device.

Rob

ok, thanks, that makes sense, kinda over read that in the doc.

Recent daily builds look to see if you’re iOS 7 or not and turn on the iOS 7 theme for widgets.  If you want to go back to the iOS 6 look, then you can do:

widget.setTheme(“widget_ios”)

after you load the widget library.

Hmm… Thanks, but I’m on Windows, you know. Does that apply to Windows, too?

Sorry, mac users, for calling your GUI ugly :stuck_out_tongue:

so I tried

local widget = require("widget") widget.setTheme("widget\_ios")

and got this error:

module 'widget\_ios' not found:resource (widget\_ios.lu) does not exist in archive no field package.preload['widget\_ios'] no file 'C:\Users\martin\AppData\Roaming\Corona Labs\Corona Simulator\Plugins\widget\_ios.lua' no file 'c:\users\martin...

the code to use is

widget.setTheme("widget\_theme\_ios")

works for me, however the theme name is a bit confusing for windows users

Sorry about that, I was just typing from memory.  “widget_theme_ios” is correct.

As for it not being intuitive, remember you’re building for either an iOS device or an Android device in the end.  Widgets, unless you custom skin them, should mirror their operating system equivalents.   An on/off switch should look and behave like the on/off switch in your device’s settings panel by default.   We have programmed widgets to be smart.

When you are on an Android device, the theme should change to the “widget_theme_android” look.  Right now the skins in the simulator seem to all default to iOS 7.  I’ll make a recommendation that the themes be a bit smarter, if possible. 

By setting the theme to the ios theme, you will lock your app into that look regardless of device.

Rob

ok, thanks, that makes sense, kinda over read that in the doc.