Remove dali-any from Property::Value
[platform/core/uifw/dali-demo.git] / resources / scripts / background-color.json
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 {
18   "stage": [
19     // A TextLabel with a red background
20     {
21       "type": "TextLabel",
22       "draw-mode": "OVERLAY",
23       "text": "Hello World",
24       "parent-origin": "TOP_CENTER",
25       "anchor-point": "TOP_CENTER",
26       "background-color": [1, 0, 0, 1],
27       "position": [0, 50, 0],
28       "point-size": 40,
29       "size": [400, 150, 1]
30     },
31
32     // A container with a yellow background
33     {
34       "type": "Control",
35       "relayout-enabled": false,
36       "parent-origin": "CENTER",
37       "anchor-point": "BOTTOM_CENTER",
38       "background-color": [1, 1, 0, 1],
39       "size": [400, 150, 1]
40     },
41
42     // A container with an image
43     {
44       "type": "Control",
45       "relayout-enabled": false,
46       "parent-origin": "CENTER",
47       "anchor-point": "TOP_CENTER",
48       "size": [400, 150, 1],
49       "background-image": {
50         "filename": "{DALI_IMAGE_DIR}button-background.png"
51       }
52     },
53
54     // A container with the same image blended in with a blue background
55     {
56       "type": "Control",
57       "relayout-enabled": false,
58       "parent-origin": "BOTTOM_CENTER",
59       "anchor-point": "BOTTOM_CENTER",
60       "size": [400, 150, 1],
61       "background-color": [0, 0, 1, 1],
62       "background-image": {
63         "filename": "{DALI_IMAGE_DIR}button-background.png"
64       }
65     }
66   ]
67 }