Merge "Change a label of check box button" into tizen
[platform/core/uifw/dali-demo.git] / resources / scripts / background-color.json
1 /*
2  * Copyright (c) 2014 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 TextView with a red background
20     {
21       "type": "TextView",
22       "text": "Hello World",
23       "parent-origin": "TOP_CENTER",
24       "anchor-point": "TOP_CENTER",
25       "background-color": [1, 0, 0, 1],
26       "size": [400, 150, 1]
27     },
28
29     // A container with a yellow background
30     {
31       "type": "Control",
32       "parent-origin": "CENTER",
33       "anchor-point": "BOTTOM_CENTER",
34       "background-color": [1, 1, 0, 1],
35       "size": [400, 150, 1]
36     },
37
38     // A container with an image
39     {
40       "type": "Control",
41       "parent-origin": "CENTER",
42       "anchor-point": "TOP_CENTER",
43       "size": [400, 150, 1],
44       "background": {
45         "image": {
46           "filename": "{DALI_IMAGE_DIR}button-background.png"
47         }
48       }
49     },
50
51     // A container with the same image blended in with a blue background
52     {
53       "type": "Control",
54       "parent-origin": "BOTTOM_CENTER",
55       "anchor-point": "BOTTOM_CENTER",
56       "size": [400, 150, 1],
57       "background-color": [0, 0, 1, 1],
58       "background": {
59         "image": {
60           "filename": "{DALI_IMAGE_DIR}button-background.png"
61         }
62       }
63     }
64   ]
65 }