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