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