Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

widget sheet image
Started by apps30 Dec 03 2018 11:16 PM

1 reply to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

apps30

[GLOBAL: userInfoPane.html]
apps30
  • Enthusiast

  • 76 posts
  • Corona SDK

Hi, I am adding the on-off widget (widget.newSwitch). The default widget color is in green and I want to change it to light blue. I think I should using the sheet parameters and add a sheet image. However, I am not sure the specs needed for the sheet image. I tried to check the sample source code from corona sdk but I can not see the default image sheet used by the widget. Where can I find the default image sheet for widget so that I just need to modify the image file?



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,779 posts
  • Enterprise

If you look at:  https://github.com/coronalabs/framework-widget

 

You will see files like:

 

widget_theme_ios7.lua Resizable PickerWheel core code and updates. 2 years ago widget_theme_ios7.png Resizable PickerWheel core code and updates. 2 years ago widget_theme_ios7@2x.png Resizable PickerWheel core code and updates. 2 years ago widget_theme_ios7@4x.png Resizable PickerWheel core code and updates. 2 years ago widget_theme_ios7_sheet.lua

Fixed end caps on iOS7 slider theme (removed virtually unnoticeable "…

 

 

These are the files that are part of the widget theme for iOS. The ones just labeled iOS are the old style iOS 6 and earlier and are generally not used. There are several Android-based theme files there. Look in those files. If you're just changing the colors, you should be able to just update the PNG files.

You will likely have to use a local copy of the widget library to use your changes. The skinning for individual widgets wouldn't use these files at all, but your own custom ones.

 

Rob




[topic_controls]
[/topic_controls]