{
"constants":
{
- "DEMO_IMAGE_DIR":"@DEMO_STYLE_IMAGE_DIR@"
+ "STYLE_DIR":"{APPLICATION_RESOURCE_PATH}/style"
},
"styles":
{
- "title":{
+ "Title":{
"textColor":"#0000ff",
"background":
{
"mixColor": [ 1.0, 1.0, 1.0, 1.0 ]
}
},
- "tableview":{
+ "TableView":{
"background":
{
"visualType":"GRADIENT",
},
// Change an icon size, see if it gets properly re-sized
- "radiobutton":{
- "unselectedStateImage":"{DEMO_IMAGE_DIR}/radio-button-unselected.png",
- "selectedStateImage":"{DEMO_IMAGE_DIR}/radio-button-selected.png",
- "disabledStateImage":"{DEMO_IMAGE_DIR}/radio-button-unselected-disabled.png",
- "imageLabelGap":10,
+ "RadioButton":{
+ "unselectedVisual":
+ {
+ "visualType": "IMAGE",
+ "url": "{STYLE_DIR}/images/radio-button-unselected.png"
+ },
+ "selectedVisual":
+ {
+ "visualType": "IMAGE",
+ "url": "{STYLE_DIR}/images/radio-button-selected.png"
+ },
"label":{
"textColor": [0.1,1,1,1]
}
},
// Note, this overrides any non-renamed label styles, e.g. those in a button.
- "textlabel":{
+ "TextLabel":{
//"textColor":[0,0,0,1]
},
- "thinslider":{
+ "ThinSlider":{
"styles": ["slider"],
"showPopup":true,
"showValue":false,
},
"enabled":true
},
- "colorSlider1":{
- "styles":["thinslider"],
+ "ColorSlider1":{
+ "styles":["ThinSlider"],
"progressVisual":{
- "url":"{DEMO_IMAGE_DIR}/slider-skin-progress-red.9.png"
+ "url":"{STYLE_DIR}/images/slider-skin-progress-red.9.png"
}
},
- "colorSlider2":{
- "styles":["thinslider"],
+ "ColorSlider2":{
+ "styles":["ThinSlider"],
"progressVisual":{
- "url":"{DEMO_IMAGE_DIR}/slider-skin-progress-green.9.png"
+ "url":"{STYLE_DIR}/images/slider-skin-progress-green.9.png"
}
},
- "colorSlider3":{
+ "ColorSlider3":{
"styles":["thinslider"],
"progressVisual":{
- "url":"{DEMO_IMAGE_DIR}/slider-skin-progress-blue.9.png"
+ "url":"{STYLE_DIR}/images/slider-skin-progress-blue.9.png"
}
+ },
+ "ImageChannelControl":
+ {
+ "enableVisibilityTransition":
+ [
+ {
+ "target":"imageVisual",
+ "property":"mixColor",
+ "initialValue":[1,1,1,0],
+ "targetValue":[1,1,1,1],
+ "animator":
+ {
+ "alphaFunction":"EASE_IN_OUT",
+ "timePeriod":
+ {
+ "duration":0.4,
+ "delay":0
+ }
+ }
+ },
+ {
+ "target":"imageVisual",
+ "property":"size",
+ "targetValue":[1,1]
+ }
+ ],
+ "disableVisibilityTransition":
+ [
+ {
+ "target":"imageVisual",
+ "property":"mixColor",
+ "targetValue":[1,1,1,0],
+ "animator":
+ {
+ "alphaFunction":"EASE_IN_OUT",
+ "timePeriod":
+ {
+ "duration":0.4,
+ "delay":0.2
+ }
+ }
+ },
+ {
+ "target":"imageVisual",
+ "property":"size",
+ "targetValue":[1,1]
+ }
+ ]
+ },
+ "ShadowButton":
+ {
+ "backgroundVisual":{
+ "visualType":"IMAGE",
+ "url":"{STYLE_DIR}/images/shadowButtonBg.9.png"
+ },
+ "checkboxBgVisual":{
+ "visualType":"IMAGE",
+ "url":"{STYLE_DIR}/images/CheckBg.png",
+ "transform":{
+ "size":[0.09, 0.28],
+ "offset":[30,0],
+ "offsetPolicy":["ABSOLUTE", "ABSOLUTE"],
+ "sizePolicy":["RELATIVE", "RELATIVE"],
+ "origin":"CENTER_BEGIN",
+ "anchorPoint":"CENTER_BEGIN"
+ }
+ },
+ "checkboxFgVisual":{
+ "visualType":"IMAGE",
+ "url":"{STYLE_DIR}/images/Tick.png",
+ "transform":{
+ "size":[0.09, 0.28],
+ "offset":[30,0],
+ "offsetPolicy":["ABSOLUTE", "ABSOLUTE"],
+ "sizePolicy":["RELATIVE", "RELATIVE"],
+ "origin":"CENTER_BEGIN",
+ "anchorPoint":"CENTER_BEGIN"
+ }
+ },
+ "labelVisual":{
+ "visualType":"TEXT",
+ "text":"Don't show again",
+ "pointSize":20,
+ "horizontalAlignment":"END",
+ "verticalAlignment":"CENTER",
+ "textColor":[1,1,1,1],
+ "mixColor":[0.3, 0.3, 0.3, 1],
+ "transform":{
+ "size":[0.9, 0.9],
+ "offset":[-30,0],
+ "offsetPolicy":["ABSOLUTE", "ABSOLUTE"],
+ "sizePolicy":["RELATIVE", "RELATIVE"],
+ "origin":"CENTER_END",
+ "anchorPoint":"CENTER_END"
+ }
+ },
+ "activeTransition":
+ [
+ {
+ "target":"checkboxBgVisual",
+ "property":"size",
+ "initialValue":[0.09, 0.28],
+ "targetValue":[0.12, 0.37],
+ "animator":
+ {
+ "alphaFunction":"EASE_OUT_BACK",
+ "timePeriod":
+ {
+ "duration":0.8,
+ "delay":0
+ }
+ }
+ }
+ ],
+ "inactiveTransition":
+ [
+ {
+ "target":"checkboxBgVisual",
+ "property":"size",
+ "initialValue":[0.12, 0.37],
+ "targetValue":[0.09, 0.28],
+ "animator":
+ {
+ "alphaFunction":"EASE_OUT_BACK",
+ "timePeriod":
+ {
+ "duration":0.8,
+ "delay":0
+ }
+ }
+ }
+ ]
}
}
}