Merge "Prepare for Tizen 4.0 Build" 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-bg.9.png"
128         },
129       "popupFadeInDuration":0.25,
130       "popupFadeOutDuration":0.25
131     },
132     "TextSelectionPopupButton":
133     {
134       "label":
135       {
136         "visualType":"TEXT",
137         "pointSize":8
138       },
139       "unselectedBackgroundVisual":
140       {
141         "visualType": "IMAGE",
142         "url": ""
143       },
144       "selectedBackgroundVisual":
145       {
146         "visualType": "IMAGE",
147         "url": ""
148       }
149     },
150     "TextSelectionToolbar":
151     {
152       "enableOvershoot":true,
153       "enableScrollBar":true,
154       "scrollView":
155       {
156         "overshootAnimationSpeed":120.0,
157         "overshootSize":[480.0,42.0]
158       }
159     },
160     "TextSelectionScrollBar":
161     {
162       "indicatorShowDuration":0.25,
163       "indicatorHideDuration":0.25
164     },
165     "TextSelectionScrollIndicator":
166     {
167       "image":
168       {
169         "visualType":"IMAGE",
170         "url":"{DALI_IMAGE_DIR}text_selection_scroll_indicator.9.png"
171       },
172       "color":[0.0,0.72,0.9,0.7]
173     },
174     "ScrollView":
175     {
176       "overshootEffectColor":"B018",
177       "overshootAnimationSpeed":120.0,
178       "overshootSize":[480.0,42.0]
179     },
180     "ItemView":
181     {
182       "overshootEffectColor":"B018",
183       "overshootAnimationSpeed":120.0,
184       "overshootSize":[480.0,42.0]
185     },
186     "ScrollBar":
187     {
188       "indicatorShowDuration":0.25,
189       "indicatorHideDuration":0.25
190     },
191     "ScrollBarIndicator":
192     {
193       "image":
194       {
195         "visualType":"IMAGE",
196         "url":"{DALI_IMAGE_DIR}popup_scroll.9.png"
197       }
198     },
199     "TextEditor":
200     {
201       "pointSize":18,
202       "primaryCursorColor":[0.0,0.72,0.9,1.0],
203       "secondaryCursorColor":[0.0,0.72,0.9,1.0],
204       "cursorWidth":1,
205       "selectionHighlightColor":[0.75,0.96,1.0,1.0],
206       "grabHandleImage" : "{DALI_STYLE_IMAGE_DIR}cursor_handler_drop_center.png",
207       "selectionHandleImageLeft" : {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_left.png" },
208       "selectionHandleImageRight": {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_right.png" }
209     },
210     "Popup":
211     {
212       "popupBackgroundImage":"{DALI_IMAGE_DIR}00_popup_bg.9.png",
213       "tailUpImage":"{DALI_IMAGE_DIR}popup_tail_up.png",
214       "tailDownImage":"{DALI_IMAGE_DIR}popup_tail_down.png",
215       "tailLeftImage":"{DALI_IMAGE_DIR}popup_tail_left.png",
216       "tailRightImage":"{DALI_IMAGE_DIR}popup_tail_right.png",
217       "popupBackgroundBorder":[17,17,13,13]
218     },
219     "ConfirmationPopup":
220     {
221       "popupBackgroundImage":"{DALI_IMAGE_DIR}00_popup_bg.9.png",
222       "tailUpImage":"{DALI_IMAGE_DIR}popup_tail_up.png",
223       "tailDownImage":"{DALI_IMAGE_DIR}popup_tail_down.png",
224       "tailLeftImage":"{DALI_IMAGE_DIR}popup_tail_left.png",
225       "tailRightImage":"{DALI_IMAGE_DIR}popup_tail_right.png",
226       "popupBackgroundBorder":[17,17,13,13]
227     },
228     "Slider":
229     {
230       "showPopup": true,
231       "showValue": true,
232       "valuePrecision": 0,
233       "trackVisual":{
234         "url":"{DALI_IMAGE_DIR}slider-skin.9.png",
235         "size":[27,27]
236       },
237       "progressVisual":{
238         "url":"{DALI_IMAGE_DIR}slider-skin-progress.9.png",
239         "size":[27,27]
240       },
241       "handleVisual":{
242         "url":"{DALI_IMAGE_DIR}slider-skin-handle.png",
243         "size":[72,72]
244       },
245       "popupVisual":"{DALI_IMAGE_DIR}slider-popup.9.png",
246       "popupArrowVisual":"{DALI_IMAGE_DIR}slider-popup-arrow.9.png",
247       "disableColor":[0.5, 0.5, 0.5, 1.0],
248       "popupTextColor":[0.5,0.5,0.5,1.0],
249       "hitRegion":[0, 72],
250       "marks":[],
251       "snapToMarks":false,
252       "markTolerance":0.05
253     },
254     "SliderHandleTextLabel":
255     {
256       "textColor":[0.8,0.8,1,1]
257     },
258     "ProgressBar":
259     {
260       "trackVisual":{
261         "visualType":"IMAGE",
262         "url":"{DALI_IMAGE_DIR}progress-bar-skin-track.9.png"
263       },
264       "progressVisual":{
265         "visualType":"IMAGE",
266         "url":"{DALI_IMAGE_DIR}progress-bar-skin-progress.9.png"
267       },
268       "secondaryProgressVisual":{
269         "visualType":"IMAGE",
270         "url":"{DALI_IMAGE_DIR}progress-bar-skin-secondary-progress.9.png"
271       },
272       "indeterminateVisual":{
273         "visualType":"IMAGE",
274         "pixelArea":[0.0, 0.0, 10.0, 1.0],
275         "wrapModeU":"REPEAT",
276         "url":"{DALI_IMAGE_DIR}progress-bar-skin-indeterminate.png"
277       },
278       "indeterminateVisualAnimation":
279       [
280         {
281           "target":"indeterminateVisual",
282           "property":"pixelArea",
283           "initialValue":[0.0, 0.0, 10.0, 1.0],
284           "targetValue":[-1.0, 0.0, 10.0, 1.0],
285           "animator":
286           {
287             "alphaFunction":"DEFAULT",
288             "timePeriod":
289             {
290               "duration":0.8,
291               "delay":0
292             }
293           }
294         }
295       ],
296       "labelVisual":{
297         "visualType": "TEXT",
298         "textColor": [ 1.0, 1.0, 1.0, 1.0 ],
299         "pointSize" : 12.0, // Point size must always be provided to Text Visual
300         "horizontalAlignment": "CENTER",
301         "verticalAlignment": "CENTER"
302       },
303       "progressValue": 0.0,
304       "secondaryProgressValue":0.0,
305       "indeterminate": false
306     },
307     "Button":
308     {
309       "styles":["Tooltip"],
310       "initialAutoRepeatingDelay":2.0,
311       "nextAutoRepeatingDelay":0.9
312       // Note: Visuals added to Button will be used in all derived buttons unless overridden.
313     },
314     "PushButton":
315     {
316       "styles":["Button"],
317       "autoRepeating":false,
318       "togglable":false,
319       "labelPadding":[ 12.0, 12.0, 12.0, 12.0 ],
320       "label":
321        {
322          "visualType": "TEXT",
323          "horizontalAlignment": "CENTER",
324          "pointSize" : 15.0, // Point size must always be provided to Text Visual
325          "verticalAlignment": "CENTER"
326        },
327       "unselectedBackgroundVisual":
328        {
329          "visualType": "IMAGE",
330          "url": "{DALI_IMAGE_DIR}button-up.9.png"
331        },
332        "selectedBackgroundVisual":
333        {
334          "visualType": "IMAGE",
335          "url": "{DALI_IMAGE_DIR}button-down.9.png"
336        },
337        "disabledSelectedBackgroundVisual":
338        {
339          "visualType": "IMAGE",
340          "url": "{DALI_IMAGE_DIR}button-down-disabled.9.png"
341        },
342        "disabledUnselectedBackgroundVisual":
343        {
344          "visualType": "IMAGE",
345          "url": "{DALI_IMAGE_DIR}button-disabled.9.png"
346        }
347     },
348     "ToggleButton":
349     {
350       "styles":["Button"]
351     },
352     "CheckBoxButton":
353     {
354       "styles":["Button"],
355       "labelPadding":[ 12.0, 12.0, 0.0, 0.0 ],
356       "label":
357        {
358          "visualType": "TEXT",
359          "pointSize" : 15.0, // Point size must always be provided to Text Visual
360          "verticalAlignment": "CENTER"
361        },
362       "unselectedVisual":
363       {
364         "visualType": "IMAGE",
365         "url": "{DALI_IMAGE_DIR}checkbox-unselected.png"
366       },
367       "selectedVisual":
368       {
369         "visualType": "IMAGE",
370         "url": "{DALI_IMAGE_DIR}checkbox-selected.png"
371       },
372       "disabledUnselectedVisual":
373       {
374         "visualType": "IMAGE",
375         "url": "{DALI_IMAGE_DIR}checkbox-unselected-disabled.png"
376       },
377       "disabledSelectedVisual":
378       {
379         "visualType": "IMAGE",
380         "url": "{DALI_IMAGE_DIR}checkbox-selected-disabled.png"
381       }
382     },
383     "RadioButton":
384     {
385       "styles":["Button"],
386       "labelPadding":[ 12.0, 12.0, 0.0, 0.0 ],
387       "label":
388        {
389          "visualType": "TEXT",
390          "pointSize" : 15.0, // Point size must always be provided to Text Visual
391          "verticalAlignment": "CENTER"
392        },
393       "unselectedVisual":
394       {
395         "visualType": "IMAGE",
396         "url": "{DALI_IMAGE_DIR}radio-button-unselected.png"
397       },
398       "selectedVisual":
399       {
400         "visualType": "IMAGE",
401         "url": "{DALI_IMAGE_DIR}radio-button-selected.png"
402       },
403       "disabledUnselectedVisual":
404       {
405         "visualType": "IMAGE",
406         "url": "{DALI_IMAGE_DIR}radio-button-unselected-disabled.png"
407       },
408       "disabledSelectedVisual":
409       {
410         "visualType": "IMAGE",
411         "url": "{DALI_IMAGE_DIR}radio-button-selected-disabled.png"
412       }
413     }
414   }
415 }