[NUI] Apply Slider UX - Thumb and Tracks
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI.Components / Theme / DefaultThemeCommon.cs
1 /*
2  * Copyright(c) 2022 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 #if !PROFILE_WEARABLE
18
19 using System.Diagnostics.CodeAnalysis;
20 using Tizen.NUI.BaseComponents;
21
22 namespace Tizen.NUI.Components
23 {
24     // It is a C# version of res/Tizen.NUI.Components_Tizen.NUI.Theme.Common.xaml
25     internal partial class DefaultThemeCreator : IThemeCreator
26     {
27         /// <summary>
28         /// The base theme description.
29         /// </summary>
30         [SuppressMessage("Microsoft.Reliability", "CA2000: Dispose objects before losing scope", Justification = "The responsibility to dispose the object is transferred to the theme object.")]
31         public Theme Create()
32         {
33             var theme = new Theme()
34             {
35                 Id = Tizen.NUI.DefaultThemeCreator.DefaultId,
36                 Version = Tizen.NUI.DefaultThemeCreator.DefaultVersion
37             };
38
39             // Button base style
40             theme.AddStyleWithoutClone("Tizen.NUI.Components.Button", new ButtonStyle()
41             {
42                 Size = new Size(339, 96),
43                 CornerRadius = 12.0f,
44                 ItemHorizontalAlignment = HorizontalAlignment.Center,
45                 ItemVerticalAlignment = VerticalAlignment.Center,
46                 BackgroundColor = new Selector<Color>()
47                 {
48                     Normal = new Color(1.0f, 0.384f, 0.0f, 1),
49                     Pressed = new Color(0.85f, 0.325f, 0.0f, 1),
50                     Focused = new Color(1.0f, 0.827f, 0.624f, 1),
51                     Selected = new Color(0.624f, 0.239f, 0.0f, 1),
52                     Disabled = new Color(0.792f, 0.792f, 0.792f, 1),
53                 },
54                 Text = new TextLabelStyle()
55                 {
56                     TextColor = Color.White,
57                     PixelSize = 24,
58                 }
59             });
60
61             // CheckBox base style
62             theme.AddStyleWithoutClone("Tizen.NUI.Components.CheckBox", new ButtonStyle()
63             {
64                 ItemSpacing = new Size2D(32, 32),
65                 ItemHorizontalAlignment = HorizontalAlignment.Begin,
66                 ItemVerticalAlignment = VerticalAlignment.Center,
67                 Icon = new ImageViewStyle()
68                 {
69                     Size = new Size(36, 36),
70                     ResourceUrl = new Selector<string>()
71                     {
72                         Normal = FrameworkInformation.ResourcePath + "IoT_check_off.png",
73                         Pressed = FrameworkInformation.ResourcePath + "IoT_check_off_p.png",
74                         Disabled = FrameworkInformation.ResourcePath + "IoT_check_off_d.png",
75                         Focused = FrameworkInformation.ResourcePath + "IoT_check_off_f.png",
76                         Selected = FrameworkInformation.ResourcePath + "IoT_check_on.png",
77                         SelectedPressed = FrameworkInformation.ResourcePath + "IoT_check_on_p.png",
78                         SelectedFocused = FrameworkInformation.ResourcePath + "IoT_check_on_f.png",
79                         DisabledSelected = FrameworkInformation.ResourcePath + "IoT_check_on_d.png",
80                     },
81                 },
82                 Text = new TextLabelStyle()
83                 {
84                     TextColor = new Color("#001447"),
85                     PixelSize = 32,
86                 }
87             });
88
89             // Popup base style
90             theme.AddStyleWithoutClone("Tizen.NUI.Components.Popup", new PopupStyle()
91             {
92                 Size = new Size(500, 280),
93                 BackgroundColor = new Color(0.9f, 0.9f, 0.9f, 1),
94                 ImageShadow = new ImageShadow()
95                 {
96                     Url = FrameworkInformation.ResourcePath + "nui_component_default_popup_shadow.png",
97                     Border = new Rectangle(24, 24, 24, 24),
98                     Extents = new Vector2(48, 48)
99                 },
100                 Title = new TextLabelStyle()
101                 {
102                     PointSize = 16,
103                     Padding = new Extents(20, 20, 20, 20),
104                 },
105                 Buttons = new ButtonStyle()
106                 {
107                     Size = new Size(0, 80),
108                     CornerRadius = 0,
109                     BackgroundColor = new Selector<Color>()
110                     {
111                         Normal = new Color(1, 1, 1, 1),
112                         Pressed = new Color(1, 1, 1, 0.5f),
113                     },
114                     Overlay = new ImageViewStyle()
115                     {
116                         BackgroundColor = new Selector<Color>()
117                         {
118                             Pressed = new Color(0, 0, 0, 0.1f),
119                             Other = new Color(1, 1, 1, 0.1f),
120                         },
121                     },
122                     Text = new TextLabelStyle()
123                     {
124                         TextColor = new Color(0.05f, 0.63f, 0.9f, 1),
125                     }
126                 }
127             });
128
129             // Progress base style
130             theme.AddStyleWithoutClone("Tizen.NUI.Components.Progress", new ProgressStyle()
131             {
132                 Size = new Size(508, 16),
133                 Track = new ImageViewStyle()
134                 {
135                     CornerRadius = 8.0f,
136                     BackgroundColor = new Selector<Color>()
137                     {
138                         Normal = new Color(0.82f, 0.31f, 0.0f, 0.1f),
139                         Disabled = new Color(0.82f, 0.31f, 0.0f, 0.1f),
140                     },
141                 },
142                 Buffer = new ImageViewStyle()
143                 {
144                     CornerRadius = 8.0f,
145                     BackgroundColor = new Color(0.82f, 0.31f, 0.0f, 0.1f),
146                 },
147                 Progress = new ImageViewStyle()
148                 {
149                     CornerRadius = 8.0f,
150                     BackgroundColor = new Color("#D25000"),
151                 },
152                 IndeterminateImageUrl = FrameworkInformation.ResourcePath + "IoT_progress_indeterminate.png",
153             });
154
155             // RadioButton base style
156             theme.AddStyleWithoutClone("Tizen.NUI.Components.RadioButton", new ButtonStyle()
157             {
158                 ItemSpacing = new Size2D(32, 32),
159                 ItemHorizontalAlignment = HorizontalAlignment.Begin,
160                 ItemVerticalAlignment = VerticalAlignment.Center,
161                 Icon = new ImageViewStyle()
162                 {
163                     Size = new Size(36, 36),
164                     ResourceUrl = new Selector<string>()
165                     {
166                         Normal = FrameworkInformation.ResourcePath + "IoT_radiobutton_off.png",
167                         Pressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_p.png",
168                         Disabled = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_d.png",
169                         Focused = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_f.png",
170                         Selected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on.png",
171                         SelectedPressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_p.png",
172                         SelectedFocused = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_f.png",
173                         DisabledSelected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_d.png",
174                     },
175                 },
176                 Text = new TextLabelStyle()
177                 {
178                     TextColor = new Color("#001447"),
179                     PixelSize = 32,
180                 }
181             });
182
183             // Slider base style
184             theme.AddStyleWithoutClone("Tizen.NUI.Components.Slider", new SliderStyle()
185             {
186                 Size = new Size(850, 50),
187                 TrackThickness = 8,
188                 Track = new ImageViewStyle()
189                 {
190                     Size = new Size(800, 8),
191                     CornerRadius = 4.0f,
192                     BackgroundColor = new Selector<Color>()
193                     {
194                         Normal = new Color(1.0f, 0.37f, 0.0f, 0.1f),
195                         Disabled = new Color(1.0f, 0.37f, 0.0f, 0.1f),
196                     },
197                 },
198                 Progress = new ImageViewStyle()
199                 {
200                     Size = new Size(800, 8),
201                     CornerRadius = 4.0f,
202                     BackgroundColor = new Selector<Color>()
203                     {
204                         Normal = new Color("#FF6200"),
205                         Disabled = new Color("#CACACA"),
206                     },
207                 },
208                 Thumb = new ImageViewStyle()
209                 {
210                     Size = new Size(40, 40),
211                     ResourceUrl = new Selector<string>()
212                     {
213                         Normal = FrameworkInformation.ResourcePath + "IoT_slider_handler_normal.png",
214                         Pressed = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
215                         Focused = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
216                         Disabled = FrameworkInformation.ResourcePath + "IoT_slider_handler_disabled.png",
217                     },
218                 },
219                 ValueIndicatorImage = new ImageViewStyle()
220                 {
221                     Size = new Size(16, 24),
222                     BorderlineWidth = 0.5f,
223                     BorderlineColor = new Color("#FF6200"),
224                     BackgroundColor = new Color(0.0f, 0.04f, 0.16f, 1.0f),
225                 },
226             });
227
228             // Switch base style
229             theme.AddStyleWithoutClone("Tizen.NUI.Components.Switch", new SwitchStyle()
230             {
231                 ItemSpacing = new Size2D(32, 32),
232                 ItemHorizontalAlignment = HorizontalAlignment.Begin,
233                 ItemVerticalAlignment = VerticalAlignment.Center,
234                 Track = new ImageViewStyle()
235                 {
236                     Size = new Size(84, 44),
237                     ResourceUrl = new Selector<string>()
238                     {
239                         Normal = FrameworkInformation.ResourcePath + "IoT_switch_track_off.png",
240                         Pressed = FrameworkInformation.ResourcePath + "IoT_switch_track_off_p.png",
241                         Disabled = FrameworkInformation.ResourcePath + "IoT_switch_track_off_d.png",
242                         Focused = FrameworkInformation.ResourcePath + "IoT_switch_track_off_f.png",
243                         Selected = FrameworkInformation.ResourcePath + "IoT_switch_track_on.png",
244                         SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_track_on_p.png",
245                         SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_track_on_f.png",
246                         DisabledSelected = FrameworkInformation.ResourcePath + "IoT_switch_track_on_d.png",
247                     },
248                 },
249                 Thumb = new ImageViewStyle()
250                 {
251                     Size = new Size(44, 44),
252                     ResourceUrl = new Selector<string>()
253                     {
254                         Normal = FrameworkInformation.ResourcePath + "IoT_switch_thumb.png",
255                         Disabled = FrameworkInformation.ResourcePath + "IoT_switch_thumb_d.png",
256                         Selected = FrameworkInformation.ResourcePath + "IoT_switch_thumb_s.png",
257                         SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sp.png",
258                         SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sf.png",
259                     }
260                 },
261                 Text = new TextLabelStyle()
262                 {
263                     TextColor = new Color("#001447"),
264                     PixelSize = 32,
265                 }
266             });
267
268             // Loading base style
269             theme.AddStyleWithoutClone("Tizen.NUI.Components.Loading", new LoadingStyle()
270             {
271                 LoadingSize = new Size(200, 200),
272             });
273
274             // Pagination base style
275             theme.AddStyleWithoutClone("Tizen.NUI.Components.Pagination", new PaginationStyle()
276             {
277                 IndicatorImageUrl = new Selector<string>()
278                 {
279                     Normal = FrameworkInformation.ResourcePath + "nui_component_default_pagination_normal_dot.png",
280                     Selected = FrameworkInformation.ResourcePath + "nui_component_default_pagination_focus_dot.png",
281                 },
282                 IndicatorSize = new Size(10, 10),
283             });
284
285             // Scrollbar base style
286             theme.AddStyleWithoutClone("Tizen.NUI.Components.Scrollbar", new ScrollbarStyle()
287             {
288                 TrackThickness = 12,
289                 ThumbThickness = 12,
290                 TrackColor = new Color(0f, 0f, 0f, 0f),
291                 ThumbColor = new Color("#0A0E4A"),
292                 TrackPadding = 4,
293                 ThumbVerticalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_vbar.#.png",
294                 ThumbHorizontalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_hbar.#.png",
295             });
296
297             // LinearLayouter base style
298             theme.AddStyleWithoutClone("Tizen.NUI.Components.LinearLayouter", new ViewStyle()
299             {
300                 Padding = new Extents(64, 64, 0, 0)
301             });
302
303             // GridLayouter base style
304             theme.AddStyleWithoutClone("Tizen.NUI.Components.GridLayouter", new ViewStyle()
305             {
306                 Padding = new Extents(0, 0, 0, 0),
307             });
308
309             // ItemsLayouter base style
310             theme.AddStyleWithoutClone("Tizen.NUI.Components.ItemsLayouter", new ViewStyle()
311             {
312                 Padding = new Extents(0, 0, 0, 0),
313             });
314
315             // RecyclerViewItem base style
316             theme.AddStyleWithoutClone("Tizen.NUI.Components.RecyclerViewItem", new RecyclerViewItemStyle()
317             {
318                 BackgroundColor = new Selector<Color>()
319                 {
320                     Normal = new Color(1, 1, 1, 1),
321                     Pressed = new Color(0.85f, 0.85f, 0.85f, 1),
322                     Disabled = new Color(0.70f, 0.70f, 0.70f, 1),
323                     Selected = new Color(0.701f, 0.898f, 0.937f, 1),
324                 },
325             });
326
327             // DefaultLinearItem base style
328             theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultLinearItem", new DefaultLinearItemStyle()
329             {
330                 SizeHeight = 108,
331                 Padding = new Extents(64, 64, 18, 17),
332                 Margin = new Extents(0, 0, 0, 0),
333                 BackgroundColor = new Selector<Color>()
334                 {
335                     Normal = new Color(1, 1, 1, 1),
336                     Pressed = new Color(0.85f, 0.85f, 0.85f, 1),
337                     Disabled = new Color(0.70f, 0.70f, 0.70f, 1),
338                     Selected = new Color(0.85f, 0.85f, 0.85f, 1),
339                 },
340                 Label = new TextLabelStyle()
341                 {
342                     PixelSize = 32,
343                     Ellipsis = true,
344                     FontFamily = "BreezeSans", //FXIME Font Weight is Light
345                     TextColor = new Color("#001447"),
346                     ThemeChangeSensitive = false
347                 },
348                 SubLabel = new TextLabelStyle()
349                 {
350                     PixelSize = 28,
351                     Ellipsis = true,
352                     FontFamily = "BreezeSans",
353                     TextColor = new Color("#001447"),
354                     ThemeChangeSensitive = false
355                 },
356                 Icon = new ViewStyle()
357                 {
358                     Margin = new Extents(0, 32, 0, 0)
359                 },
360                 Extra = new ViewStyle()
361                 {
362                     Margin = new Extents(32, 0, 0, 0)
363                 },
364                 Seperator = new ViewStyle()
365                 {
366                     SizeHeight = 1,
367                     Margin = new Extents(64, 64, 0, 0),
368                     BackgroundColor = new Color("#C3CAD2"),
369                 },
370             });
371
372             // DefaultGridItem base style
373             theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultGridItem", new DefaultGridItemStyle()
374             {
375                 Padding = new Extents(0, 0, 0, 0),
376                 Margin = new Extents(5, 5, 5, 5),
377                 Label = new TextLabelStyle()
378                 {
379                     SizeHeight = 60,
380                     PixelSize = 24,
381                     LineWrapMode = LineWrapMode.Character,
382                     ThemeChangeSensitive = false
383                 },
384                 Badge = new ViewStyle()
385                 {
386                     Margin = new Extents(5, 5, 5, 5),
387                 },
388             });
389
390             // DefaultTitleItem base style
391             theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultTitleItem", new DefaultTitleItemStyle()
392             {
393                 SizeHeight = 60,
394                 Padding = new Extents(64, 64, 12, 12),
395                 Margin = new Extents(0, 0, 0, 0),
396                 BackgroundColor = new Selector<Color>()
397                 {
398                     Normal = new Color("#EEEEF1"),
399                 },
400                 Label = new TextLabelStyle()
401                 {
402                     PixelSize = 28,
403                     Ellipsis = true,
404                     TextColor = new Color("#001447"),
405                     ThemeChangeSensitive = false
406                 },
407                 Icon = new ViewStyle()
408                 {
409                     Margin = new Extents(40, 0, 0, 0)
410                 },
411                 Seperator = new ViewStyle()
412                 {
413                     Margin = new Extents(0, 0, 0, 0),
414                     BackgroundColor = new Color(0, 0, 0, 0),
415                 },
416             });
417
418             // ContentPage base style
419             theme.AddStyleWithoutClone("Tizen.NUI.Components.ContentPage", new ViewStyle()
420             {
421                 BackgroundColor = new Color("#FAFAFA"),
422                 CornerRadius = new Vector4(24.0f, 24.0f, 24.0f ,24.0f),
423                 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
424                 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
425             });
426
427             // AppBar base style
428             theme.AddStyleWithoutClone("Tizen.NUI.Components.AppBar", new AppBarStyle()
429             {
430                 Size = new Size(-1, 64),
431                 BackgroundColor = Color.Transparent,
432                 BackButton = new ButtonStyle()
433                 {
434                     Size = new Size(48, 48),
435                     CornerRadius = 0,
436                     BackgroundColor = Color.Transparent,
437                     Icon = new ImageViewStyle()
438                     {
439                         Size = new Size(48, 48),
440                         ResourceUrl = FrameworkInformation.ResourcePath + "nui_component_default_back_button.png",
441                         Color = new Selector<Color>()
442                         {
443                             Normal = new Color("#17234D"),
444                             Focused = new Color("#17234D"),
445                             Pressed = new Color("#FF6200"),
446                             Disabled = new Color("#CACACA"),
447                         },
448                     },
449                     ThemeChangeSensitive = false
450                 },
451                 TitleTextLabel = new TextLabelStyle()
452                 {
453                     PixelSize = 24,
454                     VerticalAlignment = VerticalAlignment.Center,
455                     TextColor = new Selector<Color>()
456                     {
457                         Normal = new Color("#17234D"),
458                     },
459                     ThemeChangeSensitive = false
460                 },
461                 ActionView = new ViewStyle()
462                 {
463                     Size = new Size(48, 64),
464                     CornerRadius = 0,
465                     BackgroundColor = Color.Transparent,
466                 },
467                 ActionButton = new ButtonStyle()
468                 {
469                     Size = new Size(-2, 64),
470                     CornerRadius = 0,
471                     BackgroundColor = Color.Transparent,
472                     Text = new TextLabelStyle()
473                     {
474                         PixelSize = 24,
475                         TextColor = new Selector<Color>()
476                         {
477                             Normal = new Color("#FF6200"),
478                             Focused = new Color("#FF6200"),
479                             Pressed = new Color("#D95300"),
480                             Disabled = new Color("#CACACA"),
481                         },
482                     },
483                     Icon = new ImageViewStyle()
484                     {
485                         Size = new Size(48, 48),
486                         Color = new Selector<Color>()
487                         {
488                             Normal = new Color("#17234D"),
489                             Focused = new Color("#17234D"),
490                             Pressed = new Color("#FF6200"),
491                             Disabled = new Color("#CACACA"),
492                         },
493                     },
494                     ThemeChangeSensitive = false,
495                 },
496                 Padding = new Extents(16, 16, 0, 0),
497                 NavigationPadding = new Extents(0, 8, 0, 0),
498                 ActionPadding = new Extents(16, 0, 0, 0),
499                 ActionCellPadding = new Size2D(16, 0),
500             });
501
502             // Picker base style
503             theme.AddStyleWithoutClone("Tizen.NUI.Components.Picker", new PickerStyle()
504             {
505                 Size = new Size(160, 339),
506                 ItemTextLabel = new TextLabelStyle()
507                 {
508                     //FIXME: Should be check PointSize. given size from UX is too large.
509                     PixelSize = 32,
510                     VerticalAlignment = VerticalAlignment.Center,
511                     HorizontalAlignment = HorizontalAlignment.Center,
512                     Size = new Size(0,72),
513                     TextColor = new Selector<Color>()
514                     {
515                         Normal = new Color("#000C2B"),
516                     },
517                     BackgroundColor = Color.White,
518                 },
519                 Divider = new ViewStyle()
520                 {
521                     SizeHeight = 2.0f,
522                     WidthResizePolicy = ResizePolicyType.FillToParent,
523                     Position = new Position(0, 132),
524                     BackgroundColor = new Color("#0A0E4A"),
525                 },
526                 StartScrollOffset = new Size(0, 12),
527             });
528
529             // TabBar base style
530             theme.AddStyleWithoutClone("Tizen.NUI.Components.TabBar", new ViewStyle()
531             {
532                 Size = new Size(-1, -2),
533                 Margin = new Extents(16, 16, 0, 0),
534                 Padding = new Extents(14, 14, 0, 0),
535                 CornerRadius = new Vector4(12.0f, 12.0f, 12.0f, 12.0f),
536                 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
537                 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
538                 BackgroundColor = new Color("#FAFAFA"),
539             });
540
541             // TabButton base style
542             theme.AddStyleWithoutClone("Tizen.NUI.Components.TabButton", new TabButtonStyle()
543             {
544                 Size = new Size(-1, 116),
545                 SizeWithTextOnly = new Size(-1, 72),
546                 SizeWithIconOnly = new Size(-1, 64),
547                 MinimumSize = new Size(100, -1),
548                 Padding = new Extents(24, 24, 18, 16),
549                 PaddingWithTextOnly = new Extents(24, 24, 20, 20),
550                 PaddingWithIconOnly = new Extents(24, 24, 16, 16),
551                 ItemSpacing = new Size2D(0, 10),
552                 CornerRadius = 0,
553                 IconSizeWithIconOnly = new Size(32, 32),
554                 BackgroundColor = new Selector<Color>()
555                 {
556                     Normal = new Color("#FAFAFA"),
557                     Selected = new Color("#FFE0CC"),
558                     Pressed = new Color("#FFCAA8"),
559                     Focused = new Color("#FAFAFA"),
560                     Disabled = new Color("#FAFAFA"),
561                 },
562                 Text = new TextLabelStyle()
563                 {
564                     PixelSize = 28,
565                     Size = new Size(-2, -2),
566                     TextColor = new Selector<Color>()
567                     {
568                         Normal = new Color("#090E21"),
569                         Selected = new Color("#FF6200"),
570                         Pressed = new Color("#FF6200"),
571                         Focused = new Color("#FF6200"),
572                         Disabled = new Color("#CACACA"),
573                     },
574                     ThemeChangeSensitive = false,
575                 },
576                 Icon = new ImageViewStyle()
577                 {
578                     Size = new Size(48, 48),
579                     Color = new Selector<Color>()
580                     {
581                         Normal = new Color("#090E21"),
582                         Selected = new Color("#FF6200"),
583                         Pressed = new Color("#FF6200"),
584                         Focused = new Color("#FF6200"),
585                         Disabled = new Color("#CACACA"),
586                     },
587                 },
588             });
589
590             // NotificationToast base style
591             theme.AddStyleWithoutClone("NotificationToast", new TextLabelStyle()
592             {
593                 BackgroundColor = new Color("#FAFAFA"),
594                 CornerRadius = 12.0f,
595                 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
596                 TextColor = new Color("#090E21"),
597                 PixelSize = 32,
598                 WidthResizePolicy = ResizePolicyType.UseNaturalSize,
599                 HeightResizePolicy = ResizePolicyType.UseNaturalSize,
600                 PositionUsesPivotPoint = true,
601                 HorizontalAlignment = HorizontalAlignment.Center,
602                 VerticalAlignment = VerticalAlignment.Center,
603                 Padding = new Extents(16, 16, 16, 16),
604                 PositionY = 120,
605             });
606
607             // AlertDialog base style
608             theme.AddStyleWithoutClone("Tizen.NUI.Components.AlertDialog", new AlertDialogStyle()
609             {
610                 Size = new Size(-2, -2),
611                 Padding = new Extents(32, 32, 32, 32),
612                 ItemSpacing = new Size2D(0, 32),
613                 BackgroundColor = new Color("#FAFAFA"),
614                 CornerRadius = 12.0f,
615                 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
616                 TitleTextLabel = new TextLabelStyle()
617                 {
618                     Size = new Size(626, -2),
619                     PixelSize = 24,
620                     HorizontalAlignment = HorizontalAlignment.Center,
621                     VerticalAlignment = VerticalAlignment.Center,
622                     TextColor = new Color("#090E21"),
623                     ThemeChangeSensitive = false,
624                 },
625                 MessageTextLabel = new TextLabelStyle()
626                 {
627                     Size = new Size(626, -2),
628                     PixelSize = 24,
629                     MultiLine = true,
630                     HorizontalAlignment = HorizontalAlignment.Center,
631                     VerticalAlignment = VerticalAlignment.Center,
632                     TextColor = new Color("#090E21"),
633                     ThemeChangeSensitive = false,
634                 },
635                 ActionContent = new ViewStyle()
636                 {
637                     Size = new Size(626, -2),
638                 },
639             });
640
641             // TimePicker base style
642             theme.AddStyleWithoutClone("Tizen.NUI.Components.TimePicker", new TimePickerStyle()
643             {
644                 CellPadding = new Size(50, 339),
645
646                 Pickers = new PickerStyle()
647                 {
648                     Size = new Size(160, 339),
649                     ItemTextLabel = new TextLabelStyle()
650                     {
651                         //FIXME: Should be check PointSize. given size from UX is too large.
652                         PixelSize = 32,
653                         VerticalAlignment = VerticalAlignment.Center,
654                         HorizontalAlignment = HorizontalAlignment.Center,
655                         Size = new Size(0,72),
656                         TextColor = new Color("#000C2B"),
657                         BackgroundColor = Color.White,
658                         ThemeChangeSensitive = false
659                     },
660                     Divider = new ViewStyle()
661                     {
662                         SizeHeight = 2.0f,
663                         WidthResizePolicy = ResizePolicyType.FillToParent,
664                         Position = new Position(0, 132),
665                         BackgroundColor = new Color("#0A0E4A"),
666                     },
667                     StartScrollOffset = new Size2D(0, 12),
668                 }
669             });
670
671             // DatePicker base style
672             theme.AddStyleWithoutClone("Tizen.NUI.Components.DatePicker", new DatePickerStyle()
673             {
674                 CellPadding = new Size(50, 339),
675
676                 Pickers = new PickerStyle()
677                 {
678                     Size = new Size(160, 339),
679                     ItemTextLabel = new TextLabelStyle()
680                     {
681                         //FIXME: Should be check PointSize. given size from UX is too large.
682                         PixelSize = 32,
683                         VerticalAlignment = VerticalAlignment.Center,
684                         HorizontalAlignment = HorizontalAlignment.Center,
685                         Size = new Size(0,72),
686                         TextColor = new Color("#000C2B"),
687                         BackgroundColor = Color.White,
688                         ThemeChangeSensitive = false
689                     },
690                     Divider = new ViewStyle()
691                     {
692                         SizeHeight = 2.0f,
693                         WidthResizePolicy = ResizePolicyType.FillToParent,
694                         Position = new Position(0, 132),
695                         BackgroundColor = new Color("#0A0E4A"),
696                     },
697                     StartScrollOffset = new Size2D(0, 12),
698                 }
699             });
700
701             // Menu base style
702             theme.AddStyleWithoutClone("Tizen.NUI.Components.Menu", new MenuStyle()
703             {
704                 Content = new ViewStyle()
705                 {
706                     BackgroundColor = new Color("#FFFEFE"),
707                     CornerRadius = 24.0f,
708                     BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
709                     // FIXME: ScrollableBase with LinearLayout's Padding.Start is applied both Start and End.
710                     //        ScrollableBase with LinearLayout's Padding.Top is applied both Top and Bottom.
711                     Padding = new Extents(32, 0, 16, 0),
712                 },
713             });
714
715             // MenuItem base style
716             theme.AddStyleWithoutClone("Tizen.NUI.Components.MenuItem", new ButtonStyle()
717             {
718                 Size = new Size(324, -2),
719                 MinimumSize = new Size2D(0, 64),
720                 BackgroundColor = new Color("#FFFEFE"),
721                 CornerRadius = 0,
722                 // FIXME: ClippingModeType.ClipChildren cannot support anti-aliasing
723                 //        So not to show left bottom corner of MenuItem, MenuItem.Padding.Start is 0 and Menu.Content.Padding.Start is 32.
724                 //        (instead of MenuItem.Padding.Start 16 and Menu.Content.Padding.Start is 16)
725                 Padding = new Extents(0, 0, 24, 24),
726                 Text = new TextLabelStyle()
727                 {
728                     PixelSize = 24,
729                     MultiLine = true,
730                     HorizontalAlignment = HorizontalAlignment.Begin,
731                     VerticalAlignment = VerticalAlignment.Center,
732                     TextColor = new Selector<Color>()
733                     {
734                         Normal = new Color("#090E21"),
735                         Focused = new Color("#FF6200"),
736                         Pressed = new Color("#FF6200"),
737                         Disabled = new Color("#CACACA"),
738                         Selected = new Color("#FF6200"),
739                     },
740                     ThemeChangeSensitive = false
741                 },
742                 Icon = new ImageViewStyle()
743                 {
744                     Size = new Size(32, 32),
745                     Color = new Selector<Color>()
746                     {
747                         Normal = new Color("#090E21"),
748                         Focused = new Color("#FF6200"),
749                         Pressed = new Color("#FF6200"),
750                         Disabled = new Color("#CACACA"),
751                         Selected = new Color("#FF6200"),
752                     },
753                 },
754             });
755
756             // AlertDialog base style
757             theme.AddStyleWithoutClone("Tizen.NUI.Components.DialogPage.Scrim", new ViewStyle()
758             {
759                 BackgroundColor = new Color("#090E21"),
760                 Opacity = 0.5f,
761             });
762
763             return theme;
764         }
765     }
766 }
767
768 #endif // !PROFILE_WEARABLE