Merge "Removed redundant BufferImage code" into devel/master
[platform/core/uifw/dali-demo.git] / resources / style / tooltip-example-theme.json
1 /*
2  * Copyright (c) 2016 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 {
19   "styles":
20   {
21     "TooltipTextOnly" :
22     {
23       "tooltip": "Using defaults defined in the Toolkit stylesheet"
24     },
25
26     "TooltipArray" :
27     {
28       "tooltip" :
29       {
30         "content" :
31         [
32           {
33             "visualType" : "IMAGE",
34             "url" : "{APPLICATION_RESOURCE_PATH}/images/application-icon-0.png",
35             "desiredWidth" : 75,
36             "desiredHeight" : 75
37           },
38           {
39             "visualType" : "TEXT",
40             "text" : "An icon on the left and\nmulti-line text on the right",
41             "multiLine" : true,
42             "pointSize" : 16
43           }
44         ],
45         "tail" : true
46       }
47     },
48
49     "TooltipCustom" :
50     {
51       "tooltip":
52       {
53         "content":
54         {
55           "visualType" : "TEXT",
56           "textColor" : [1,1,1,1],
57           "text" : "Completely custom style\nthat disappears on movement",
58           "multiLine" : true,
59           "pointSize" : 16
60         },
61         "waitTime":0.5,
62         "background":
63         {
64           "visual":"{APPLICATION_RESOURCE_PATH}/images/tooltip.9.png",
65           "border":[1,5,5,1]
66         },
67         "tail":
68         {
69           "visibility":true,
70           "aboveVisual":"{APPLICATION_RESOURCE_PATH}/images/tooltip-tail-above.png",
71           "belowVisual":"{APPLICATION_RESOURCE_PATH}/images/tooltip-tail-below.png"
72         },
73         "position":"ABOVE",
74         "hoverPointOffset":[10,10],
75         "movementThreshold":5,
76         "disappearOnMovement":true
77       }
78     },
79
80     "TableView" :
81     {
82       "cellPadding" : [ 5.0, 5.0 ]
83     }
84   }
85 }