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