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