Merge "Removed redundant resource loading code" into devel/master
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / styles / 480x800 / dali-toolkit-default-theme.json
1 /*
2  * Copyright (c) 2016 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 480x800 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   "styles":
30   {
31     "Tooltip":
32     {
33       "tooltip":
34       {
35         "content":
36         {
37           "pointSize":12
38         },
39         "waitTime":0.5,
40         "background":
41         {
42           "visual":"{DALI_IMAGE_DIR}tooltip.9.png",
43           "border":[1,5,5,1]
44         },
45         "tail":
46         {
47           "visibility":false,
48           "aboveVisual":"{DALI_IMAGE_DIR}tooltip-tail-above.png",
49           "belowVisual":"{DALI_IMAGE_DIR}tooltip-tail-below.png"
50         },
51         "position":"BELOW",
52         "hoverPointOffset":[10,10],
53         "movementThreshold":5,
54         "disappearOnMovement":false
55       }
56     },
57     "TextLabel":
58     {
59       "pointSize":18,
60       "enableAutoScroll":false,
61       "autoScrollLoopCount":2,
62       "autoScrollGap":50,
63       "autoScrollSpeed":80
64     },
65
66     "TextLabelFontSize0":
67     {
68       "pointSize":8
69     },
70     "TextLabelFontSize1":
71     {
72       "pointSize":10
73     },
74     "TextLabelFontSize2":
75     {
76       "pointSize":15
77     },
78     "TextLabelFontSize3":
79     {
80       "pointSize":19
81     },
82     "TextLabelFontSize4":
83     {
84       "pointSize":25
85     },
86     "TextField":
87     {
88       "pointSize":18,
89       "primaryCursorColor":[0.0,0.72,0.9,1.0],
90       "secondaryCursorColor":[0.0,0.72,0.9,1.0],
91       "cursorWidth":1,
92       "selectionHighlightColor":[0.75,0.96,1.0,1.0],
93       "grabHandleImage" : "{DALI_STYLE_IMAGE_DIR}cursor_handler_drop_center.png",
94       "selectionHandleImageLeft" : {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_left.png" },
95       "selectionHandleImageRight": {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_right.png" }
96     },
97
98     "TextFieldFontSize0":
99     {
100       "pointSize":10
101     },
102     "TextFieldFontSize1":
103     {
104       "pointSize":10
105     },
106     "TextFieldFontSize2":
107     {
108       "pointSize":10
109     },
110     "TextFieldFontSize3":
111     {
112       "pointSize":10
113     },
114     "TextFieldFontSize4":
115     {
116       "pointSize":10
117     },
118     "TextSelectionPopup":
119     {
120       "popupMaxSize":[400,100],
121       "optionDividerSize":[2,0],
122       "popupDividerColor":[0.23,0.72,0.8,0.11],
123       "popupIconColor":[1.0,1.0,1.0,1.0],
124       "popupPressedColor":[0.24,0.72,0.8,0.11],
125       "background": {
126         "visualType": "IMAGE",
127         "url": "{DALI_IMAGE_DIR}selection-popup-background.9.png"
128         },
129       "backgroundBorder": {
130         "visualType": "IMAGE",
131         "url": "{DALI_IMAGE_DIR}selection-popup-border.9.png",
132         "mixColor":[0.24,0.72,0.8,1.0]
133         },
134       "popupFadeInDuration":0.25,
135       "popupFadeOutDuration":0.25
136     },
137     "TextSelectionPopupButton":
138     {
139       "label":
140       {
141         "visualType":"TEXT",
142         "pointSize":8
143       },
144       "unselectedBackgroundVisual":
145       {
146         "visualType": "IMAGE",
147         "url": ""
148       },
149       "selectedBackgroundVisual":
150       {
151         "visualType": "IMAGE",
152         "url": ""
153       }
154     },
155     "TextSelectionToolbar":
156     {
157       "enableOvershoot":true,
158       "enableScrollBar":true,
159       "scrollView":
160       {
161         "overshootAnimationSpeed":120.0,
162         "overshootSize":[480.0,42.0]
163       }
164     },
165     "TextSelectionScrollBar":
166     {
167       "indicatorShowDuration":0.25,
168       "indicatorHideDuration":0.25
169     },
170     "TextSelectionScrollIndicator":
171     {
172       "image":
173       {
174         "visualType":"IMAGE",
175         "url":"{DALI_IMAGE_DIR}text_selection_scroll_indicator.9.png" // designed for HD resolution
176       },
177       "color":[0.0,0.72,0.9,0.7],
178       "scale":[0.625,1.0,1.0] // Note: This reduces height for WVGA resolution
179     },
180     "ScrollView":
181     {
182       "overshootEffectColor":"B018",
183       "overshootAnimationSpeed":120.0,
184       "overshootSize":[480.0,42.0]
185     },
186     "ItemView":
187     {
188       "overshootEffectColor":"B018",
189       "overshootAnimationSpeed":120.0,
190       "overshootSize":[480.0,42.0]
191     },
192     "ScrollBar":
193     {
194       "indicatorShowDuration":0.25,
195       "indicatorHideDuration":0.25
196     },
197     "ScrollBarIndicator":
198     {
199       "image":
200       {
201         "visualType":"IMAGE",
202         "url":"{DALI_IMAGE_DIR}popup_scroll.9.png"
203       }
204     },
205     "TextEditor":
206     {
207       "pointSize":18,
208       "primaryCursorColor":[0.0,0.72,0.9,1.0],
209       "secondaryCursorColor":[0.0,0.72,0.9,1.0],
210       "cursorWidth":1,
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     },
216     "Popup":
217     {
218       "popupBackgroundImage":"{DALI_IMAGE_DIR}00_popup_bg.9.png",
219       "tailUpImage":"{DALI_IMAGE_DIR}popup_tail_up.png",
220       "tailDownImage":"{DALI_IMAGE_DIR}popup_tail_down.png",
221       "tailLeftImage":"{DALI_IMAGE_DIR}popup_tail_left.png",
222       "tailRightImage":"{DALI_IMAGE_DIR}popup_tail_right.png",
223       "popupBackgroundBorder":[17,17,13,13]
224     },
225     "ConfirmationPopup":
226     {
227       "popupBackgroundImage":"{DALI_IMAGE_DIR}00_popup_bg.9.png",
228       "tailUpImage":"{DALI_IMAGE_DIR}popup_tail_up.png",
229       "tailDownImage":"{DALI_IMAGE_DIR}popup_tail_down.png",
230       "tailLeftImage":"{DALI_IMAGE_DIR}popup_tail_left.png",
231       "tailRightImage":"{DALI_IMAGE_DIR}popup_tail_right.png",
232       "popupBackgroundBorder":[17,17,13,13]
233     },
234     "Slider":
235     {
236       "showPopup": true,
237       "showValue": true,
238       "valuePrecision": 0,
239       "trackVisual":{
240         "url":"{DALI_IMAGE_DIR}slider-skin.9.png",
241         "size":[27,27]
242       },
243       "progressVisual":{
244         "url":"{DALI_IMAGE_DIR}slider-skin-progress.9.png",
245         "size":[27,27]
246       },
247       "handleVisual":{
248         "url":"{DALI_IMAGE_DIR}slider-skin-handle.png",
249         "size":[72,72]
250       },
251       "popupVisual":"{DALI_IMAGE_DIR}slider-popup.9.png",
252       "popupArrowVisual":"{DALI_IMAGE_DIR}slider-popup-arrow.9.png",
253       "disableColor":[0.5, 0.5, 0.5, 1.0],
254       "popupTextColor":[0.5,0.5,0.5,1.0],
255       "hitRegion":[0, 72],
256       "marks":[],
257       "snapToMarks":false,
258       "markTolerance":0.05
259     },
260     "SliderHandleTextLabel":
261     {
262       "textColor":[0.8,0.8,1,1]
263     },
264     "ProgressBar":
265     {
266       "trackVisual":{
267         "visualType":"IMAGE",
268         "url":"{DALI_IMAGE_DIR}progress-bar-skin-track.9.png"
269       },
270       "progressVisual":{
271         "visualType":"IMAGE",
272         "url":"{DALI_IMAGE_DIR}progress-bar-skin-progress.9.png"
273       },
274       "secondaryProgressVisual":{
275         "visualType":"IMAGE",
276         "url":"{DALI_IMAGE_DIR}progress-bar-skin-secondary-progress.9.png"
277       },
278       "indeterminateVisual":{
279         "visualType":"IMAGE",
280         "pixelArea":[0.0, 0.0, 10.0, 1.0],
281         "wrapModeU":"REPEAT",
282         "url":"{DALI_IMAGE_DIR}progress-bar-skin-indeterminate.png"
283       },
284       "indeterminateVisualAnimation":
285       [
286         {
287           "target":"indeterminateVisual",
288           "property":"pixelArea",
289           "initialValue":[0.0, 0.0, 10.0, 1.0],
290           "targetValue":[-1.0, 0.0, 10.0, 1.0],
291           "animator":
292           {
293             "alphaFunction":"DEFAULT",
294             "timePeriod":
295             {
296               "duration":0.8,
297               "delay":0
298             }
299           }
300         }
301       ],
302       "labelVisual":{
303         "visualType": "TEXT",
304         "textColor": [ 1.0, 1.0, 1.0, 1.0 ],
305         "pointSize" : 12.0, // Point size must always be provided to Text Visual
306         "horizontalAlignment": "CENTER",
307         "verticalAlignment": "CENTER"
308       },
309       "progressValue": 0.0,
310       "secondaryProgressValue":0.0,
311       "indeterminate": false
312     },
313     "Button":
314     {
315       "styles":["Tooltip"],
316       "initialAutoRepeatingDelay":2.0,
317       "nextAutoRepeatingDelay":0.9
318       // Note: Visuals added to Button will be used in all derived buttons unless overridden.
319     },
320     "PushButton":
321     {
322       "styles":["Button"],
323       "autoRepeating":false,
324       "togglable":false,
325       "labelPadding":[ 12.0, 12.0, 12.0, 12.0 ],
326       "label":
327        {
328          "visualType": "TEXT",
329          "horizontalAlignment": "CENTER",
330          "pointSize" : 15.0, // Point size must always be provided to Text Visual
331          "verticalAlignment": "CENTER"
332        },
333       "unselectedBackgroundVisual":
334        {
335          "visualType": "IMAGE",
336          "url": "{DALI_IMAGE_DIR}button-up.9.png"
337        },
338        "selectedBackgroundVisual":
339        {
340          "visualType": "IMAGE",
341          "url": "{DALI_IMAGE_DIR}button-down.9.png"
342        },
343        "disabledSelectedBackgroundVisual":
344        {
345          "visualType": "IMAGE",
346          "url": "{DALI_IMAGE_DIR}button-down-disabled.9.png"
347        },
348        "disabledUnselectedBackgroundVisual":
349        {
350          "visualType": "IMAGE",
351          "url": "{DALI_IMAGE_DIR}button-disabled.9.png"
352        }
353     },
354     "ToggleButton":
355     {
356       "styles":["Button"]
357     },
358     "CheckBoxButton":
359     {
360       "styles":["Button"],
361       "labelPadding":[ 12.0, 12.0, 0.0, 0.0 ],
362       "label":
363        {
364          "visualType": "TEXT",
365          "pointSize" : 15.0, // Point size must always be provided to Text Visual
366          "verticalAlignment": "CENTER"
367        },
368       "unselectedVisual":
369       {
370         "visualType": "IMAGE",
371         "url": "{DALI_IMAGE_DIR}checkbox-unselected.png"
372       },
373       "selectedVisual":
374       {
375         "visualType": "IMAGE",
376         "url": "{DALI_IMAGE_DIR}checkbox-selected.png"
377       },
378       "disabledUnselectedVisual":
379       {
380         "visualType": "IMAGE",
381         "url": "{DALI_IMAGE_DIR}checkbox-unselected-disabled.png"
382       },
383       "disabledSelectedVisual":
384       {
385         "visualType": "IMAGE",
386         "url": "{DALI_IMAGE_DIR}checkbox-selected-disabled.png"
387       }
388     },
389     "RadioButton":
390     {
391       "styles":["Button"],
392       "labelPadding":[ 12.0, 12.0, 0.0, 0.0 ],
393       "label":
394        {
395          "visualType": "TEXT",
396          "pointSize" : 15.0, // Point size must always be provided to Text Visual
397          "verticalAlignment": "CENTER"
398        },
399       "unselectedVisual":
400       {
401         "visualType": "IMAGE",
402         "url": "{DALI_IMAGE_DIR}radio-button-unselected.png"
403       },
404       "selectedVisual":
405       {
406         "visualType": "IMAGE",
407         "url": "{DALI_IMAGE_DIR}radio-button-selected.png"
408       },
409       "disabledUnselectedVisual":
410       {
411         "visualType": "IMAGE",
412         "url": "{DALI_IMAGE_DIR}radio-button-unselected-disabled.png"
413       },
414       "disabledSelectedVisual":
415       {
416         "visualType": "IMAGE",
417         "url": "{DALI_IMAGE_DIR}radio-button-selected-disabled.png"
418       }
419     }
420   }
421 }