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