Merge "Fix typo in visual-properties" into devel/master
[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     "brokenImageUrl":"{DALI_IMAGE_DIR}broken.png",
32     "alwaysShowFocus":true,
33     "clearFocusOnEscape":false
34   },
35   "styles":
36   {
37     "Tooltip":
38     {
39       "tooltip":
40       {
41         "content":
42         {
43           "pointSize":42
44         },
45         "waitTime":0.5,
46         "background":
47         {
48           "visual":"{DALI_IMAGE_DIR}tooltip.9.png",
49           "border":[1,5,5,1]
50         },
51         "tail":
52         {
53           "visibility":false,
54           "aboveVisual":"{DALI_IMAGE_DIR}tooltip-tail-above.png",
55           "belowVisual":"{DALI_IMAGE_DIR}tooltip-tail-below.png"
56         },
57         "position":"BELOW",
58         "hoverPointOffset":[10,10],
59         "movementThreshold":5,
60         "disappearOnMovement":false
61       }
62     },
63     "TextLabel":
64     {
65       "pointSize":54,
66       "enableAutoScroll":false,
67       "autoScrollLoopCount":2,
68       "autoScrollGap":50,
69       "autoScrollSpeed":80,
70       "ignoreSpacesAfterText":false
71     },
72
73     "TextLabelFontSize0":
74     {
75       "pointSize":42
76     },
77     "TextLabelFontSize1":
78     {
79       "pointSize":48
80     },
81     "TextLabelFontSize2":
82     {
83       "pointSize":54
84     },
85     "TextLabelFontSize3":
86     {
87       "pointSize":60
88     },
89     "TextLabelFontSize4":
90     {
91       "pointSize":66
92     },
93
94     "TextField":
95     {
96       "pointSize":60,
97       "primaryCursorColor":[0.0,0.72,0.9,1.0],
98       "secondaryCursorColor":[0.0,0.72,0.9,1.0],
99       "cursorWidth":6,
100       "selectionHighlightColor":[0.75,0.96,1.0,1.0],
101       "grabHandleImage" : "{DALI_STYLE_IMAGE_DIR}cursor_handler_drop_center.png",
102       "selectionHandleImageLeft" : {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_left.png" },
103       "selectionHandleImageRight": {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_right.png" },
104       "enableSelection":false
105     },
106
107     "TextFieldFontSize0":
108     {
109       "pointSize":60
110     },
111     "TextFieldFontSize1":
112     {
113       "pointSize":60
114     },
115     "TextFieldFontSize2":
116     {
117       "pointSize":60
118     },
119     "TextFieldFontSize3":
120     {
121       "pointSize":60
122     },
123     "TextFieldFontSize4":
124     {
125       "pointSize":60
126     },
127     "TextSelectionPopup":
128     {
129       "popupMaxSize":[1700,100],
130       "optionDividerSize":[2,0],
131       "popupDividerColor":[0.23,0.72,0.8,0.11],
132       "popupIconColor":[1.0,1.0,1.0,1.0],
133       "popupPressedColor":[0.24,0.72,0.8,0.11],
134       "background": {
135         "rendererType": "image",
136         "url": "{DALI_IMAGE_DIR}selection-popup-background.9.png"
137         },
138       "backgroundBorder": {
139         "visualType": "IMAGE",
140         "url": "{DALI_IMAGE_DIR}selection-popup-border.9.png",
141         "mixColor":[0.24,0.72,0.8,1.0]
142         },
143       "popupFadeInDuration":0.25,
144       "popupFadeOutDuration":0.25
145     },
146     "TextSelectionPopupButton":
147     {
148       "label":
149       {
150         "visualType":"TEXT",
151         "pointSize":60
152       },
153       "unselectedBackgroundVisual":
154       {
155         "visualType": "IMAGE",
156         "url": ""
157       },
158       "selectedBackgroundVisual":
159       {
160         "visualType": "IMAGE",
161         "url": ""
162       }
163     },
164     "TextSelectionToolbar":
165     {
166       "enableOvershoot":true,
167       "enableScrollBar":true,
168       "scrollView":
169       {
170         "overshootAnimationSpeed":360.0,
171         "overshootSize":[1920.0,130.0]
172       }
173     },
174     "TextSelectionScrollBar":
175     {
176       "indicatorShowDuration":0.25,
177       "indicatorHideDuration":0.25,
178       "indicatorTransientDuration":1.0
179     },
180     "TextSelectionScrollIndicator":
181     {
182       "image":
183       {
184         "visualType":"IMAGE",
185         "url":"{DALI_IMAGE_DIR}text_selection_scroll_indicator.9.png"
186       },
187       "color":[0.0,0.72,0.9,0.7]
188     },
189     "ScrollView":
190     {
191       "overshootEffectColor":"B018",
192       "overshootAnimationSpeed":960.0,
193       "overshootSize":[1920.0,130.0]
194     },
195     "ItemView":
196     {
197       "overshootEffectColor":"B018",
198       "overshootAnimationSpeed":960.0,
199       "overshootSize":[1920.0,130.0]
200     },
201     "ScrollBar":
202     {
203       "indicatorShowDuration":0.25,
204       "indicatorHideDuration":0.25,
205       "color":[0.0,0.72,0.9,0.7]
206     },
207     "TextEditor":
208     {
209       "pointSize":60,
210       "primaryCursorColor":[0.0,0.72,0.9,1.0],
211       "secondaryCursorColor":[0.0,0.72,0.9,1.0],
212       "cursorWidth":6,
213       "selectionHighlightColor":[0.75,0.96,1.0,1.0],
214       "grabHandleImage" : "{DALI_STYLE_IMAGE_DIR}cursor_handler_drop_center.png",
215       "selectionHandleImageLeft" : {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_left.png" },
216       "selectionHandleImageRight": {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_right.png" },
217       "enableScrollBar":true,
218       "scrollBarShowDuration":0.8,
219       "scrollBarFadeDuration":0.5,
220       "enableSelection":false
221     },
222     "ProgressBar":
223     {
224       "trackVisual":{
225         "visualType":"IMAGE",
226         "url":"{DALI_IMAGE_DIR}progress-bar-skin-track.9.png"
227       },
228       "progressVisual":{
229         "visualType":"IMAGE",
230         "url":"{DALI_IMAGE_DIR}progress-bar-skin-progress.9.png"
231       },
232       "secondaryProgressVisual":{
233         "visualType":"IMAGE",
234         "url":"{DALI_IMAGE_DIR}progress-bar-skin-secondary-progress.9.png"
235       },
236       "indeterminateVisual":{
237         "visualType":"IMAGE",
238         "pixelArea":[0.0, 0.0, 10.0, 1.0],
239         "wrapModeU":"REPEAT",
240         "url":"{DALI_IMAGE_DIR}progress-bar-skin-indeterminate.png"
241       },
242       "indeterminateVisualAnimation":
243       [
244         {
245           "target":"indeterminateVisual",
246           "property":"pixelArea",
247           "initialValue":[0.0, 0.0, 10.0, 1.0],
248           "targetValue":[-1.0, 0.0, 10.0, 1.0],
249           "animator":
250           {
251             "alphaFunction":"DEFAULT",
252             "timePeriod":
253             {
254               "duration":0.8,
255               "delay":0
256             }
257           }
258         }
259       ],
260       "labelVisual":{
261         "visualType": "TEXT",
262         "textColor": [ 1.0, 1.0, 1.0, 1.0 ],
263         "pointSize" : 12.0, // Point size must always be provided to Text Visual
264         "horizontalAlignment": "CENTER",
265         "verticalAlignment": "CENTER"
266       },
267       "progressValue": 0.0,
268       "secondaryProgressValue":0.0,
269       "indeterminate": false
270     },
271     "Button":
272     {
273       "styles":["Tooltip"],
274       "initialAutoRepeatingDelay":2.0,
275       "nextAutoRepeatingDelay":0.9
276       // Note: Visuals added to Button will be used in all derived buttons unless overridden.
277     },
278     "PushButton":
279     {
280       "styles":["Button"],
281       "autoRepeating":false,
282       "togglable":false,
283       "labelPadding":[ 12.0, 12.0, 12.0, 12.0 ],
284       "label":
285        {
286          "visualType": "TEXT",
287          "horizontalAlignment": "CENTER",
288          "pointSize" : 15.0, // Point size must always be provided to Text Visual
289          "verticalAlignment": "CENTER"
290        },
291       "unselectedBackgroundVisual":
292        {
293          "visualType": "IMAGE",
294          "url": "{DALI_IMAGE_DIR}button-up.9.png"
295        },
296        "selectedBackgroundVisual":
297        {
298          "visualType": "IMAGE",
299          "url": "{DALI_IMAGE_DIR}button-down.9.png"
300        },
301        "disabledSelectedBackgroundVisual":
302        {
303          "visualType": "IMAGE",
304          "url": "{DALI_IMAGE_DIR}button-down-disabled.9.png"
305        },
306        "disabledUnselectedBackgroundVisual":
307        {
308          "visualType": "IMAGE",
309          "url": "{DALI_IMAGE_DIR}button-disabled.9.png"
310        }
311     },
312     "ToggleButton":
313     {
314       "styles":["Button"]
315     },
316     "CheckBoxButton":
317     {
318       "styles":["Button"],
319       "labelPadding":[ 12.0, 12.0, 0.0, 0.0 ],
320       "label":
321        {
322          "visualType": "TEXT",
323          "pointSize" : 15.0, // Point size must always be provided to Text Visual
324          "verticalAlignment": "CENTER"
325        },
326       "unselectedVisual":
327       {
328         "visualType": "IMAGE",
329         "url": "{DALI_IMAGE_DIR}checkbox-unselected.png"
330       },
331       "selectedVisual":
332       {
333         "visualType": "IMAGE",
334         "url": "{DALI_IMAGE_DIR}checkbox-selected.png"
335       },
336       "disabledUnselectedVisual":
337       {
338         "visualType": "IMAGE",
339         "url": "{DALI_IMAGE_DIR}checkbox-unselected-disabled.png"
340       },
341       "disabledSelectedVisual":
342       {
343         "visualType": "IMAGE",
344         "url": "{DALI_IMAGE_DIR}checkbox-selected-disabled.png"
345       }
346     },
347     "RadioButton":
348     {
349       "styles":["Button"],
350       "labelPadding":[ 12.0, 12.0, 0.0, 0.0 ],
351       "label":
352        {
353          "visualType": "TEXT",
354          "pointSize" : 15.0, // Point size must always be provided to Text Visual
355          "verticalAlignment": "CENTER"
356        },
357       "unselectedVisual":
358       {
359         "visualType": "IMAGE",
360         "url": "{DALI_IMAGE_DIR}radio-button-unselected.png"
361       },
362       "selectedVisual":
363       {
364         "visualType": "IMAGE",
365         "url": "{DALI_IMAGE_DIR}radio-button-selected.png"
366       },
367       "disabledUnselectedVisual":
368       {
369         "visualType": "IMAGE",
370         "url": "{DALI_IMAGE_DIR}radio-button-unselected-disabled.png"
371       },
372       "disabledSelectedVisual":
373       {
374         "visualType": "IMAGE",
375         "url": "{DALI_IMAGE_DIR}radio-button-selected-disabled.png"
376       }
377     }
378   }
379 }