Actually in main.lua at line 104, the following code should take care of the issues:
myApp.theme = "widget\_theme\_ios7" local coronaBuild = system.getInfo("build") if tonumber(coronaBuild:sub(6,12)) \< 1206 then myApp.theme = "widget\_theme\_ios" end
The widget iOS 7 theme went into play at build 1206. The Theme files don’t take care of everything needed to make an app look iOS 7 vs. iOS 6. For instance, the top bar in iOS 6 is a gradient, in iOS 7, it’s flat. In Corona those are typically done using images or other display objects and they are not part of the theme. The same goes with the tabBar controller. The iOS7 tab bar doesn’t change the color of the tab, only the color of the tab icon. For our widget, there is a 3 graphic (left, center and right) image needed to provide the overall pressed look for iOS 6. With iOS7 you have to provide three transparent/empty images as well as provide thinner styled icons.
The buttons in the top bar for iOS 6 typically required a graphic for Corona apps to emulate the native buttons, but that style changes with iOS7 and you would in code have to program handling both styles. Because this is a sample app and not a production app, it was more practical to make it iOS 7 look and feel. But since the public build doesn’t support the iOS7 field, this code work around will take care of this. The only real visual impact seems to be chrome around the buttons on the menu tab.
Speaking of the menu tab, I recommend changing this:
--if not myApp.legacy then -- widget.setTheme(myApp.theme) --end widget.setTheme("widget\_theme\_ios7")
at line 43 to simply:
widget.setTheme(myApp.theme)
so it matches the other modules in the sample app. Hopefully these changes will be reflected in the github repository soon.