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 Size = new Size(252, 48),
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 Size = new Size(252, 48),
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()
98 MinimumSize = new Size(120, 48),
99 Padding = new Extents(32, 32, 8, 8),
100 ItemHorizontalAlignment = HorizontalAlignment.Center,
101 ItemVerticalAlignment = VerticalAlignment.Center,
102 BackgroundColor = Color.Transparent,
103 Text = new TextLabelStyle()
105 TextColor = new Selector<Color>()
107 Normal = new Color("#FF6200"),
108 Pressed = new Color("#FFA166"),
109 Focused = new Color("#FF7119"),
110 Selected = new Color("#FF8133"),
111 Disabled = new Color("#CACACA"),
117 // CheckBox base style
118 theme.AddStyleWithoutClone("Tizen.NUI.Components.CheckBox", new ButtonStyle()
120 Padding = new Extents(8, 8, 8, 8),
121 ItemSpacing = new Size2D(16, 16),
122 ItemHorizontalAlignment = HorizontalAlignment.Center,
123 ItemVerticalAlignment = VerticalAlignment.Center,
124 Icon = new ImageViewStyle()
126 Size = new Size(32, 32),
127 ResourceUrl = new Selector<string>()
129 Normal = FrameworkInformation.ResourcePath + "IoT_check_off.png",
130 Pressed = FrameworkInformation.ResourcePath + "IoT_check_off_p.png",
131 Disabled = FrameworkInformation.ResourcePath + "IoT_check_off_d.png",
132 Focused = FrameworkInformation.ResourcePath + "IoT_check_off_f.png",
133 Selected = FrameworkInformation.ResourcePath + "IoT_check_on.png",
134 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_check_on_p.png",
135 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_check_on_f.png",
136 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_check_on_d.png",
139 Text = new TextLabelStyle()
141 TextColor = new Color("#090E21"),
147 theme.AddStyleWithoutClone("Tizen.NUI.Components.Popup", new PopupStyle()
149 Size = new Size(500, 280),
150 BackgroundColor = new Color(0.9f, 0.9f, 0.9f, 1),
151 ImageShadow = new ImageShadow()
153 Url = FrameworkInformation.ResourcePath + "nui_component_default_popup_shadow.png",
154 Border = new Rectangle(24, 24, 24, 24),
155 Extents = new Vector2(48, 48)
157 Title = new TextLabelStyle()
160 Padding = new Extents(20, 20, 20, 20),
162 Buttons = new ButtonStyle()
164 Size = new Size(0, 80),
166 BackgroundColor = new Selector<Color>()
168 Normal = new Color(1, 1, 1, 1),
169 Pressed = new Color(1, 1, 1, 0.5f),
171 Overlay = new ImageViewStyle()
173 BackgroundColor = new Selector<Color>()
175 Pressed = new Color(0, 0, 0, 0.1f),
176 Other = new Color(1, 1, 1, 0.1f),
179 Text = new TextLabelStyle()
181 TextColor = new Color(0.05f, 0.63f, 0.9f, 1),
186 // Progress base style
187 theme.AddStyleWithoutClone("Tizen.NUI.Components.Progress", new ProgressStyle()
189 Size = new Size(508, 16),
190 Track = new ImageViewStyle()
193 BackgroundColor = new Selector<Color>()
195 Normal = new Color(0.82f, 0.31f, 0.0f, 0.1f),
196 Disabled = new Color(0.82f, 0.31f, 0.0f, 0.1f),
199 Buffer = new ImageViewStyle()
202 BackgroundColor = new Color(0.82f, 0.31f, 0.0f, 0.1f),
204 Progress = new ImageViewStyle()
207 BackgroundColor = new Color("#D25000"),
209 IndeterminateImageUrl = FrameworkInformation.ResourcePath + "IoT_progress_indeterminate.png",
212 // RadioButton base style
213 theme.AddStyleWithoutClone("Tizen.NUI.Components.RadioButton", new ButtonStyle()
215 Padding = new Extents(8, 8, 8, 8),
216 ItemSpacing = new Size2D(16, 16),
217 ItemHorizontalAlignment = HorizontalAlignment.Center,
218 ItemVerticalAlignment = VerticalAlignment.Center,
219 Icon = new ImageViewStyle()
221 Size = new Size(32, 32),
222 ResourceUrl = new Selector<string>()
224 Normal = FrameworkInformation.ResourcePath + "IoT_radiobutton_off.png",
225 Pressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_p.png",
226 Disabled = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_d.png",
227 Focused = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_f.png",
228 Selected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on.png",
229 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_p.png",
230 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_f.png",
231 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_d.png",
234 Text = new TextLabelStyle()
236 TextColor = new Color("#090E21"),
242 theme.AddStyleWithoutClone("Tizen.NUI.Components.Slider", new SliderStyle()
244 Size = new Size(850, 50),
246 Track = new ImageViewStyle()
248 Size = new Size(800, 8),
250 BackgroundColor = new Selector<Color>()
252 Normal = new Color(1.0f, 0.37f, 0.0f, 0.1f),
253 Disabled = new Color(1.0f, 0.37f, 0.0f, 0.1f),
256 Progress = new ImageViewStyle()
258 Size = new Size(800, 8),
260 BackgroundColor = new Selector<Color>()
262 Normal = new Color("#FF6200"),
263 Disabled = new Color("#CACACA"),
266 Thumb = new ImageViewStyle()
268 Size = new Size(40, 40),
269 ResourceUrl = new Selector<string>()
271 Normal = FrameworkInformation.ResourcePath + "IoT_slider_handler_normal.png",
272 Pressed = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
273 Focused = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
274 Disabled = FrameworkInformation.ResourcePath + "IoT_slider_handler_disabled.png",
277 ValueIndicatorImage = new ImageViewStyle()
279 Size = new Size(43, 40),
280 BorderlineWidth = 1.0f,
281 BorderlineColor = new Color("#FF6200"),
282 BackgroundColor = new Color(1.0f, 1.0f, 1.0f, 0.0f),
283 CornerRadius = 12.0f,
285 ValueIndicatorText = new TextLabelStyle()
289 TextColor = new Color("#FF6200"),
294 theme.AddStyleWithoutClone("Tizen.NUI.Components.Switch", new SwitchStyle()
296 ItemSpacing = new Size2D(16, 16),
297 ItemHorizontalAlignment = HorizontalAlignment.Begin,
298 ItemVerticalAlignment = VerticalAlignment.Center,
299 Track = new ImageViewStyle()
301 Size = new Size(84, 44),
302 ResourceUrl = new Selector<string>()
304 Normal = FrameworkInformation.ResourcePath + "IoT_switch_track_off.png",
305 Pressed = FrameworkInformation.ResourcePath + "IoT_switch_track_off_p.png",
306 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_track_off_d.png",
307 Focused = FrameworkInformation.ResourcePath + "IoT_switch_track_off_f.png",
308 Selected = FrameworkInformation.ResourcePath + "IoT_switch_track_on.png",
309 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_track_on_p.png",
310 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_track_on_f.png",
311 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_switch_track_on_d.png",
314 Thumb = new ImageViewStyle()
316 Size = new Size(44, 44),
317 ResourceUrl = new Selector<string>()
319 Normal = FrameworkInformation.ResourcePath + "IoT_switch_thumb.png",
320 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_thumb_d.png",
321 Selected = FrameworkInformation.ResourcePath + "IoT_switch_thumb_s.png",
322 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sp.png",
323 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sf.png",
326 Text = new TextLabelStyle()
328 TextColor = new Color("#090E21"),
333 // Loading base style
334 theme.AddStyleWithoutClone("Tizen.NUI.Components.Loading", new LoadingStyle()
336 LoadingSize = new Size(200, 200),
339 // Pagination base style
340 theme.AddStyleWithoutClone("Tizen.NUI.Components.Pagination", new PaginationStyle()
342 Size = new Size(450, 24),
343 IndicatorImageUrl = new Selector<string>()
345 Normal = FrameworkInformation.ResourcePath + "nui_component_default_pagination_normal_dot.png",
346 Selected = FrameworkInformation.ResourcePath + "nui_component_default_pagination_focus_dot.png",
348 IndicatorSize = new Size(64, 8),
349 IndicatorSpacing = 16,
352 // Scrollbar base style
353 theme.AddStyleWithoutClone("Tizen.NUI.Components.Scrollbar", new ScrollbarStyle()
357 TrackColor = new Color(0f, 0f, 0f, 0f),
358 ThumbColor = new Color("#FFFEFE"),
360 //7.0 UX no require image resource.
361 Thumb = new ImageViewStyle()
364 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
366 //ThumbVerticalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_vbar.#.png",
367 //ThumbHorizontalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_hbar.#.png",
370 // LinearLayouter base style
371 theme.AddStyleWithoutClone("Tizen.NUI.Components.LinearLayouter", new ViewStyle()
373 Padding = new Extents(0, 0, 0, 0)
376 // GridLayouter base style
377 theme.AddStyleWithoutClone("Tizen.NUI.Components.GridLayouter", new ViewStyle()
379 Padding = new Extents(0, 0, 0, 0),
382 // ItemsLayouter base style
383 theme.AddStyleWithoutClone("Tizen.NUI.Components.ItemsLayouter", new ViewStyle()
385 Padding = new Extents(0, 0, 0, 0),
388 // RecyclerViewItem base style
389 theme.AddStyleWithoutClone("Tizen.NUI.Components.RecyclerViewItem", new RecyclerViewItemStyle()
391 BackgroundColor = new Selector<Color>()
393 Normal = new Color(1, 1, 1, 1),
394 Pressed = new Color(0.85f, 0.85f, 0.85f, 1),
395 Disabled = new Color(0.70f, 0.70f, 0.70f, 1),
396 Selected = new Color(0.701f, 0.898f, 0.937f, 1),
400 // DefaultLinearItem base style
401 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultLinearItem", new DefaultLinearItemStyle()
404 Padding = new Extents(16, 16, 0, 0),
405 Margin = new Extents(0, 0, 0, 0),
406 Label = new TextLabelStyle()
410 FontFamily = "SamsungOneUI600",
411 TextColor = new Selector<Color>()
413 Normal = new Color("#090E21"),
414 Pressed = new Color("#FF6200"),
415 Disabled = new Color("#CACACA"),
416 Selected = new Color("#FF6200"),
418 ThemeChangeSensitive = false
420 SubLabel = new TextLabelStyle()
424 FontFamily = "SamsungOneUI400",
425 TextColor = new Selector<Color>()
427 Normal = new Color("#090E21"),
428 Pressed = new Color("#FF6200"),
429 Disabled = new Color("#CACACA"),
430 Selected = new Color("#FF6200"),
432 ThemeChangeSensitive = false
434 Icon = new ViewStyle()
436 Margin = new Extents(0, 16, 0, 0)
438 Extra = new ViewStyle()
440 Margin = new Extents(16, 0, 0, 0)
444 // DefaultGridItem base style
445 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultGridItem", new DefaultGridItemStyle()
447 ClippingMode = ClippingModeType.ClipChildren,
448 Padding = new Extents(0, 0, 0, 0),
449 Margin = new Extents(5, 5, 5, 5),
450 CornerRadius = 12.0f,
451 BackgroundColor = new Selector<Color>()
453 Normal = new Color("#FAFAFA"),
454 Pressed = new Color(1f, 0.38f, 0, 0.2f),
455 Disabled = new Color("#FAFAFA"),
456 Selected = new Color(1f, 0.38f, 0, 0.2f),
458 Image = new ImageViewStyle()
460 //FIXME: Clip mode is not working on CornerRadius.
461 CornerRadius = 12.0f,
462 ClippingMode = ClippingModeType.ClipChildren,
464 Label = new TextLabelStyle()
468 FontFamily = "SamsungOneUI400",
469 LineWrapMode = LineWrapMode.Character,
470 TextColor = new Selector<Color>()
472 Normal = new Color("#090E21"),
473 Pressed = new Color("#FF6200"),
474 Disabled = new Color("#CACACA"),
475 Selected = new Color("#FF6200"),
477 ThemeChangeSensitive = false
479 Badge = new ViewStyle()
481 Margin = new Extents(0, 0, 0, 0),
483 BoxShadow = new Shadow(12.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 4.0f)),
486 // DefaultTitleItem base style
487 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultTitleItem", new DefaultTitleItemStyle()
490 Padding = new Extents(20, 20, 0, 0),
491 Margin = new Extents(0, 0, 0, 0),
492 BackgroundColor = Color.Transparent,
493 Label = new TextLabelStyle()
497 FontFamily = "SamsungOneUI400",
498 TextColor = new Color("#090E217F"),
499 ThemeChangeSensitive = false
501 Icon = new ViewStyle()
503 Margin = new Extents(24, 0, 0, 0)
505 Seperator = new ViewStyle()
507 Margin = new Extents(0, 0, 0, 0),
508 BackgroundColor = new Color(0, 0, 0, 0),
512 // ContentPage base style
513 theme.AddStyleWithoutClone("Tizen.NUI.Components.ContentPage", new ViewStyle()
515 BackgroundColor = new Color("#FAFAFA"),
516 CornerRadius = new Vector4(24.0f, 24.0f, 24.0f ,24.0f),
517 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
518 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
522 theme.AddStyleWithoutClone("Tizen.NUI.Components.AppBar", new AppBarStyle()
524 Size = new Size(-1, 64),
525 BackgroundColor = Color.Transparent,
526 BackButton = new ButtonStyle()
528 Size = new Size(48, 48),
530 BackgroundColor = Color.Transparent,
531 Icon = new ImageViewStyle()
533 Size = new Size(48, 48),
534 ResourceUrl = FrameworkInformation.ResourcePath + "nui_component_default_back_button.png",
535 Color = new Selector<Color>()
537 Normal = new Color("#17234D"),
538 Focused = new Color("#17234D"),
539 Pressed = new Color("#FF6200"),
540 Disabled = new Color("#CACACA"),
543 ThemeChangeSensitive = false
545 TitleTextLabel = new TextLabelStyle()
548 VerticalAlignment = VerticalAlignment.Center,
549 TextColor = new Selector<Color>()
551 Normal = new Color("#17234D"),
553 ThemeChangeSensitive = false
555 ActionView = new ViewStyle()
557 Size = new Size(48, 64),
559 BackgroundColor = Color.Transparent,
561 ActionButton = new ButtonStyle()
563 Size = new Size(-2, 64),
565 BackgroundColor = Color.Transparent,
566 Text = new TextLabelStyle()
569 TextColor = new Selector<Color>()
571 Normal = new Color("#FF6200"),
572 Focused = new Color("#FF6200"),
573 Pressed = new Color("#D95300"),
574 Disabled = new Color("#CACACA"),
577 Icon = new ImageViewStyle()
579 Size = new Size(48, 48),
580 Color = new Selector<Color>()
582 Normal = new Color("#17234D"),
583 Focused = new Color("#17234D"),
584 Pressed = new Color("#FF6200"),
585 Disabled = new Color("#CACACA"),
588 ThemeChangeSensitive = false,
590 Padding = new Extents(16, 16, 0, 0),
591 NavigationPadding = new Extents(0, 8, 0, 0),
592 ActionPadding = new Extents(16, 0, 0, 0),
593 ActionCellPadding = new Size2D(16, 0),
597 theme.AddStyleWithoutClone("Tizen.NUI.Components.Picker", new PickerStyle()
600 MinimumSize = new Size(80, -1),
601 ItemTextLabel = new TextLabelStyle()
604 VerticalAlignment = VerticalAlignment.Center,
605 HorizontalAlignment = HorizontalAlignment.Center,
606 Size = new Size(0, 44),
607 TextColor = new Selector<Color>()
609 Normal = new Color(0.035f, 0.055f, 0.123f, 1.0f),
611 BackgroundColor = new Color("#FAFAFA"),
613 StartScrollOffset = new Size(0, 0),
617 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabBar", new ViewStyle()
619 Size = new Size(-1, -2),
620 Margin = new Extents(16, 16, 0, 0),
621 Padding = new Extents(14, 14, 0, 0),
622 CornerRadius = new Vector4(12.0f, 12.0f, 12.0f, 12.0f),
623 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
624 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
625 BackgroundColor = new Color("#FAFAFA"),
628 // TabButton base style
629 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabButton", new TabButtonStyle()
631 Size = new Size(-1, 72),
632 SizeWithIcon = new Size(-1, 116),
633 SizeWithIconOnly = new Size(-1, 64),
634 MinimumSize = new Size(80, 64),
635 Padding = new Extents(24, 24, 16, 16),
636 ItemSpacing = new Size2D(10, 10),
638 IconSizeWithIconOnly = new Size(32, 32),
639 TextSizeWithIcon = 16.0f,
640 BackgroundColor = new Selector<Color>()
642 Normal = new Color("#FAFAFA"),
643 Selected = new Color("#FFE0CC"),
644 Pressed = new Color("#FFCAA8"),
645 Focused = new Color("#FAFAFA"),
646 Disabled = new Color("#FAFAFA"),
648 Text = new TextLabelStyle()
651 Size = new Size(-2, -2),
652 TextColor = new Selector<Color>()
654 Normal = new Color("#090E21"),
655 Selected = new Color("#FF6200"),
656 Pressed = new Color("#FF6200"),
657 Focused = new Color("#FF6200"),
658 Disabled = new Color("#CACACA"),
660 ThemeChangeSensitive = false,
662 Icon = new ImageViewStyle()
664 Size = new Size(48, 48),
665 Color = new Selector<Color>()
667 Normal = new Color("#090E21"),
668 Selected = new Color("#FF6200"),
669 Pressed = new Color("#FF6200"),
670 Focused = new Color("#FF6200"),
671 Disabled = new Color("#CACACA"),
676 // NotificationToast base style
677 theme.AddStyleWithoutClone("NotificationToast", new TextLabelStyle()
679 BackgroundColor = new Color("#FAFAFA"),
680 CornerRadius = 12.0f,
681 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
682 TextColor = new Color("#090E21"),
684 WidthResizePolicy = ResizePolicyType.UseNaturalSize,
685 HeightResizePolicy = ResizePolicyType.UseNaturalSize,
686 PositionUsesPivotPoint = true,
687 HorizontalAlignment = HorizontalAlignment.Center,
688 VerticalAlignment = VerticalAlignment.Center,
689 Padding = new Extents(16, 16, 16, 16),
693 // AlertDialog base style
694 theme.AddStyleWithoutClone("Tizen.NUI.Components.AlertDialog", new AlertDialogStyle()
696 Size = new Size(-2, -2),
697 Padding = new Extents(32, 32, 32, 32),
698 ItemSpacing = new Size2D(0, 32),
699 BackgroundColor = new Color("#FAFAFA"),
700 CornerRadius = 12.0f,
701 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
702 TitleTextLabel = new TextLabelStyle()
704 Size = new Size(626, -2),
706 HorizontalAlignment = HorizontalAlignment.Center,
707 VerticalAlignment = VerticalAlignment.Center,
708 TextColor = new Color("#090E21"),
709 ThemeChangeSensitive = false,
711 MessageTextLabel = new TextLabelStyle()
713 Size = new Size(626, -2),
716 HorizontalAlignment = HorizontalAlignment.Center,
717 VerticalAlignment = VerticalAlignment.Center,
718 TextColor = new Color("#090E21"),
719 ThemeChangeSensitive = false,
721 ActionContent = new ViewStyle()
723 Size = new Size(626, -2),
727 // TimePicker base style
728 theme.AddStyleWithoutClone("Tizen.NUI.Components.TimePicker", new TimePickerStyle()
730 CellPadding = new Size(12, 220),
732 Pickers = new PickerStyle()
734 Size = new Size(80, 220),
735 ItemTextLabel = new TextLabelStyle()
738 VerticalAlignment = VerticalAlignment.Center,
739 HorizontalAlignment = HorizontalAlignment.Center,
740 Size = new Size(0, 44),
741 TextColor = new Selector<Color>()
743 Normal = new Color(0.035f, 0.055f, 0.123f, 1.0f),
745 BackgroundColor = new Color("#FAFAFA"),
746 ThemeChangeSensitive = false
748 StartScrollOffset = new Size2D(0, 0),
752 // DatePicker base style
753 theme.AddStyleWithoutClone("Tizen.NUI.Components.DatePicker", new DatePickerStyle()
755 CellPadding = new Size(12, 220),
757 Pickers = new PickerStyle()
759 Size = new Size(80, 220),
760 ItemTextLabel = new TextLabelStyle()
763 VerticalAlignment = VerticalAlignment.Center,
764 HorizontalAlignment = HorizontalAlignment.Center,
765 Size = new Size(0, 44),
766 TextColor = new Selector<Color>()
768 Normal = new Color(0.035f, 0.055f, 0.123f, 1.0f),
770 BackgroundColor = new Color("#FAFAFA"),
771 ThemeChangeSensitive = false
773 StartScrollOffset = new Size2D(0, 0),
778 theme.AddStyleWithoutClone("Tizen.NUI.Components.Menu", new MenuStyle()
780 BackgroundColor = Color.Transparent,
781 Content = new ViewStyle()
783 BackgroundColor = new Color("#FFFEFE"),
784 CornerRadius = 24.0f,
785 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
786 // FIXME: ScrollableBase with LinearLayout's Padding.Start is applied both Start and End.
787 // ScrollableBase with LinearLayout's Padding.Top is applied both Top and Bottom.
788 Padding = new Extents(32, 0, 16, 0),
792 // MenuItem base style
793 theme.AddStyleWithoutClone("Tizen.NUI.Components.MenuItem", new ButtonStyle()
795 Size = new Size(324, -2),
796 MinimumSize = new Size2D(0, 64),
797 BackgroundColor = new Color("#FFFEFE"),
799 // FIXME: ClippingModeType.ClipChildren cannot support anti-aliasing
800 // So not to show left bottom corner of MenuItem, MenuItem.Padding.Start is 0 and Menu.Content.Padding.Start is 32.
801 // (instead of MenuItem.Padding.Start 16 and Menu.Content.Padding.Start is 16)
802 Padding = new Extents(0, 0, 24, 24),
803 Text = new TextLabelStyle()
807 HorizontalAlignment = HorizontalAlignment.Begin,
808 VerticalAlignment = VerticalAlignment.Center,
809 TextColor = new Selector<Color>()
811 Normal = new Color("#090E21"),
812 Focused = new Color("#FF6200"),
813 Pressed = new Color("#FF6200"),
814 Disabled = new Color("#CACACA"),
815 Selected = new Color("#FF6200"),
817 ThemeChangeSensitive = false
819 Icon = new ImageViewStyle()
821 Color = new Selector<Color>()
823 Normal = new Color("#090E21"),
824 Focused = new Color("#FF6200"),
825 Pressed = new Color("#FF6200"),
826 Disabled = new Color("#CACACA"),
827 Selected = new Color("#FF6200"),
832 // AlertDialog base style
833 theme.AddStyleWithoutClone("Tizen.NUI.Components.DialogPage.Scrim", new ViewStyle()
835 BackgroundColor = new Color("#090E21"),
844 #endif // !PROFILE_WEARABLE