Added Control::SetSubState handling
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit-styling / default-theme.json
1 {
2   "constants":
3   {
4     "CONFIG_SCRIPT_LOG_LEVEL":"NoLogging"
5   },
6   "styles":
7   {
8     "textlabel":
9     {
10       "pointSize":18
11     },
12
13     "textlabelFontSize0":
14     {
15       "pointSize":8
16     },
17     "textlabelFontSize1":
18     {
19       "pointSize":10
20     },
21     "textlabelFontSize2":
22     {
23       "pointSize":15
24     },
25     "textlabelFontSize3":
26     {
27       "pointSize":19
28     },
29     "textlabelFontSize4":
30     {
31       "pointSize":25
32     },
33
34     "textfield":
35     {
36       "pointSize":18,
37       "primaryCursorColor":[0.0,0.72,0.9,1.0],
38       "secondaryCursorColor":[0.0,0.72,0.9,1.0],
39       "cursorWidth":3,
40       "selectionHighlightColor":[0.75,0.96,1.0,1.0],
41       "grabHandleImage" : "{DALI_STYLE_IMAGE_DIR}cursor_handler_drop_center.png",
42       "selectionHandleImageLeft" : {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_left.png" },
43       "selectionHandleImageRight": {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_right.png" }
44     },
45
46     "textfieldFontSize0":
47     {
48       "pointSize":10
49     },
50     "textfieldFontSize1":
51     {
52       "pointSize":10
53     },
54     "textfieldFontSize2":
55     {
56       "pointSize":10
57     },
58     "textfieldFontSize3":
59     {
60       "pointSize":10
61     },
62     "textfieldFontSize4":
63     {
64       "pointSize":10
65     },
66     "textselectionpopup":
67     {
68       "popupMaxSize":[656,72],
69       "optionDividerSize":[2,0],
70       "popupDividerColor":[0.23,0.72,0.8,0.11],
71       "popupIconColor":[1.0,1.0,1.0,1.0],
72       "popupPressedColor":[0.24,0.72,0.8,0.11],
73       "background": {
74         "rendererType": "nPatch",
75         "imageUrl": "{DALI_IMAGE_DIR}selection-popup-bg.9.png"
76         },
77       "popupFadeInDuration":0.25,
78       "popupFadeOutDuration":0.25
79     },
80     "textselectionpopupbutton":
81     {
82       "label":
83       {
84         "pointSize":8,
85         "fontStyle": { "weight":"light" }
86       }
87     },
88     "textselectiontoolbar":
89     {
90       "enableOvershoot":true,
91       "scrollView":
92       {
93         "overshootAnimationSpeed":360.0,
94         "overshootSize":[720.0,130.0]
95       }
96     },
97     "scrollview":
98     {
99       "overshootEffectColor":"B018",
100       "overshootAnimationSpeed":360.0,
101       "overshootSize":[720.0,130.0]
102     },
103     "itemview":
104     {
105       "overshootEffectColor":"B018",
106       "overshootAnimationSpeed":360.0,
107       "overshootSize":[720.0,130.0]
108     },
109     "texteditor":
110     {
111       "pointSize":18,
112       "primaryCursorColor":[0.0,0.72,0.9,1.0],
113       "secondaryCursorColor":[0.0,0.72,0.9,1.0],
114       "cursorWidth":3,
115       "selectionHighlightColor":[0.75,0.96,1.0,1.0],
116       "grabHandleImage" : "{DALI_STYLE_IMAGE_DIR}cursor_handler_drop_center.png",
117       "selectionHandleImageLeft" : {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_left.png" },
118       "selectionHandleImageRight": {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_right.png" }
119     },
120     "ComplexControl":
121     {
122       "states":
123       {
124         "NORMAL":
125         {
126           "states":
127           {
128             "SELECTED":
129             {
130               "visuals":
131               {
132                 "foregroundVisual":
133                 {
134                   "visualType":"GRADIENT",
135                   "startPosition": [-1, -1],
136                   "endPosition": [1, 1],
137                   "spreadMethod": "REPEAT",
138                   "stopOffset": [0.2, 0.8],
139                   "stopColor": [ [ 1,0,0,1], [0,1,0,1] ]
140                 }
141               }
142             },
143             "UNSELECTED":
144             {
145               "visuals":
146               {
147                 "foregroundVisual":
148                 {
149                   "visualType":"COLOR",
150                   "mixColor": [ 1,0,0,1]
151                 }
152               }
153             }
154           },
155           "transitions":
156           {
157             "visualName":"*",
158             "effect":"CROSSFADE",
159             "animator":
160             {
161               "alphaFunction":"EASE_IN_OUT",
162               "duration":0.3
163             }
164           }
165         },
166         "FOCUSED":
167         {
168           "visuals":
169           {
170             "foregroundVisual":
171             {
172               "visualType":"GRADIENT",
173               "startPosition": [-1, -1],
174               "endPosition": [1, 1],
175               "spreadMethod": "REPEAT",
176               "stopOffset": [0.3, 0.9],
177               "stopColor": [ [ 0,0,1,1], [0,1,1,1] ]
178             },
179             "focusVisual":
180             {
181               "visualType":"IMAGE",
182               "url": "focus.png"
183             }
184           },
185           "entryTransition":
186           {
187             "target":"focusVisual",
188             "property":"mixColor",
189             "initialValue":[0,0,0,0],
190             "targetValue":[1,1,1,1],
191             "animator":
192             {
193               "alphaFunction":"EASE_IN_OUT_SINE",
194               "timePeriod":
195               {
196                 "duration":0.5,
197                 "delay":0
198               }
199             }
200           },
201           "exitTransition":
202           {
203             "target":"focusVisual",
204             "property":"mixColor",
205             "initialValue":[1,1,1,1],
206             "targetValue":[0,0,0,0],
207             "animator":
208             {
209               "alphaFunction":"EASE_IN_OUT_SINE",
210               "timePeriod":
211               {
212                 "duration":0.5,
213                 "delay":0
214               }
215             }
216           }
217         },
218         "DISABLED":
219         {
220           "visuals":
221           {
222             "foregroundVisual":
223             {
224               "visualType":"COLOR",
225               "mixColor": [1,0,0,1]
226             }
227           }
228         }
229       },
230       "transitions":
231       [
232         {
233           "effect":"CROSSFADE",
234           "animator":
235           {
236             "alphaFunction":"EASE_IN_OUT",
237             "duration":0.3
238           }
239         }
240       ]
241     },
242     "BasicControl":
243     {
244       "states":
245       {
246         "NORMAL":
247         {
248           "visuals":
249           {
250             "foregroundVisual":
251             {
252               "visualType":"GRADIENT",
253               "startPosition": [-1, -1],
254               "endPosition": [1, 1],
255               "spreadMethod": "REPEAT",
256               "stopOffset": [0.2, 0.8],
257               "stopColor": [ [ 1,0,0,1], [0,1,0,1] ]
258             }
259           }
260         },
261         "FOCUSED":
262         {
263           "visuals":
264           {
265             "foregroundVisual":
266             {
267               "visualType":"GRADIENT",
268               "startPosition": [-1, -1],
269               "endPosition": [1, 1],
270               "spreadMethod": "REPEAT",
271               "stopOffset": [0.3, 0.9],
272               "stopColor": [ [ 0,0,1,1], [0,1,1,1] ]
273             },
274             "focusVisual":
275             {
276               "visualType":"IMAGE",
277               "url": "focus.png"
278             }
279           },
280           "entryTransition":
281           {
282             "target":"focusVisual",
283             "property":"mixColor",
284             "initialValue":[0,0,0,0],
285             "targetValue":[1,1,1,1],
286             "animator":
287             {
288               "alphaFunction":"EASE_IN_OUT_SINE",
289               "timePeriod":
290               {
291                 "duration":0.5,
292                 "delay":0
293               }
294             }
295           },
296           "exitTransition":
297           {
298             "target":"focusVisual",
299             "property":"mixColor",
300             "initialValue":[1,1,1,1],
301             "targetValue":[0,0,0,0],
302             "animator":
303             {
304               "alphaFunction":"EASE_IN_OUT_SINE",
305               "timePeriod":
306               {
307                 "duration":0.5,
308                 "delay":0
309               }
310             }
311           }
312         },
313         "DISABLED":
314         {
315           "visuals":
316           {
317             "foregroundVisual":
318             {
319               "visualType":"COLOR",
320               "mixColor": [1,0,0,1]
321             }
322           }
323         }
324       },
325       "transitions":
326       [
327         {
328           "effect":"CROSSFADE",
329           "animator":
330           {
331             "alphaFunction":"EASE_IN_OUT",
332             "duration":0.3
333           }
334         }
335       ]
336     }
337   }
338 }