2 * Copyright(c) 2022 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 using System.Diagnostics.CodeAnalysis;
20 using Tizen.NUI.BaseComponents;
22 namespace Tizen.NUI.Components
24 // It is a C# version of res/Tizen.NUI.Components_Tizen.NUI.Theme.Common.xaml
25 internal partial class DefaultThemeCreator : IThemeCreator
28 /// The base theme description.
30 [SuppressMessage("Microsoft.Reliability", "CA2000: Dispose objects before losing scope", Justification = "The responsibility to dispose the object is transferred to the theme object.")]
33 var theme = new Theme()
35 Id = Tizen.NUI.DefaultThemeCreator.DefaultId,
36 Version = Tizen.NUI.DefaultThemeCreator.DefaultVersion
40 theme.AddStyleWithoutClone("Tizen.NUI.Components.Button", new ButtonStyle()
42 Padding = new Extents(32, 32, 8, 8),
43 ItemSpacing = new Size2D(8, 8),
45 ItemHorizontalAlignment = HorizontalAlignment.Center,
46 ItemVerticalAlignment = VerticalAlignment.Center,
47 BackgroundColor = new Selector<Color>()
49 Normal = new Color(1.0f, 0.384f, 0.0f, 1),
50 Pressed = new Color(0.85f, 0.325f, 0.0f, 1),
51 Focused = new Color(1.0f, 0.827f, 0.624f, 1),
52 Selected = new Color(0.624f, 0.239f, 0.0f, 1),
53 Disabled = new Color(0.792f, 0.792f, 0.792f, 1),
55 Text = new TextLabelStyle()
57 TextColor = new Color("#FDFDFD"),
62 // Outlined Button style
63 theme.AddStyleWithoutClone("Tizen.NUI.Components.Button.Outlined", new ButtonStyle()
65 Padding = new Extents(32, 32, 8, 8),
66 ItemSpacing = new Size2D(8, 8),
68 BorderlineWidth = 2.0f,
69 BorderlineColorSelector = new Selector<Color>()
71 Normal = new Color("#FF6200"),
72 Pressed = new Color("#FFA166"),
73 Focused = new Color("#FF7119"),
74 Selected = new Color("#FF8133"),
75 Disabled = new Color("#CACACA"),
77 ItemHorizontalAlignment = HorizontalAlignment.Center,
78 ItemVerticalAlignment = VerticalAlignment.Center,
79 BackgroundColor = Color.Transparent,
80 Text = new TextLabelStyle()
82 TextColor = new Selector<Color>()
84 Normal = new Color("#FF6200"),
85 Pressed = new Color("#FFA166"),
86 Focused = new Color("#FF7119"),
87 Selected = new Color("#FF8133"),
88 Disabled = new Color("#CACACA"),
94 // TextOnly Button style
95 theme.AddStyleWithoutClone("Tizen.NUI.Components.Button.TextOnly", new ButtonStyle()
97 Padding = new Extents(32, 32, 8, 8),
98 ItemHorizontalAlignment = HorizontalAlignment.Center,
99 ItemVerticalAlignment = VerticalAlignment.Center,
100 BackgroundColor = Color.Transparent,
101 Text = new TextLabelStyle()
103 TextColor = new Selector<Color>()
105 Normal = new Color("#FF6200"),
106 Pressed = new Color("#FFA166"),
107 Focused = new Color("#FF7119"),
108 Selected = new Color("#FF8133"),
109 Disabled = new Color("#CACACA"),
115 // CheckBox base style
116 theme.AddStyleWithoutClone("Tizen.NUI.Components.CheckBox", new ButtonStyle()
118 Padding = new Extents(8, 8, 8, 8),
119 ItemSpacing = new Size2D(16, 16),
120 ItemHorizontalAlignment = HorizontalAlignment.Center,
121 ItemVerticalAlignment = VerticalAlignment.Center,
122 Icon = new ImageViewStyle()
124 Size = new Size(32, 32),
125 ResourceUrl = new Selector<string>()
127 Normal = FrameworkInformation.ResourcePath + "IoT_check_off.png",
128 Pressed = FrameworkInformation.ResourcePath + "IoT_check_off_p.png",
129 Disabled = FrameworkInformation.ResourcePath + "IoT_check_off_d.png",
130 Focused = FrameworkInformation.ResourcePath + "IoT_check_off_f.png",
131 Selected = FrameworkInformation.ResourcePath + "IoT_check_on.png",
132 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_check_on_p.png",
133 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_check_on_f.png",
134 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_check_on_d.png",
137 Text = new TextLabelStyle()
139 TextColor = new Selector<Color>()
141 Normal = new Color("#090E21"),
142 Selected = new Color("#FF6200"),
143 Disabled = new Color("#CACACA"),
150 theme.AddStyleWithoutClone("Tizen.NUI.Components.Popup", new PopupStyle()
152 Size = new Size(500, 280),
153 BackgroundColor = new Color(0.9f, 0.9f, 0.9f, 1),
154 ImageShadow = new ImageShadow()
156 Url = FrameworkInformation.ResourcePath + "nui_component_default_popup_shadow.png",
157 Border = new Rectangle(24, 24, 24, 24),
158 Extents = new Vector2(48, 48)
160 Title = new TextLabelStyle()
163 Padding = new Extents(20, 20, 20, 20),
165 Buttons = new ButtonStyle()
169 BackgroundColor = new Selector<Color>()
171 Normal = new Color(1, 1, 1, 1),
172 Pressed = new Color(1, 1, 1, 0.5f),
174 Overlay = new ImageViewStyle()
176 BackgroundColor = new Selector<Color>()
178 Pressed = new Color(0, 0, 0, 0.1f),
179 Other = new Color(1, 1, 1, 0.1f),
182 Text = new TextLabelStyle()
184 TextColor = new Color(0.05f, 0.63f, 0.9f, 1),
189 // Progress base style
190 theme.AddStyleWithoutClone("Tizen.NUI.Components.Progress", new ProgressStyle()
192 Size = new Size(508, 16),
193 Track = new ImageViewStyle()
196 BackgroundColor = new Selector<Color>()
198 Normal = new Color(0.82f, 0.31f, 0.0f, 0.1f),
199 Disabled = new Color(0.82f, 0.31f, 0.0f, 0.1f),
202 Buffer = new ImageViewStyle()
205 BackgroundColor = new Color(0.82f, 0.31f, 0.0f, 0.1f),
207 Progress = new ImageViewStyle()
210 BackgroundColor = new Color("#D25000"),
212 IndeterminateImageUrl = FrameworkInformation.ResourcePath + "IoT_progress_indeterminate.png",
215 // RadioButton base style
216 theme.AddStyleWithoutClone("Tizen.NUI.Components.RadioButton", new ButtonStyle()
218 Padding = new Extents(8, 8, 8, 8),
219 ItemSpacing = new Size2D(16, 16),
220 ItemHorizontalAlignment = HorizontalAlignment.Center,
221 ItemVerticalAlignment = VerticalAlignment.Center,
222 Icon = new ImageViewStyle()
224 Size = new Size(32, 32),
225 ResourceUrl = new Selector<string>()
227 Normal = FrameworkInformation.ResourcePath + "IoT_radiobutton_off.png",
228 Pressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_p.png",
229 Disabled = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_d.png",
230 Focused = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_f.png",
231 Selected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on.png",
232 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_p.png",
233 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_f.png",
234 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_d.png",
237 Text = new TextLabelStyle()
239 TextColor = new Selector<Color>()
241 Normal = new Color("#090E21"),
242 Selected = new Color("#FF6200"),
243 Disabled = new Color("#CACACA"),
250 theme.AddStyleWithoutClone("Tizen.NUI.Components.Slider", new SliderStyle()
252 Size = new Size(850, 50),
254 Track = new ImageViewStyle()
256 Size = new Size(800, 8),
258 BackgroundColor = new Selector<Color>()
260 Normal = new Color(1.0f, 0.37f, 0.0f, 0.1f),
261 Disabled = new Color(1.0f, 0.37f, 0.0f, 0.1f),
264 Progress = new ImageViewStyle()
266 Size = new Size(800, 8),
268 BackgroundColor = new Selector<Color>()
270 Normal = new Color("#FF6200"),
271 Disabled = new Color("#CACACA"),
274 Thumb = new ImageViewStyle()
276 WidthResizePolicy = ResizePolicyType.UseNaturalSize,
277 HeightResizePolicy = ResizePolicyType.UseNaturalSize,
278 ResourceUrl = new Selector<string>()
280 Normal = FrameworkInformation.ResourcePath + "IoT_slider_handler_normal.png",
281 Pressed = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
282 Focused = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
283 Disabled = FrameworkInformation.ResourcePath + "IoT_slider_handler_disabled.png",
286 ValueIndicatorImage = new ImageViewStyle()
289 WidthResizePolicy = ResizePolicyType.FitToChildren,
290 Margin = new Extents(8, 8, 0, 0),
291 BorderlineWidth = 1.0f,
292 BorderlineColor = new Color("#FF6200"),
293 BackgroundColor = new Color(1.0f, 1.0f, 1.0f, 0.0f),
294 CornerRadius = 12.0f,
296 ValueIndicatorText = new TextLabelStyle()
299 WidthResizePolicy = ResizePolicyType.UseNaturalSize,
301 TextColor = new Color("#FF6200"),
306 theme.AddStyleWithoutClone("Tizen.NUI.Components.Switch", new SwitchStyle()
308 ItemSpacing = new Size2D(16, 16),
309 ItemHorizontalAlignment = HorizontalAlignment.Begin,
310 ItemVerticalAlignment = VerticalAlignment.Center,
311 Track = new ImageViewStyle()
313 Size = new Size(84, 44),
314 ResourceUrl = new Selector<string>()
316 Normal = FrameworkInformation.ResourcePath + "IoT_switch_track_off.png",
317 Pressed = FrameworkInformation.ResourcePath + "IoT_switch_track_off_p.png",
318 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_track_off_d.png",
319 Focused = FrameworkInformation.ResourcePath + "IoT_switch_track_off_f.png",
320 Selected = FrameworkInformation.ResourcePath + "IoT_switch_track_on.png",
321 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_track_on_p.png",
322 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_track_on_f.png",
323 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_switch_track_on_d.png",
326 Thumb = new ImageViewStyle()
328 Size = new Size(44, 44),
329 ResourceUrl = new Selector<string>()
331 Normal = FrameworkInformation.ResourcePath + "IoT_switch_thumb.png",
332 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_thumb_d.png",
333 Selected = FrameworkInformation.ResourcePath + "IoT_switch_thumb_s.png",
334 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sp.png",
335 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sf.png",
338 Text = new TextLabelStyle()
340 TextColor = new Selector<Color>()
342 Normal = new Color("#090E21"),
343 Disabled = new Color("#CACACA"),
349 // Loading base style
350 theme.AddStyleWithoutClone("Tizen.NUI.Components.Loading", new LoadingStyle()
352 LoadingSize = new Size(200, 200),
355 // Pagination base style
356 theme.AddStyleWithoutClone("Tizen.NUI.Components.Pagination", new PaginationStyle()
358 Size = new Size(450, 24),
359 IndicatorImageUrl = new Selector<string>()
361 Normal = FrameworkInformation.ResourcePath + "nui_component_default_pagination_normal_dot.png",
362 Selected = FrameworkInformation.ResourcePath + "nui_component_default_pagination_focus_dot.png",
364 IndicatorSize = new Size(80, 24),
365 IndicatorSpacing = 16,
368 // Scrollbar base style
369 theme.AddStyleWithoutClone("Tizen.NUI.Components.Scrollbar", new ScrollbarStyle()
373 TrackColor = new Color(0f, 0f, 0f, 0f),
374 ThumbColor = new Color("#FFFEFE"),
376 //7.0 UX no require image resource.
377 Thumb = new ImageViewStyle()
380 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
382 //ThumbVerticalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_vbar.#.png",
383 //ThumbHorizontalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_hbar.#.png",
386 // LinearLayouter base style
387 theme.AddStyleWithoutClone("Tizen.NUI.Components.LinearLayouter", new ViewStyle()
389 Padding = new Extents(0, 0, 0, 0)
392 // GridLayouter base style
393 theme.AddStyleWithoutClone("Tizen.NUI.Components.GridLayouter", new ViewStyle()
395 Padding = new Extents(0, 0, 0, 0),
398 // ItemsLayouter base style
399 theme.AddStyleWithoutClone("Tizen.NUI.Components.ItemsLayouter", new ViewStyle()
401 Padding = new Extents(0, 0, 0, 0),
404 // RecyclerViewItem base style
405 theme.AddStyleWithoutClone("Tizen.NUI.Components.RecyclerViewItem", new RecyclerViewItemStyle()
407 BackgroundColor = new Selector<Color>()
409 Normal = new Color(1, 1, 1, 1),
410 Pressed = new Color(0.85f, 0.85f, 0.85f, 1),
411 Disabled = new Color(0.70f, 0.70f, 0.70f, 1),
412 Selected = new Color(0.701f, 0.898f, 0.937f, 1),
416 // DefaultLinearItem base style
417 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultLinearItem", new DefaultLinearItemStyle()
420 Padding = new Extents(16, 16, 0, 0),
421 Margin = new Extents(0, 0, 0, 0),
422 Label = new TextLabelStyle()
426 FontFamily = "SamsungOneUI600",
427 TextColor = new Selector<Color>()
429 Normal = new Color("#090E21"),
430 Pressed = new Color("#FF6200"),
431 Disabled = new Color("#CACACA"),
432 Selected = new Color("#FF6200"),
434 ThemeChangeSensitive = false
436 SubLabel = new TextLabelStyle()
440 FontFamily = "SamsungOneUI400",
441 TextColor = new Selector<Color>()
443 Normal = new Color("#090E21"),
444 Pressed = new Color("#FF6200"),
445 Disabled = new Color("#CACACA"),
446 Selected = new Color("#FF6200"),
448 ThemeChangeSensitive = false
450 Icon = new ViewStyle()
452 Margin = new Extents(0, 16, 0, 0)
454 Extra = new ViewStyle()
456 Margin = new Extents(16, 0, 0, 0)
460 // DefaultGridItem base style
461 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultGridItem", new DefaultGridItemStyle()
463 ClippingMode = ClippingModeType.ClipChildren,
464 Padding = new Extents(0, 0, 0, 0),
465 Margin = new Extents(5, 5, 5, 5),
466 CornerRadius = 12.0f,
467 BackgroundColor = new Selector<Color>()
469 Normal = new Color("#FAFAFA"),
470 Pressed = new Color(1f, 0.38f, 0, 0.2f),
471 Disabled = new Color("#FAFAFA"),
472 Selected = new Color(1f, 0.38f, 0, 0.2f),
474 Image = new ImageViewStyle()
476 //FIXME: Clip mode is not working on CornerRadius.
477 CornerRadius = 12.0f,
478 ClippingMode = ClippingModeType.ClipChildren,
480 Label = new TextLabelStyle()
484 FontFamily = "SamsungOneUI400",
485 LineWrapMode = LineWrapMode.Character,
486 TextColor = new Selector<Color>()
488 Normal = new Color("#090E21"),
489 Pressed = new Color("#FF6200"),
490 Disabled = new Color("#CACACA"),
491 Selected = new Color("#FF6200"),
493 ThemeChangeSensitive = false
495 Badge = new ViewStyle()
497 Margin = new Extents(0, 0, 0, 0),
499 BoxShadow = new Shadow(12.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 4.0f)),
502 // DefaultTitleItem base style
503 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultTitleItem", new DefaultTitleItemStyle()
506 Padding = new Extents(20, 20, 0, 0),
507 Margin = new Extents(0, 0, 0, 0),
508 BackgroundColor = Color.Transparent,
509 Label = new TextLabelStyle()
513 FontFamily = "SamsungOneUI400",
514 TextColor = new Color("#090E217F"),
515 ThemeChangeSensitive = false
517 Icon = new ViewStyle()
519 Margin = new Extents(24, 0, 0, 0)
521 Seperator = new ViewStyle()
523 Margin = new Extents(0, 0, 0, 0),
524 BackgroundColor = new Color(0, 0, 0, 0),
528 // ContentPage base style
529 theme.AddStyleWithoutClone("Tizen.NUI.Components.ContentPage", new ViewStyle()
531 BackgroundColor = new Color("#FAFAFA"),
532 CornerRadius = new Vector4(24.0f, 24.0f, 24.0f ,24.0f),
533 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
534 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
538 theme.AddStyleWithoutClone("Tizen.NUI.Components.AppBar", new AppBarStyle()
540 Size = new Size(-1, 64),
541 BackgroundColor = Color.Transparent,
542 BackButton = new ButtonStyle()
544 Size = new Size(48, 48),
546 BackgroundColor = Color.Transparent,
547 Icon = new ImageViewStyle()
549 Size = new Size(48, 48),
550 ResourceUrl = FrameworkInformation.ResourcePath + "nui_component_default_back_button.png",
551 Color = new Selector<Color>()
553 Normal = new Color("#17234D"),
554 Focused = new Color("#17234D"),
555 Pressed = new Color("#FF6200"),
556 Disabled = new Color("#CACACA"),
559 ThemeChangeSensitive = false
561 TitleTextLabel = new TextLabelStyle()
564 VerticalAlignment = VerticalAlignment.Center,
565 TextColor = new Selector<Color>()
567 Normal = new Color("#17234D"),
569 ThemeChangeSensitive = false
571 ActionView = new ViewStyle()
573 Size = new Size(48, 64),
575 BackgroundColor = Color.Transparent,
577 ActionButton = new ButtonStyle()
579 Size = new Size(-2, 64),
581 BackgroundColor = Color.Transparent,
582 Text = new TextLabelStyle()
585 TextColor = new Selector<Color>()
587 Normal = new Color("#FF6200"),
588 Focused = new Color("#FF6200"),
589 Pressed = new Color("#D95300"),
590 Disabled = new Color("#CACACA"),
593 Icon = new ImageViewStyle()
595 Size = new Size(48, 48),
596 Color = new Selector<Color>()
598 Normal = new Color("#17234D"),
599 Focused = new Color("#17234D"),
600 Pressed = new Color("#FF6200"),
601 Disabled = new Color("#CACACA"),
604 ThemeChangeSensitive = false,
606 Padding = new Extents(16, 16, 0, 0),
607 NavigationPadding = new Extents(0, 8, 0, 0),
608 ActionPadding = new Extents(16, 0, 0, 0),
609 ActionCellPadding = new Size2D(16, 0),
613 theme.AddStyleWithoutClone("Tizen.NUI.Components.Picker", new PickerStyle()
616 MinimumSize = new Size(80, -1),
617 ItemTextLabel = new TextLabelStyle()
620 VerticalAlignment = VerticalAlignment.Center,
621 HorizontalAlignment = HorizontalAlignment.Center,
623 TextColor = new Selector<Color>()
625 Normal = new Color(0.035f, 0.055f, 0.123f, 1.0f),
627 BackgroundColor = new Color("#FAFAFA"),
629 StartScrollOffset = new Size(0, 0),
633 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabBar", new ViewStyle()
635 Size = new Size(-1, -2),
636 Margin = new Extents(16, 16, 0, 0),
637 Padding = new Extents(14, 14, 0, 0),
638 CornerRadius = new Vector4(12.0f, 12.0f, 12.0f, 12.0f),
639 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
640 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
641 BackgroundColor = new Color("#FAFAFA"),
644 // TabButton base style
645 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabButton", new TabButtonStyle()
647 Size = new Size(-1, 72),
648 SizeWithIcon = new Size(-1, 116),
649 SizeWithIconOnly = new Size(-1, 64),
650 MinimumSize = new Size(80, 64),
651 Padding = new Extents(24, 24, 16, 16),
652 ItemSpacing = new Size2D(10, 10),
654 IconSizeWithIconOnly = new Size(32, 32),
655 TextSizeWithIcon = 16.0f,
656 BackgroundColor = new Selector<Color>()
658 Selected = new Color("#FFE0CC"),
659 Pressed = new Color("#FFCAA8"),
660 Other = new Color("#FAFAFA"),
662 Text = new TextLabelStyle()
665 Size = new Size(-2, -2),
666 TextColor = new Selector<Color>()
668 Normal = new Color("#090E21"),
669 Disabled = new Color("#CACACA"),
670 Other = new Color("#FF6200"),
672 ThemeChangeSensitive = false,
674 Icon = new ImageViewStyle()
676 Size = new Size(48, 48),
677 Color = new Selector<Color>()
679 Normal = new Color("#090E21"),
680 Disabled = new Color("#CACACA"),
681 Other = new Color("#FF6200"),
686 // NotificationToast base style
687 theme.AddStyleWithoutClone("NotificationToast", new TextLabelStyle()
689 BackgroundColor = new Color("#FAFAFA"),
690 CornerRadius = 12.0f,
691 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
692 TextColor = new Color("#090E21"),
694 WidthResizePolicy = ResizePolicyType.UseNaturalSize,
695 HeightResizePolicy = ResizePolicyType.UseNaturalSize,
696 PositionUsesPivotPoint = true,
697 HorizontalAlignment = HorizontalAlignment.Center,
698 VerticalAlignment = VerticalAlignment.Center,
699 Padding = new Extents(16, 16, 16, 16),
703 // AlertDialog base style
704 theme.AddStyleWithoutClone("Tizen.NUI.Components.AlertDialog", new AlertDialogStyle()
706 Size = new Size(-2, -2),
707 Padding = new Extents(32, 32, 32, 32),
708 ItemSpacing = new Size2D(0, 32),
709 BackgroundColor = new Color("#FAFAFA"),
710 CornerRadius = 12.0f,
711 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
712 TitleTextLabel = new TextLabelStyle()
714 Size = new Size(626, -2),
716 HorizontalAlignment = HorizontalAlignment.Center,
717 VerticalAlignment = VerticalAlignment.Center,
718 TextColor = new Color("#090E21"),
719 ThemeChangeSensitive = false,
721 MessageTextLabel = new TextLabelStyle()
723 Size = new Size(626, -2),
726 HorizontalAlignment = HorizontalAlignment.Center,
727 VerticalAlignment = VerticalAlignment.Center,
728 TextColor = new Color("#090E21"),
729 ThemeChangeSensitive = false,
731 ActionContent = new ViewStyle()
733 Size = new Size(626, -2),
737 // TimePicker base style
738 theme.AddStyleWithoutClone("Tizen.NUI.Components.TimePicker", new TimePickerStyle()
740 CellPadding = new Size(12, 220),
742 Pickers = new PickerStyle()
744 Size = new Size(80, 220),
745 ItemTextLabel = new TextLabelStyle()
748 VerticalAlignment = VerticalAlignment.Center,
749 HorizontalAlignment = HorizontalAlignment.Center,
751 TextColor = new Selector<Color>()
753 Normal = new Color(0.035f, 0.055f, 0.123f, 1.0f),
755 BackgroundColor = new Color("#FAFAFA"),
756 ThemeChangeSensitive = false
758 StartScrollOffset = new Size2D(0, 0),
762 // DatePicker base style
763 theme.AddStyleWithoutClone("Tizen.NUI.Components.DatePicker", new DatePickerStyle()
765 CellPadding = new Size(12, 220),
767 Pickers = new PickerStyle()
769 Size = new Size(80, 220),
770 ItemTextLabel = new TextLabelStyle()
773 VerticalAlignment = VerticalAlignment.Center,
774 HorizontalAlignment = HorizontalAlignment.Center,
776 TextColor = new Selector<Color>()
778 Normal = new Color(0.035f, 0.055f, 0.123f, 1.0f),
780 BackgroundColor = new Color("#FAFAFA"),
781 ThemeChangeSensitive = false
783 StartScrollOffset = new Size2D(0, 0),
788 theme.AddStyleWithoutClone("Tizen.NUI.Components.Menu", new MenuStyle()
790 BackgroundColor = Color.Transparent,
791 Content = new ViewStyle()
793 BackgroundColor = new Color("#FFFEFE"),
794 CornerRadius = 24.0f,
795 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
796 // FIXME: ScrollableBase with LinearLayout's Padding.Start is applied both Start and End.
797 // ScrollableBase with LinearLayout's Padding.Top is applied both Top and Bottom.
798 Padding = new Extents(32, 0, 16, 0),
802 // MenuItem base style
803 theme.AddStyleWithoutClone("Tizen.NUI.Components.MenuItem", new ButtonStyle()
805 Size = new Size(324, -2),
806 MinimumSize = new Size2D(0, 64),
807 BackgroundColor = new Color("#FFFEFE"),
809 // FIXME: ClippingModeType.ClipChildren cannot support anti-aliasing
810 // So not to show left bottom corner of MenuItem, MenuItem.Padding.Start is 0 and Menu.Content.Padding.Start is 32.
811 // (instead of MenuItem.Padding.Start 16 and Menu.Content.Padding.Start is 16)
812 Padding = new Extents(0, 0, 24, 24),
813 Text = new TextLabelStyle()
817 HorizontalAlignment = HorizontalAlignment.Begin,
818 VerticalAlignment = VerticalAlignment.Center,
819 TextColor = new Selector<Color>()
821 Normal = new Color("#090E21"),
822 Focused = new Color("#FF6200"),
823 Pressed = new Color("#FF6200"),
824 Disabled = new Color("#CACACA"),
825 Selected = new Color("#FF6200"),
827 ThemeChangeSensitive = false
829 Icon = new ImageViewStyle()
831 Color = new Selector<Color>()
833 Normal = new Color("#090E21"),
834 Focused = new Color("#FF6200"),
835 Pressed = new Color("#FF6200"),
836 Disabled = new Color("#CACACA"),
837 Selected = new Color("#FF6200"),
842 // AlertDialog base style
843 theme.AddStyleWithoutClone("Tizen.NUI.Components.DialogPage.Scrim", new ViewStyle()
845 BackgroundColor = new Color("#090E21"),
854 #endif // !PROFILE_WEARABLE