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 MinimumSize = new Size(252, 48),
43 Padding = new Extents(32, 32, 8, 8),
44 ItemSpacing = new Size2D(8, 8),
46 ItemHorizontalAlignment = HorizontalAlignment.Center,
47 ItemVerticalAlignment = VerticalAlignment.Center,
48 BackgroundColor = new Selector<Color>()
50 Normal = new Color(1.0f, 0.384f, 0.0f, 1),
51 Pressed = new Color(0.85f, 0.325f, 0.0f, 1),
52 Focused = new Color(1.0f, 0.827f, 0.624f, 1),
53 Selected = new Color(0.624f, 0.239f, 0.0f, 1),
54 Disabled = new Color(0.792f, 0.792f, 0.792f, 1),
56 Text = new TextLabelStyle()
58 TextColor = new Color("#FDFDFD"),
63 // Outlined Button style
64 theme.AddStyleWithoutClone("Tizen.NUI.Components.Button.Outlined", new ButtonStyle()
66 MinimumSize = new Size(252, 48),
67 Padding = new Extents(32, 32, 8, 8),
68 ItemSpacing = new Size2D(8, 8),
70 BorderlineWidth = 2.0f,
71 BorderlineColorSelector = new Selector<Color>()
73 Normal = new Color("#FF6200"),
74 Pressed = new Color("#FFA166"),
75 Focused = new Color("#FF7119"),
76 Selected = new Color("#FF8133"),
77 Disabled = new Color("#CACACA"),
79 ItemHorizontalAlignment = HorizontalAlignment.Center,
80 ItemVerticalAlignment = VerticalAlignment.Center,
81 BackgroundColor = Color.Transparent,
82 Text = new TextLabelStyle()
84 TextColor = new Selector<Color>()
86 Normal = new Color("#FF6200"),
87 Pressed = new Color("#FFA166"),
88 Focused = new Color("#FF7119"),
89 Selected = new Color("#FF8133"),
90 Disabled = new Color("#CACACA"),
96 // TextOnly Button style
97 theme.AddStyleWithoutClone("Tizen.NUI.Components.Button.TextOnly", new ButtonStyle()
99 MinimumSize = new Size(120, 48),
100 Padding = new Extents(32, 32, 8, 8),
101 ItemHorizontalAlignment = HorizontalAlignment.Center,
102 ItemVerticalAlignment = VerticalAlignment.Center,
103 BackgroundColor = Color.Transparent,
104 Text = new TextLabelStyle()
106 TextColor = new Selector<Color>()
108 Normal = new Color("#FF6200"),
109 Pressed = new Color("#FFA166"),
110 Focused = new Color("#FF7119"),
111 Selected = new Color("#FF8133"),
112 Disabled = new Color("#CACACA"),
118 // CheckBox base style
119 theme.AddStyleWithoutClone("Tizen.NUI.Components.CheckBox", new ButtonStyle()
121 Padding = new Extents(8, 8, 8, 8),
122 ItemSpacing = new Size2D(16, 16),
123 ItemHorizontalAlignment = HorizontalAlignment.Center,
124 ItemVerticalAlignment = VerticalAlignment.Center,
125 Icon = new ImageViewStyle()
127 Size = new Size(32, 32),
128 ResourceUrl = new Selector<string>()
130 Normal = FrameworkInformation.ResourcePath + "IoT_check_off.png",
131 Pressed = FrameworkInformation.ResourcePath + "IoT_check_off_p.png",
132 Disabled = FrameworkInformation.ResourcePath + "IoT_check_off_d.png",
133 Focused = FrameworkInformation.ResourcePath + "IoT_check_off_f.png",
134 Selected = FrameworkInformation.ResourcePath + "IoT_check_on.png",
135 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_check_on_p.png",
136 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_check_on_f.png",
137 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_check_on_d.png",
140 Text = new TextLabelStyle()
142 TextColor = new Color("#090E21"),
148 theme.AddStyleWithoutClone("Tizen.NUI.Components.Popup", new PopupStyle()
150 Size = new Size(500, 280),
151 BackgroundColor = new Color(0.9f, 0.9f, 0.9f, 1),
152 ImageShadow = new ImageShadow()
154 Url = FrameworkInformation.ResourcePath + "nui_component_default_popup_shadow.png",
155 Border = new Rectangle(24, 24, 24, 24),
156 Extents = new Vector2(48, 48)
158 Title = new TextLabelStyle()
161 Padding = new Extents(20, 20, 20, 20),
163 Buttons = new ButtonStyle()
167 BackgroundColor = new Selector<Color>()
169 Normal = new Color(1, 1, 1, 1),
170 Pressed = new Color(1, 1, 1, 0.5f),
172 Overlay = new ImageViewStyle()
174 BackgroundColor = new Selector<Color>()
176 Pressed = new Color(0, 0, 0, 0.1f),
177 Other = new Color(1, 1, 1, 0.1f),
180 Text = new TextLabelStyle()
182 TextColor = new Color(0.05f, 0.63f, 0.9f, 1),
187 // Progress base style
188 theme.AddStyleWithoutClone("Tizen.NUI.Components.Progress", new ProgressStyle()
190 Size = new Size(508, 16),
191 Track = new ImageViewStyle()
194 BackgroundColor = new Selector<Color>()
196 Normal = new Color(0.82f, 0.31f, 0.0f, 0.1f),
197 Disabled = new Color(0.82f, 0.31f, 0.0f, 0.1f),
200 Buffer = new ImageViewStyle()
203 BackgroundColor = new Color(0.82f, 0.31f, 0.0f, 0.1f),
205 Progress = new ImageViewStyle()
208 BackgroundColor = new Color("#D25000"),
210 IndeterminateImageUrl = FrameworkInformation.ResourcePath + "IoT_progress_indeterminate.png",
213 // RadioButton base style
214 theme.AddStyleWithoutClone("Tizen.NUI.Components.RadioButton", new ButtonStyle()
216 Padding = new Extents(8, 8, 8, 8),
217 ItemSpacing = new Size2D(16, 16),
218 ItemHorizontalAlignment = HorizontalAlignment.Center,
219 ItemVerticalAlignment = VerticalAlignment.Center,
220 Icon = new ImageViewStyle()
222 Size = new Size(32, 32),
223 ResourceUrl = new Selector<string>()
225 Normal = FrameworkInformation.ResourcePath + "IoT_radiobutton_off.png",
226 Pressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_p.png",
227 Disabled = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_d.png",
228 Focused = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_f.png",
229 Selected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on.png",
230 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_p.png",
231 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_f.png",
232 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_d.png",
235 Text = new TextLabelStyle()
237 TextColor = new Color("#090E21"),
243 theme.AddStyleWithoutClone("Tizen.NUI.Components.Slider", new SliderStyle()
245 Size = new Size(850, 50),
247 Track = new ImageViewStyle()
249 Size = new Size(800, 8),
251 BackgroundColor = new Selector<Color>()
253 Normal = new Color(1.0f, 0.37f, 0.0f, 0.1f),
254 Disabled = new Color(1.0f, 0.37f, 0.0f, 0.1f),
257 Progress = new ImageViewStyle()
259 Size = new Size(800, 8),
261 BackgroundColor = new Selector<Color>()
263 Normal = new Color("#FF6200"),
264 Disabled = new Color("#CACACA"),
267 Thumb = new ImageViewStyle()
269 Size = new Size(40, 40),
270 ResourceUrl = new Selector<string>()
272 Normal = FrameworkInformation.ResourcePath + "IoT_slider_handler_normal.png",
273 Pressed = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
274 Focused = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
275 Disabled = FrameworkInformation.ResourcePath + "IoT_slider_handler_disabled.png",
278 ValueIndicatorImage = new ImageViewStyle()
280 Size = new Size(43, 40),
281 BorderlineWidth = 1.0f,
282 BorderlineColor = new Color("#FF6200"),
283 BackgroundColor = new Color(1.0f, 1.0f, 1.0f, 0.0f),
284 CornerRadius = 12.0f,
286 ValueIndicatorText = new TextLabelStyle()
290 TextColor = new Color("#FF6200"),
295 theme.AddStyleWithoutClone("Tizen.NUI.Components.Switch", new SwitchStyle()
297 ItemSpacing = new Size2D(16, 16),
298 ItemHorizontalAlignment = HorizontalAlignment.Begin,
299 ItemVerticalAlignment = VerticalAlignment.Center,
300 Track = new ImageViewStyle()
302 Size = new Size(84, 44),
303 ResourceUrl = new Selector<string>()
305 Normal = FrameworkInformation.ResourcePath + "IoT_switch_track_off.png",
306 Pressed = FrameworkInformation.ResourcePath + "IoT_switch_track_off_p.png",
307 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_track_off_d.png",
308 Focused = FrameworkInformation.ResourcePath + "IoT_switch_track_off_f.png",
309 Selected = FrameworkInformation.ResourcePath + "IoT_switch_track_on.png",
310 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_track_on_p.png",
311 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_track_on_f.png",
312 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_switch_track_on_d.png",
315 Thumb = new ImageViewStyle()
317 Size = new Size(44, 44),
318 ResourceUrl = new Selector<string>()
320 Normal = FrameworkInformation.ResourcePath + "IoT_switch_thumb.png",
321 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_thumb_d.png",
322 Selected = FrameworkInformation.ResourcePath + "IoT_switch_thumb_s.png",
323 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sp.png",
324 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sf.png",
327 Text = new TextLabelStyle()
329 TextColor = new Color("#090E21"),
334 // Loading base style
335 theme.AddStyleWithoutClone("Tizen.NUI.Components.Loading", new LoadingStyle()
337 LoadingSize = new Size(200, 200),
340 // Pagination base style
341 theme.AddStyleWithoutClone("Tizen.NUI.Components.Pagination", new PaginationStyle()
343 Size = new Size(450, 24),
344 IndicatorImageUrl = new Selector<string>()
346 Normal = FrameworkInformation.ResourcePath + "nui_component_default_pagination_normal_dot.png",
347 Selected = FrameworkInformation.ResourcePath + "nui_component_default_pagination_focus_dot.png",
349 IndicatorSize = new Size(64, 8),
350 IndicatorSpacing = 16,
353 // Scrollbar base style
354 theme.AddStyleWithoutClone("Tizen.NUI.Components.Scrollbar", new ScrollbarStyle()
358 TrackColor = new Color(0f, 0f, 0f, 0f),
359 ThumbColor = new Color("#FFFEFE"),
361 //7.0 UX no require image resource.
362 Thumb = new ImageViewStyle()
365 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
367 //ThumbVerticalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_vbar.#.png",
368 //ThumbHorizontalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_hbar.#.png",
371 // LinearLayouter base style
372 theme.AddStyleWithoutClone("Tizen.NUI.Components.LinearLayouter", new ViewStyle()
374 Padding = new Extents(0, 0, 0, 0)
377 // GridLayouter base style
378 theme.AddStyleWithoutClone("Tizen.NUI.Components.GridLayouter", new ViewStyle()
380 Padding = new Extents(0, 0, 0, 0),
383 // ItemsLayouter base style
384 theme.AddStyleWithoutClone("Tizen.NUI.Components.ItemsLayouter", new ViewStyle()
386 Padding = new Extents(0, 0, 0, 0),
389 // RecyclerViewItem base style
390 theme.AddStyleWithoutClone("Tizen.NUI.Components.RecyclerViewItem", new RecyclerViewItemStyle()
392 BackgroundColor = new Selector<Color>()
394 Normal = new Color(1, 1, 1, 1),
395 Pressed = new Color(0.85f, 0.85f, 0.85f, 1),
396 Disabled = new Color(0.70f, 0.70f, 0.70f, 1),
397 Selected = new Color(0.701f, 0.898f, 0.937f, 1),
401 // DefaultLinearItem base style
402 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultLinearItem", new DefaultLinearItemStyle()
405 Padding = new Extents(16, 16, 0, 0),
406 Margin = new Extents(0, 0, 0, 0),
407 Label = new TextLabelStyle()
411 FontFamily = "SamsungOneUI600",
412 TextColor = new Selector<Color>()
414 Normal = new Color("#090E21"),
415 Pressed = new Color("#FF6200"),
416 Disabled = new Color("#CACACA"),
417 Selected = new Color("#FF6200"),
419 ThemeChangeSensitive = false
421 SubLabel = new TextLabelStyle()
425 FontFamily = "SamsungOneUI400",
426 TextColor = new Selector<Color>()
428 Normal = new Color("#090E21"),
429 Pressed = new Color("#FF6200"),
430 Disabled = new Color("#CACACA"),
431 Selected = new Color("#FF6200"),
433 ThemeChangeSensitive = false
435 Icon = new ViewStyle()
437 Margin = new Extents(0, 16, 0, 0)
439 Extra = new ViewStyle()
441 Margin = new Extents(16, 0, 0, 0)
445 // DefaultGridItem base style
446 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultGridItem", new DefaultGridItemStyle()
448 ClippingMode = ClippingModeType.ClipChildren,
449 Padding = new Extents(0, 0, 0, 0),
450 Margin = new Extents(5, 5, 5, 5),
451 CornerRadius = 12.0f,
452 BackgroundColor = new Selector<Color>()
454 Normal = new Color("#FAFAFA"),
455 Pressed = new Color(1f, 0.38f, 0, 0.2f),
456 Disabled = new Color("#FAFAFA"),
457 Selected = new Color(1f, 0.38f, 0, 0.2f),
459 Image = new ImageViewStyle()
461 //FIXME: Clip mode is not working on CornerRadius.
462 CornerRadius = 12.0f,
463 ClippingMode = ClippingModeType.ClipChildren,
465 Label = new TextLabelStyle()
469 FontFamily = "SamsungOneUI400",
470 LineWrapMode = LineWrapMode.Character,
471 TextColor = new Selector<Color>()
473 Normal = new Color("#090E21"),
474 Pressed = new Color("#FF6200"),
475 Disabled = new Color("#CACACA"),
476 Selected = new Color("#FF6200"),
478 ThemeChangeSensitive = false
480 Badge = new ViewStyle()
482 Margin = new Extents(0, 0, 0, 0),
484 BoxShadow = new Shadow(12.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 4.0f)),
487 // DefaultTitleItem base style
488 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultTitleItem", new DefaultTitleItemStyle()
491 Padding = new Extents(20, 20, 0, 0),
492 Margin = new Extents(0, 0, 0, 0),
493 BackgroundColor = Color.Transparent,
494 Label = new TextLabelStyle()
498 FontFamily = "SamsungOneUI400",
499 TextColor = new Color("#090E217F"),
500 ThemeChangeSensitive = false
502 Icon = new ViewStyle()
504 Margin = new Extents(24, 0, 0, 0)
506 Seperator = new ViewStyle()
508 Margin = new Extents(0, 0, 0, 0),
509 BackgroundColor = new Color(0, 0, 0, 0),
513 // ContentPage base style
514 theme.AddStyleWithoutClone("Tizen.NUI.Components.ContentPage", new ViewStyle()
516 BackgroundColor = new Color("#FAFAFA"),
517 CornerRadius = new Vector4(24.0f, 24.0f, 24.0f ,24.0f),
518 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
519 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
523 theme.AddStyleWithoutClone("Tizen.NUI.Components.AppBar", new AppBarStyle()
525 Size = new Size(-1, 64),
526 BackgroundColor = Color.Transparent,
527 BackButton = new ButtonStyle()
529 Size = new Size(48, 48),
531 BackgroundColor = Color.Transparent,
532 Icon = new ImageViewStyle()
534 Size = new Size(48, 48),
535 ResourceUrl = FrameworkInformation.ResourcePath + "nui_component_default_back_button.png",
536 Color = new Selector<Color>()
538 Normal = new Color("#17234D"),
539 Focused = new Color("#17234D"),
540 Pressed = new Color("#FF6200"),
541 Disabled = new Color("#CACACA"),
544 ThemeChangeSensitive = false
546 TitleTextLabel = new TextLabelStyle()
549 VerticalAlignment = VerticalAlignment.Center,
550 TextColor = new Selector<Color>()
552 Normal = new Color("#17234D"),
554 ThemeChangeSensitive = false
556 ActionView = new ViewStyle()
558 Size = new Size(48, 64),
560 BackgroundColor = Color.Transparent,
562 ActionButton = new ButtonStyle()
564 Size = new Size(-2, 64),
566 BackgroundColor = Color.Transparent,
567 Text = new TextLabelStyle()
570 TextColor = new Selector<Color>()
572 Normal = new Color("#FF6200"),
573 Focused = new Color("#FF6200"),
574 Pressed = new Color("#D95300"),
575 Disabled = new Color("#CACACA"),
578 Icon = new ImageViewStyle()
580 Size = new Size(48, 48),
581 Color = new Selector<Color>()
583 Normal = new Color("#17234D"),
584 Focused = new Color("#17234D"),
585 Pressed = new Color("#FF6200"),
586 Disabled = new Color("#CACACA"),
589 ThemeChangeSensitive = false,
591 Padding = new Extents(16, 16, 0, 0),
592 NavigationPadding = new Extents(0, 8, 0, 0),
593 ActionPadding = new Extents(16, 0, 0, 0),
594 ActionCellPadding = new Size2D(16, 0),
598 theme.AddStyleWithoutClone("Tizen.NUI.Components.Picker", new PickerStyle()
601 MinimumSize = new Size(80, -1),
602 ItemTextLabel = new TextLabelStyle()
605 VerticalAlignment = VerticalAlignment.Center,
606 HorizontalAlignment = HorizontalAlignment.Center,
608 TextColor = new Selector<Color>()
610 Normal = new Color(0.035f, 0.055f, 0.123f, 1.0f),
612 BackgroundColor = new Color("#FAFAFA"),
614 StartScrollOffset = new Size(0, 0),
618 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabBar", new ViewStyle()
620 Size = new Size(-1, -2),
621 Margin = new Extents(16, 16, 0, 0),
622 Padding = new Extents(14, 14, 0, 0),
623 CornerRadius = new Vector4(12.0f, 12.0f, 12.0f, 12.0f),
624 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
625 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
626 BackgroundColor = new Color("#FAFAFA"),
629 // TabButton base style
630 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabButton", new TabButtonStyle()
632 Size = new Size(-1, 72),
633 SizeWithIcon = new Size(-1, 116),
634 SizeWithIconOnly = new Size(-1, 64),
635 MinimumSize = new Size(80, 64),
636 Padding = new Extents(24, 24, 16, 16),
637 ItemSpacing = new Size2D(10, 10),
639 IconSizeWithIconOnly = new Size(32, 32),
640 TextSizeWithIcon = 16.0f,
641 BackgroundColor = new Selector<Color>()
643 Normal = new Color("#FAFAFA"),
644 Selected = new Color("#FFE0CC"),
645 Pressed = new Color("#FFCAA8"),
646 Focused = new Color("#FAFAFA"),
647 Disabled = new Color("#FAFAFA"),
649 Text = new TextLabelStyle()
652 Size = new Size(-2, -2),
653 TextColor = new Selector<Color>()
655 Normal = new Color("#090E21"),
656 Selected = new Color("#FF6200"),
657 Pressed = new Color("#FF6200"),
658 Focused = new Color("#FF6200"),
659 Disabled = new Color("#CACACA"),
661 ThemeChangeSensitive = false,
663 Icon = new ImageViewStyle()
665 Size = new Size(48, 48),
666 Color = new Selector<Color>()
668 Normal = new Color("#090E21"),
669 Selected = new Color("#FF6200"),
670 Pressed = new Color("#FF6200"),
671 Focused = new Color("#FF6200"),
672 Disabled = new Color("#CACACA"),
677 // NotificationToast base style
678 theme.AddStyleWithoutClone("NotificationToast", new TextLabelStyle()
680 BackgroundColor = new Color("#FAFAFA"),
681 CornerRadius = 12.0f,
682 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
683 TextColor = new Color("#090E21"),
685 WidthResizePolicy = ResizePolicyType.UseNaturalSize,
686 HeightResizePolicy = ResizePolicyType.UseNaturalSize,
687 PositionUsesPivotPoint = true,
688 HorizontalAlignment = HorizontalAlignment.Center,
689 VerticalAlignment = VerticalAlignment.Center,
690 Padding = new Extents(16, 16, 16, 16),
694 // AlertDialog base style
695 theme.AddStyleWithoutClone("Tizen.NUI.Components.AlertDialog", new AlertDialogStyle()
697 Size = new Size(-2, -2),
698 Padding = new Extents(32, 32, 32, 32),
699 ItemSpacing = new Size2D(0, 32),
700 BackgroundColor = new Color("#FAFAFA"),
701 CornerRadius = 12.0f,
702 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
703 TitleTextLabel = new TextLabelStyle()
705 Size = new Size(626, -2),
707 HorizontalAlignment = HorizontalAlignment.Center,
708 VerticalAlignment = VerticalAlignment.Center,
709 TextColor = new Color("#090E21"),
710 ThemeChangeSensitive = false,
712 MessageTextLabel = new TextLabelStyle()
714 Size = new Size(626, -2),
717 HorizontalAlignment = HorizontalAlignment.Center,
718 VerticalAlignment = VerticalAlignment.Center,
719 TextColor = new Color("#090E21"),
720 ThemeChangeSensitive = false,
722 ActionContent = new ViewStyle()
724 Size = new Size(626, -2),
728 // TimePicker base style
729 theme.AddStyleWithoutClone("Tizen.NUI.Components.TimePicker", new TimePickerStyle()
731 CellPadding = new Size(12, 220),
733 Pickers = new PickerStyle()
735 Size = new Size(80, 220),
736 ItemTextLabel = new TextLabelStyle()
739 VerticalAlignment = VerticalAlignment.Center,
740 HorizontalAlignment = HorizontalAlignment.Center,
742 TextColor = new Selector<Color>()
744 Normal = new Color(0.035f, 0.055f, 0.123f, 1.0f),
746 BackgroundColor = new Color("#FAFAFA"),
747 ThemeChangeSensitive = false
749 StartScrollOffset = new Size2D(0, 0),
753 // DatePicker base style
754 theme.AddStyleWithoutClone("Tizen.NUI.Components.DatePicker", new DatePickerStyle()
756 CellPadding = new Size(12, 220),
758 Pickers = new PickerStyle()
760 Size = new Size(80, 220),
761 ItemTextLabel = new TextLabelStyle()
764 VerticalAlignment = VerticalAlignment.Center,
765 HorizontalAlignment = HorizontalAlignment.Center,
767 TextColor = new Selector<Color>()
769 Normal = new Color(0.035f, 0.055f, 0.123f, 1.0f),
771 BackgroundColor = new Color("#FAFAFA"),
772 ThemeChangeSensitive = false
774 StartScrollOffset = new Size2D(0, 0),
779 theme.AddStyleWithoutClone("Tizen.NUI.Components.Menu", new MenuStyle()
781 BackgroundColor = Color.Transparent,
782 Content = new ViewStyle()
784 BackgroundColor = new Color("#FFFEFE"),
785 CornerRadius = 24.0f,
786 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
787 // FIXME: ScrollableBase with LinearLayout's Padding.Start is applied both Start and End.
788 // ScrollableBase with LinearLayout's Padding.Top is applied both Top and Bottom.
789 Padding = new Extents(32, 0, 16, 0),
793 // MenuItem base style
794 theme.AddStyleWithoutClone("Tizen.NUI.Components.MenuItem", new ButtonStyle()
796 Size = new Size(324, -2),
797 MinimumSize = new Size2D(0, 64),
798 BackgroundColor = new Color("#FFFEFE"),
800 // FIXME: ClippingModeType.ClipChildren cannot support anti-aliasing
801 // So not to show left bottom corner of MenuItem, MenuItem.Padding.Start is 0 and Menu.Content.Padding.Start is 32.
802 // (instead of MenuItem.Padding.Start 16 and Menu.Content.Padding.Start is 16)
803 Padding = new Extents(0, 0, 24, 24),
804 Text = new TextLabelStyle()
808 HorizontalAlignment = HorizontalAlignment.Begin,
809 VerticalAlignment = VerticalAlignment.Center,
810 TextColor = new Selector<Color>()
812 Normal = new Color("#090E21"),
813 Focused = new Color("#FF6200"),
814 Pressed = new Color("#FF6200"),
815 Disabled = new Color("#CACACA"),
816 Selected = new Color("#FF6200"),
818 ThemeChangeSensitive = false
820 Icon = new ImageViewStyle()
822 Color = new Selector<Color>()
824 Normal = new Color("#090E21"),
825 Focused = new Color("#FF6200"),
826 Pressed = new Color("#FF6200"),
827 Disabled = new Color("#CACACA"),
828 Selected = new Color("#FF6200"),
833 // AlertDialog base style
834 theme.AddStyleWithoutClone("Tizen.NUI.Components.DialogPage.Scrim", new ViewStyle()
836 BackgroundColor = new Color("#090E21"),
845 #endif // !PROFILE_WEARABLE