projects
/
platform
/
core
/
uifw
/
dali-demo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c3af97e
)
Added SVG image to background JSON
89/65489/1
author
Adeel Kazmi
<adeel.kazmi@samsung.com>
Mon, 11 Apr 2016 09:12:48 +0000
(10:12 +0100)
committer
Adeel Kazmi
<adeel.kazmi@samsung.com>
Mon, 11 Apr 2016 09:12:48 +0000
(10:12 +0100)
Change-Id: I1fe304f892aa92108cbb07a46368eb267b97f9e0
resources/scripts/background.json
patch
|
blob
|
history
diff --git
a/resources/scripts/background.json
b/resources/scripts/background.json
index
04777c9
..
62ffd08
100644
(file)
--- a/
resources/scripts/background.json
+++ b/
resources/scripts/background.json
@@
-26,15
+26,30
@@
"pointSize": 20,
"horizontalAlignment": "CENTER",
"verticalAlignment": "CENTER",
"pointSize": 20,
"horizontalAlignment": "CENTER",
"verticalAlignment": "CENTER",
- "widthResizePolicy":"
FILL
_TO_PARENT",
+ "widthResizePolicy":"
SIZE_RELATIVE
_TO_PARENT",
"heightResizePolicy":"SIZE_RELATIVE_TO_PARENT",
"heightResizePolicy":"SIZE_RELATIVE_TO_PARENT",
- "sizeModeFactor": [
1.0, 0.
33, 1 ],
+ "sizeModeFactor": [
0.5, 0.3333333333
33, 1 ],
"background":{
"rendererType": "color",
"blendColor": [ 0.8, 0, 0.2, 1 ]
}
},
"background":{
"rendererType": "color",
"blendColor": [ 0.8, 0, 0.2, 1 ]
}
},
+ // A control with an SVG image
+ {
+ "type": "Control",
+ "relayoutEnabled": false,
+ "parentOrigin": "TOP_RIGHT",
+ "anchorPoint": "TOP_RIGHT",
+ "widthResizePolicy":"SIZE_RELATIVE_TO_PARENT",
+ "heightResizePolicy":"SIZE_RELATIVE_TO_PARENT",
+ "sizeModeFactor": [ 0.5, 0.333333333333, 1 ],
+ "background": {
+ "rendererType": "svg",
+ "imageUrl": "{DEMO_IMAGE_DIR}Kid1.svg"
+ }
+ },
+
// A control with a border
{
"type": "Control",
// A control with a border
{
"type": "Control",
@@
-43,7
+58,7
@@
"anchorPoint": "CENTER_LEFT",
"widthResizePolicy":"SIZE_RELATIVE_TO_PARENT",
"heightResizePolicy":"SIZE_RELATIVE_TO_PARENT",
"anchorPoint": "CENTER_LEFT",
"widthResizePolicy":"SIZE_RELATIVE_TO_PARENT",
"heightResizePolicy":"SIZE_RELATIVE_TO_PARENT",
- "sizeModeFactor": [ 0.5, 0.33
, 1
],
+ "sizeModeFactor": [ 0.5, 0.33
3333333333, 1
],
"background": {
"rendererType" : "border",
"borderColor" : [ 0.5, 0.5, 0.5, 1 ],
"background": {
"rendererType" : "border",
"borderColor" : [ 0.5, 0.5, 0.5, 1 ],
@@
-51,7
+66,7
@@
}
},
}
},
- // A control with a
n
image
+ // A control with a
JPG
image
{
"type": "Control",
"relayoutEnabled": false,
{
"type": "Control",
"relayoutEnabled": false,
@@
-59,7
+74,7
@@
"anchorPoint": "CENTER_RIGHT",
"widthResizePolicy":"SIZE_RELATIVE_TO_PARENT",
"heightResizePolicy":"SIZE_RELATIVE_TO_PARENT",
"anchorPoint": "CENTER_RIGHT",
"widthResizePolicy":"SIZE_RELATIVE_TO_PARENT",
"heightResizePolicy":"SIZE_RELATIVE_TO_PARENT",
- "sizeModeFactor": [ 0.5, 0.33, 1 ],
+ "sizeModeFactor": [ 0.5, 0.33
3333333333
, 1 ],
"background": {
"rendererType": "image",
"imageUrl": "{DEMO_IMAGE_DIR}gallery-large-9.jpg"
"background": {
"rendererType": "image",
"imageUrl": "{DEMO_IMAGE_DIR}gallery-large-9.jpg"
@@
-74,7
+89,7
@@
"anchorPoint": "BOTTOM_LEFT",
"widthResizePolicy":"SIZE_RELATIVE_TO_PARENT",
"heightResizePolicy":"SIZE_RELATIVE_TO_PARENT",
"anchorPoint": "BOTTOM_LEFT",
"widthResizePolicy":"SIZE_RELATIVE_TO_PARENT",
"heightResizePolicy":"SIZE_RELATIVE_TO_PARENT",
- "sizeModeFactor": [ 0.5, 0.33, 1 ],
+ "sizeModeFactor": [ 0.5, 0.33
3333333333
, 1 ],
"background":{
"rendererType": "color",
"blendColor": [ 1, 1, 0, 1 ]
"background":{
"rendererType": "color",
"blendColor": [ 1, 1, 0, 1 ]
@@
-89,7
+104,7
@@
"anchorPoint": "BOTTOM_RIGHT",
"widthResizePolicy":"SIZE_RELATIVE_TO_PARENT",
"heightResizePolicy":"SIZE_RELATIVE_TO_PARENT",
"anchorPoint": "BOTTOM_RIGHT",
"widthResizePolicy":"SIZE_RELATIVE_TO_PARENT",
"heightResizePolicy":"SIZE_RELATIVE_TO_PARENT",
- "sizeModeFactor": [ 0.5, 0.33
, 1.0
],
+ "sizeModeFactor": [ 0.5, 0.33
3333333333, 1
],
"background": {
"rendererType" : "gradient",
"startPosition" : [ -0.5, -0.5 ],
"background": {
"rendererType" : "gradient",
"startPosition" : [ -0.5, -0.5 ],