Add ClearFocusOnEscape to config section.
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / styles / 1920x1080 / dali-toolkit-default-theme.json
1 /*
2  * Copyright (c) 2017 Samsung Electronics Co., Ltd.
3  *
4  * This file is part of Dali Toolkit
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18
19
20 //******************************************************************************
21 //
22 // Default Reference style theme for a 1920x1080 resolution, The values determined by UX design specification.
23 // This file can be copied to a new folder within the styles/ directory and amended with new default values.
24 // Can be overriden if StyleManager applies another style sheet.
25 //
26 //******************************************************************************
27
28 {
29   "config":
30   {
31     "alwaysShowFocus":false,
32     "clearFocusOnEscape":false
33   },
34   "styles":
35   {
36     "Tooltip":
37     {
38       "tooltip":
39       {
40         "content":
41         {
42           "pointSize":84
43         },
44         "waitTime":0.5,
45         "background":
46         {
47           "visual":"{DALI_IMAGE_DIR}tooltip.9.png",
48           "border":[1,5,5,1]
49         },
50         "tail":
51         {
52           "visibility":false,
53           "aboveVisual":"{DALI_IMAGE_DIR}tooltip-tail-above.png",
54           "belowVisual":"{DALI_IMAGE_DIR}tooltip-tail-below.png"
55         },
56         "position":"BELOW",
57         "hoverPointOffset":[10,10],
58         "movementThreshold":5,
59         "disappearOnMovement":false
60       }
61     },
62     "TextLabel":
63     {
64       "pointSize":108,
65       "enableAutoScroll":false,
66       "autoScrollLoopCount":2,
67       "autoScrollGap":50,
68       "autoScrollSpeed":80
69     },
70
71     "TextLabelFontSize0":
72     {
73       "pointSize":84
74     },
75     "TextLabelFontSize1":
76     {
77       "pointSize":96
78     },
79     "TextLabelFontSize2":
80     {
81       "pointSize":108
82     },
83     "TextLabelFontSize3":
84     {
85       "pointSize":120
86     },
87     "TextLabelFontSize4":
88     {
89       "pointSize":132
90     },
91
92     "TextField":
93     {
94       "pointSize":120,
95       "primaryCursorColor":[0.0,0.72,0.9,1.0],
96       "secondaryCursorColor":[0.0,0.72,0.9,1.0],
97       "cursorWidth":6,
98       "selectionHighlightColor":[0.75,0.96,1.0,1.0],
99       "grabHandleImage" : "{DALI_STYLE_IMAGE_DIR}cursor_handler_drop_center.png",
100       "selectionHandleImageLeft" : {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_left.png" },
101       "selectionHandleImageRight": {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_right.png" },
102       "enableSelection":false
103     },
104
105     "TextFieldFontSize0":
106     {
107       "pointSize":120
108     },
109     "TextFieldFontSize1":
110     {
111       "pointSize":120
112     },
113     "TextFieldFontSize2":
114     {
115       "pointSize":120
116     },
117     "TextFieldFontSize3":
118     {
119       "pointSize":120
120     },
121     "TextFieldFontSize4":
122     {
123       "pointSize":120
124     },
125     "TextSelectionPopup":
126     {
127       "popupMaxSize":[1700,100],
128       "optionDividerSize":[2,0],
129       "popupDividerColor":[0.23,0.72,0.8,0.11],
130       "popupIconColor":[1.0,1.0,1.0,1.0],
131       "popupPressedColor":[0.24,0.72,0.8,0.11],
132       "background": {
133         "rendererType": "image",
134         "url": "{DALI_IMAGE_DIR}selection-popup-background.9.png"
135         },
136       "backgroundBorder": {
137         "visualType": "IMAGE",
138         "url": "{DALI_IMAGE_DIR}selection-popup-border.9.png",
139         "mixColor":[0.24,0.72,0.8,1.0]
140         },
141       "popupFadeInDuration":0.25,
142       "popupFadeOutDuration":0.25
143     },
144     "TextSelectionPopupButton":
145     {
146       "label":
147       {
148         "visualType":"TEXT",
149         "pointSize":120
150       },
151       "unselectedBackgroundVisual":
152       {
153         "visualType": "IMAGE",
154         "url": ""
155       },
156       "selectedBackgroundVisual":
157       {
158         "visualType": "IMAGE",
159         "url": ""
160       }
161     },
162     "TextSelectionToolbar":
163     {
164       "enableOvershoot":true,
165       "enableScrollBar":true,
166       "scrollView":
167       {
168         "overshootAnimationSpeed":360.0,
169         "overshootSize":[1920.0,130.0]
170       }
171     },
172     "TextSelectionScrollBar":
173     {
174       "indicatorShowDuration":0.25,
175       "indicatorHideDuration":0.25,
176       "indicatorTransientDuration":1.0
177     },
178     "TextSelectionScrollIndicator":
179     {
180       "image":
181       {
182         "visualType":"IMAGE",
183         "url":"{DALI_IMAGE_DIR}text_selection_scroll_indicator.9.png"
184       },
185       "color":[0.0,0.72,0.9,0.7]
186     },
187     "ScrollView":
188     {
189       "overshootEffectColor":"B018",
190       "overshootAnimationSpeed":960.0,
191       "overshootSize":[1920.0,130.0]
192     },
193     "ItemView":
194     {
195       "overshootEffectColor":"B018",
196       "overshootAnimationSpeed":960.0,
197       "overshootSize":[1920.0,130.0]
198     },
199     "ScrollBar":
200     {
201       "indicatorShowDuration":0.25,
202       "indicatorHideDuration":0.25,
203       "color":[0.0,0.72,0.9,0.7]
204     },
205     "TextEditor":
206     {
207       "pointSize":120,
208       "primaryCursorColor":[0.0,0.72,0.9,1.0],
209       "secondaryCursorColor":[0.0,0.72,0.9,1.0],
210       "cursorWidth":6,
211       "selectionHighlightColor":[0.75,0.96,1.0,1.0],
212       "grabHandleImage" : "{DALI_STYLE_IMAGE_DIR}cursor_handler_drop_center.png",
213       "selectionHandleImageLeft" : {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_left.png" },
214       "selectionHandleImageRight": {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_right.png" },
215       "enableScrollBar":true,
216       "scrollBarShowDuration":0.8,
217       "scrollBarFadeDuration":0.5,
218       "enableSelection":false
219     },
220     "ProgressBar":
221     {
222       "trackVisual":{
223         "visualType":"IMAGE",
224         "url":"{DALI_IMAGE_DIR}progress-bar-skin-track.9.png"
225       },
226       "progressVisual":{
227         "visualType":"IMAGE",
228         "url":"{DALI_IMAGE_DIR}progress-bar-skin-progress.9.png"
229       },
230       "secondaryProgressVisual":{
231         "visualType":"IMAGE",
232         "url":"{DALI_IMAGE_DIR}progress-bar-skin-secondary-progress.9.png"
233       },
234       "indeterminateVisual":{
235         "visualType":"IMAGE",
236         "pixelArea":[0.0, 0.0, 10.0, 1.0],
237         "wrapModeU":"REPEAT",
238         "url":"{DALI_IMAGE_DIR}progress-bar-skin-indeterminate.png"
239       },
240       "indeterminateVisualAnimation":
241       [
242         {
243           "target":"indeterminateVisual",
244           "property":"pixelArea",
245           "initialValue":[0.0, 0.0, 10.0, 1.0],
246           "targetValue":[-1.0, 0.0, 10.0, 1.0],
247           "animator":
248           {
249             "alphaFunction":"DEFAULT",
250             "timePeriod":
251             {
252               "duration":0.8,
253               "delay":0
254             }
255           }
256         }
257       ],
258       "labelVisual":{
259         "visualType": "TEXT",
260         "textColor": [ 1.0, 1.0, 1.0, 1.0 ],
261         "pointSize" : 12.0, // Point size must always be provided to Text Visual
262         "horizontalAlignment": "CENTER",
263         "verticalAlignment": "CENTER"
264       },
265       "progressValue": 0.0,
266       "secondaryProgressValue":0.0,
267       "indeterminate": false
268     },
269     "Button":
270     {
271       "styles":["Tooltip"],
272       "initialAutoRepeatingDelay":2.0,
273       "nextAutoRepeatingDelay":0.9
274       // Note: Visuals added to Button will be used in all derived buttons unless overridden.
275     },
276     "PushButton":
277     {
278       "styles":["Button"],
279       "autoRepeating":false,
280       "togglable":false,
281       "labelPadding":[ 12.0, 12.0, 12.0, 12.0 ],
282       "label":
283        {
284          "visualType": "TEXT",
285          "horizontalAlignment": "CENTER",
286          "pointSize" : 15.0, // Point size must always be provided to Text Visual
287          "verticalAlignment": "CENTER"
288        },
289       "unselectedBackgroundVisual":
290        {
291          "visualType": "IMAGE",
292          "url": "{DALI_IMAGE_DIR}button-up.9.png"
293        },
294        "selectedBackgroundVisual":
295        {
296          "visualType": "IMAGE",
297          "url": "{DALI_IMAGE_DIR}button-down.9.png"
298        },
299        "disabledSelectedBackgroundVisual":
300        {
301          "visualType": "IMAGE",
302          "url": "{DALI_IMAGE_DIR}button-down-disabled.9.png"
303        },
304        "disabledUnselectedBackgroundVisual":
305        {
306          "visualType": "IMAGE",
307          "url": "{DALI_IMAGE_DIR}button-disabled.9.png"
308        }
309     },
310     "ToggleButton":
311     {
312       "styles":["Button"]
313     },
314     "CheckBoxButton":
315     {
316       "styles":["Button"],
317       "labelPadding":[ 12.0, 12.0, 0.0, 0.0 ],
318       "label":
319        {
320          "visualType": "TEXT",
321          "pointSize" : 15.0, // Point size must always be provided to Text Visual
322          "verticalAlignment": "CENTER"
323        },
324       "unselectedVisual":
325       {
326         "visualType": "IMAGE",
327         "url": "{DALI_IMAGE_DIR}checkbox-unselected.png"
328       },
329       "selectedVisual":
330       {
331         "visualType": "IMAGE",
332         "url": "{DALI_IMAGE_DIR}checkbox-selected.png"
333       },
334       "disabledUnselectedVisual":
335       {
336         "visualType": "IMAGE",
337         "url": "{DALI_IMAGE_DIR}checkbox-unselected-disabled.png"
338       },
339       "disabledSelectedVisual":
340       {
341         "visualType": "IMAGE",
342         "url": "{DALI_IMAGE_DIR}checkbox-selected-disabled.png"
343       }
344     },
345     "RadioButton":
346     {
347       "styles":["Button"],
348       "labelPadding":[ 12.0, 12.0, 0.0, 0.0 ],
349       "label":
350        {
351          "visualType": "TEXT",
352          "pointSize" : 15.0, // Point size must always be provided to Text Visual
353          "verticalAlignment": "CENTER"
354        },
355       "unselectedVisual":
356       {
357         "visualType": "IMAGE",
358         "url": "{DALI_IMAGE_DIR}radio-button-unselected.png"
359       },
360       "selectedVisual":
361       {
362         "visualType": "IMAGE",
363         "url": "{DALI_IMAGE_DIR}radio-button-selected.png"
364       },
365       "disabledUnselectedVisual":
366       {
367         "visualType": "IMAGE",
368         "url": "{DALI_IMAGE_DIR}radio-button-unselected-disabled.png"
369       },
370       "disabledSelectedVisual":
371       {
372         "visualType": "IMAGE",
373         "url": "{DALI_IMAGE_DIR}radio-button-selected-disabled.png"
374       }
375     }
376   }
377 }