ba775a2ddbb0943750937559e8ab7cbc72eb1122
[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       "enableScrollBar":true,
155       "scrollView":
156       {
157         "overshootAnimationSpeed":360.0,
158         "overshootSize":[1920.0,130.0]
159       }
160     },
161     "TextSelectionScrollBar":
162     {
163       "indicatorShowDuration":0.25,
164       "indicatorHideDuration":0.25
165     },
166     "TextSelectionScrollIndicator":
167     {
168       "image":
169       {
170         "visualType":"IMAGE",
171         "url":"{DALI_IMAGE_DIR}text_selection_scroll_indicator.9.png"
172       },
173       "color":[0.0,0.72,0.9,0.7]
174     },
175     "ScrollView":
176     {
177       "overshootEffectColor":"B018",
178       "overshootAnimationSpeed":960.0,
179       "overshootSize":[1920.0,130.0]
180     },
181     "ItemView":
182     {
183       "overshootEffectColor":"B018",
184       "overshootAnimationSpeed":960.0,
185       "overshootSize":[1920.0,130.0]
186     },
187     "ScrollBar":
188     {
189       "indicatorShowDuration":0.25,
190       "indicatorHideDuration":0.25,
191       "color":[0.0,0.72,0.9,0.7]
192     },
193     "TextEditor":
194     {
195       "pointSize":120,
196       "primaryCursorColor":[0.0,0.72,0.9,1.0],
197       "secondaryCursorColor":[0.0,0.72,0.9,1.0],
198       "cursorWidth":6,
199       "selectionHighlightColor":[0.75,0.96,1.0,1.0],
200       "grabHandleImage" : "{DALI_STYLE_IMAGE_DIR}cursor_handler_drop_center.png",
201       "selectionHandleImageLeft" : {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_left.png" },
202       "selectionHandleImageRight": {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_right.png" }
203     },
204     "ProgressBar":
205     {
206       "trackVisual":{
207         "visualType":"IMAGE",
208         "url":"{DALI_IMAGE_DIR}progress-bar-skin-track.9.png"
209       },
210       "progressVisual":{
211         "visualType":"IMAGE",
212         "url":"{DALI_IMAGE_DIR}progress-bar-skin-progress.9.png"
213       },
214       "secondaryProgressVisual":{
215         "visualType":"IMAGE",
216         "url":"{DALI_IMAGE_DIR}progress-bar-skin-secondary-progress.9.png"
217       },
218       "indeterminateVisual":{
219         "visualType":"IMAGE",
220         "pixelArea":[0.0, 0.0, 10.0, 1.0],
221         "wrapModeU":"REPEAT",
222         "url":"{DALI_IMAGE_DIR}progress-bar-skin-indeterminate.png"
223       },
224       "indeterminateVisualAnimation":
225       [
226         {
227           "target":"indeterminateVisual",
228           "property":"pixelArea",
229           "initialValue":[0.0, 0.0, 10.0, 1.0],
230           "targetValue":[-1.0, 0.0, 10.0, 1.0],
231           "animator":
232           {
233             "alphaFunction":"DEFAULT",
234             "timePeriod":
235             {
236               "duration":0.8,
237               "delay":0
238             }
239           }
240         }
241       ],
242       "labelVisual":{
243         "visualType": "TEXT",
244         "textColor": [ 1.0, 1.0, 1.0, 1.0 ],
245         "pointSize" : 12.0, // Point size must always be provided to Text Visual
246         "horizontalAlignment": "CENTER",
247         "verticalAlignment": "CENTER"
248       },
249       "progressValue": 0.0,
250       "secondaryProgressValue":0.0,
251       "indeterminate": false
252     },
253     "Button":
254     {
255       "styles":["Tooltip"],
256       "initialAutoRepeatingDelay":2.0,
257       "nextAutoRepeatingDelay":0.9
258       // Note: Visuals added to Button will be used in all derived buttons unless overridden.
259     },
260     "PushButton":
261     {
262       "styles":["Button"],
263       "autoRepeating":false,
264       "togglable":false,
265       "labelPadding":[ 12.0, 12.0, 12.0, 12.0 ],
266       "label":
267        {
268          "visualType": "TEXT",
269          "horizontalAlignment": "CENTER",
270          "pointSize" : 15.0, // Point size must always be provided to Text Visual
271          "verticalAlignment": "CENTER"
272        },
273       "unselectedBackgroundVisual":
274        {
275          "visualType": "IMAGE",
276          "url": "{DALI_IMAGE_DIR}button-up.9.png"
277        },
278        "selectedBackgroundVisual":
279        {
280          "visualType": "IMAGE",
281          "url": "{DALI_IMAGE_DIR}button-down.9.png"
282        },
283        "disabledSelectedBackgroundVisual":
284        {
285          "visualType": "IMAGE",
286          "url": "{DALI_IMAGE_DIR}button-down-disabled.9.png"
287        },
288        "disabledUnselectedBackgroundVisual":
289        {
290          "visualType": "IMAGE",
291          "url": "{DALI_IMAGE_DIR}button-disabled.9.png"
292        }
293     },
294     "ToggleButton":
295     {
296       "styles":["Button"]
297     },
298     "CheckBoxButton":
299     {
300       "styles":["Button"],
301       "labelPadding":[ 12.0, 12.0, 0.0, 0.0 ],
302       "label":
303        {
304          "visualType": "TEXT",
305          "pointSize" : 15.0, // Point size must always be provided to Text Visual
306          "verticalAlignment": "CENTER"
307        },
308       "unselectedVisual":
309       {
310         "visualType": "IMAGE",
311         "url": "{DALI_IMAGE_DIR}checkbox-unselected.png"
312       },
313       "selectedVisual":
314       {
315         "visualType": "IMAGE",
316         "url": "{DALI_IMAGE_DIR}checkbox-selected.png"
317       },
318       "disabledUnselectedVisual":
319       {
320         "visualType": "IMAGE",
321         "url": "{DALI_IMAGE_DIR}checkbox-unselected-disabled.png"
322       },
323       "disabledSelectedVisual":
324       {
325         "visualType": "IMAGE",
326         "url": "{DALI_IMAGE_DIR}checkbox-selected-disabled.png"
327       }
328     },
329     "RadioButton":
330     {
331       "styles":["Button"],
332       "labelPadding":[ 12.0, 12.0, 0.0, 0.0 ],
333       "label":
334        {
335          "visualType": "TEXT",
336          "pointSize" : 15.0, // Point size must always be provided to Text Visual
337          "verticalAlignment": "CENTER"
338        },
339       "unselectedVisual":
340       {
341         "visualType": "IMAGE",
342         "url": "{DALI_IMAGE_DIR}radio-button-unselected.png"
343       },
344       "selectedVisual":
345       {
346         "visualType": "IMAGE",
347         "url": "{DALI_IMAGE_DIR}radio-button-selected.png"
348       },
349       "disabledUnselectedVisual":
350       {
351         "visualType": "IMAGE",
352         "url": "{DALI_IMAGE_DIR}radio-button-unselected-disabled.png"
353       },
354       "disabledSelectedVisual":
355       {
356         "visualType": "IMAGE",
357         "url": "{DALI_IMAGE_DIR}radio-button-selected-disabled.png"
358       }
359     }
360   }
361 }