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 // CheckBox base style
63 theme.AddStyleWithoutClone("Tizen.NUI.Components.CheckBox", new ButtonStyle()
65 ItemSpacing = new Size2D(16, 16),
66 ItemHorizontalAlignment = HorizontalAlignment.Center,
67 ItemVerticalAlignment = VerticalAlignment.Center,
68 Icon = new ImageViewStyle()
70 Size = new Size(32, 32),
71 ResourceUrl = new Selector<string>()
73 Normal = FrameworkInformation.ResourcePath + "IoT_check_off.png",
74 Pressed = FrameworkInformation.ResourcePath + "IoT_check_off_p.png",
75 Disabled = FrameworkInformation.ResourcePath + "IoT_check_off_d.png",
76 Focused = FrameworkInformation.ResourcePath + "IoT_check_off_f.png",
77 Selected = FrameworkInformation.ResourcePath + "IoT_check_on.png",
78 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_check_on_p.png",
79 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_check_on_f.png",
80 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_check_on_d.png",
83 Text = new TextLabelStyle()
85 TextColor = new Color("#090E21"),
91 theme.AddStyleWithoutClone("Tizen.NUI.Components.Popup", new PopupStyle()
93 Size = new Size(500, 280),
94 BackgroundColor = new Color(0.9f, 0.9f, 0.9f, 1),
95 ImageShadow = new ImageShadow()
97 Url = FrameworkInformation.ResourcePath + "nui_component_default_popup_shadow.png",
98 Border = new Rectangle(24, 24, 24, 24),
99 Extents = new Vector2(48, 48)
101 Title = new TextLabelStyle()
104 Padding = new Extents(20, 20, 20, 20),
106 Buttons = new ButtonStyle()
108 Size = new Size(0, 80),
110 BackgroundColor = new Selector<Color>()
112 Normal = new Color(1, 1, 1, 1),
113 Pressed = new Color(1, 1, 1, 0.5f),
115 Overlay = new ImageViewStyle()
117 BackgroundColor = new Selector<Color>()
119 Pressed = new Color(0, 0, 0, 0.1f),
120 Other = new Color(1, 1, 1, 0.1f),
123 Text = new TextLabelStyle()
125 TextColor = new Color(0.05f, 0.63f, 0.9f, 1),
130 // Progress base style
131 theme.AddStyleWithoutClone("Tizen.NUI.Components.Progress", new ProgressStyle()
133 Size = new Size(508, 16),
134 Track = new ImageViewStyle()
137 BackgroundColor = new Selector<Color>()
139 Normal = new Color(0.82f, 0.31f, 0.0f, 0.1f),
140 Disabled = new Color(0.82f, 0.31f, 0.0f, 0.1f),
143 Buffer = new ImageViewStyle()
146 BackgroundColor = new Color(0.82f, 0.31f, 0.0f, 0.1f),
148 Progress = new ImageViewStyle()
151 BackgroundColor = new Color("#D25000"),
153 IndeterminateImageUrl = FrameworkInformation.ResourcePath + "IoT_progress_indeterminate.png",
156 // RadioButton base style
157 theme.AddStyleWithoutClone("Tizen.NUI.Components.RadioButton", new ButtonStyle()
159 ItemSpacing = new Size2D(16, 16),
160 ItemHorizontalAlignment = HorizontalAlignment.Center,
161 ItemVerticalAlignment = VerticalAlignment.Center,
162 Icon = new ImageViewStyle()
164 Size = new Size(32, 32),
165 ResourceUrl = new Selector<string>()
167 Normal = FrameworkInformation.ResourcePath + "IoT_radiobutton_off.png",
168 Pressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_p.png",
169 Disabled = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_d.png",
170 Focused = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_f.png",
171 Selected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on.png",
172 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_p.png",
173 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_f.png",
174 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_d.png",
177 Text = new TextLabelStyle()
179 TextColor = new Color("#090E21"),
185 theme.AddStyleWithoutClone("Tizen.NUI.Components.Slider", new SliderStyle()
187 Size = new Size(850, 50),
189 Track = new ImageViewStyle()
191 Size = new Size(800, 8),
193 BackgroundColor = new Selector<Color>()
195 Normal = new Color(1.0f, 0.37f, 0.0f, 0.1f),
196 Disabled = new Color(1.0f, 0.37f, 0.0f, 0.1f),
199 Progress = new ImageViewStyle()
201 Size = new Size(800, 8),
203 BackgroundColor = new Selector<Color>()
205 Normal = new Color("#FF6200"),
206 Disabled = new Color("#CACACA"),
209 Thumb = new ImageViewStyle()
211 Size = new Size(40, 40),
212 ResourceUrl = new Selector<string>()
214 Normal = FrameworkInformation.ResourcePath + "IoT_slider_handler_normal.png",
215 Pressed = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
216 Focused = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
217 Disabled = FrameworkInformation.ResourcePath + "IoT_slider_handler_disabled.png",
220 ValueIndicatorImage = new ImageViewStyle()
222 Size = new Size(16, 24),
223 BorderlineWidth = 0.5f,
224 BorderlineColor = new Color("#FF6200"),
225 BackgroundColor = new Color(0.0f, 0.04f, 0.16f, 1.0f),
230 theme.AddStyleWithoutClone("Tizen.NUI.Components.Switch", new SwitchStyle()
232 ItemSpacing = new Size2D(16, 16),
233 ItemHorizontalAlignment = HorizontalAlignment.Begin,
234 ItemVerticalAlignment = VerticalAlignment.Center,
235 Track = new ImageViewStyle()
237 Size = new Size(84, 44),
238 ResourceUrl = new Selector<string>()
240 Normal = FrameworkInformation.ResourcePath + "IoT_switch_track_off.png",
241 Pressed = FrameworkInformation.ResourcePath + "IoT_switch_track_off_p.png",
242 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_track_off_d.png",
243 Focused = FrameworkInformation.ResourcePath + "IoT_switch_track_off_f.png",
244 Selected = FrameworkInformation.ResourcePath + "IoT_switch_track_on.png",
245 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_track_on_p.png",
246 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_track_on_f.png",
247 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_switch_track_on_d.png",
250 Thumb = new ImageViewStyle()
252 Size = new Size(44, 44),
253 ResourceUrl = new Selector<string>()
255 Normal = FrameworkInformation.ResourcePath + "IoT_switch_thumb.png",
256 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_thumb_d.png",
257 Selected = FrameworkInformation.ResourcePath + "IoT_switch_thumb_s.png",
258 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sp.png",
259 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sf.png",
262 Text = new TextLabelStyle()
264 TextColor = new Color("#090E21"),
269 // Loading base style
270 theme.AddStyleWithoutClone("Tizen.NUI.Components.Loading", new LoadingStyle()
272 LoadingSize = new Size(200, 200),
275 // Pagination base style
276 theme.AddStyleWithoutClone("Tizen.NUI.Components.Pagination", new PaginationStyle()
278 IndicatorImageUrl = new Selector<string>()
280 Normal = FrameworkInformation.ResourcePath + "nui_component_default_pagination_normal_dot.png",
281 Selected = FrameworkInformation.ResourcePath + "nui_component_default_pagination_focus_dot.png",
283 IndicatorSize = new Size(10, 10),
286 // Scrollbar base style
287 theme.AddStyleWithoutClone("Tizen.NUI.Components.Scrollbar", new ScrollbarStyle()
291 TrackColor = new Color(0f, 0f, 0f, 0f),
292 ThumbColor = new Color("#FFFEFE"),
294 //7.0 UX no require image resource.
295 Thumb = new ImageViewStyle()
298 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
300 //ThumbVerticalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_vbar.#.png",
301 //ThumbHorizontalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_hbar.#.png",
304 // LinearLayouter base style
305 theme.AddStyleWithoutClone("Tizen.NUI.Components.LinearLayouter", new ViewStyle()
307 Padding = new Extents(0, 0, 0, 0)
310 // GridLayouter base style
311 theme.AddStyleWithoutClone("Tizen.NUI.Components.GridLayouter", new ViewStyle()
313 Padding = new Extents(0, 0, 0, 0),
316 // ItemsLayouter base style
317 theme.AddStyleWithoutClone("Tizen.NUI.Components.ItemsLayouter", new ViewStyle()
319 Padding = new Extents(0, 0, 0, 0),
322 // RecyclerViewItem base style
323 theme.AddStyleWithoutClone("Tizen.NUI.Components.RecyclerViewItem", new RecyclerViewItemStyle()
325 BackgroundColor = new Selector<Color>()
327 Normal = new Color(1, 1, 1, 1),
328 Pressed = new Color(0.85f, 0.85f, 0.85f, 1),
329 Disabled = new Color(0.70f, 0.70f, 0.70f, 1),
330 Selected = new Color(0.701f, 0.898f, 0.937f, 1),
334 // DefaultLinearItem base style
335 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultLinearItem", new DefaultLinearItemStyle()
338 Padding = new Extents(20, 20, 0, 0),
339 Margin = new Extents(0, 0, 0, 0),
340 Label = new TextLabelStyle()
344 FontFamily = "SamsungOneUI600",
345 TextColor = new Selector<Color>()
347 Normal = new Color("#090E21"),
348 Pressed = new Color("#FF6200"),
349 Disabled = new Color("#CACACA"),
350 Selected = new Color("#FF6200"),
352 ThemeChangeSensitive = false
354 SubLabel = new TextLabelStyle()
358 FontFamily = "SamsungOneUI400",
359 TextColor = new Selector<Color>()
361 Normal = new Color("#090E21"),
362 Pressed = new Color("#FF6200"),
363 Disabled = new Color("#CACACA"),
364 Selected = new Color("#FF6200"),
366 ThemeChangeSensitive = false
368 Icon = new ViewStyle()
370 Margin = new Extents(0, 24, 0, 0)
372 Extra = new ViewStyle()
374 Margin = new Extents(24, 0, 0, 0)
378 // DefaultGridItem base style
379 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultGridItem", new DefaultGridItemStyle()
381 ClippingMode = ClippingModeType.ClipChildren,
382 Padding = new Extents(0, 0, 0, 0),
383 Margin = new Extents(5, 5, 5, 5),
384 CornerRadius = 12.0f,
385 BackgroundColor = new Selector<Color>()
387 Normal = new Color("#FAFAFA"),
388 Pressed = new Color(1f, 0.38f, 0, 0.2f),
389 Disabled = new Color("#FAFAFA"),
390 Selected = new Color(1f, 0.38f, 0, 0.2f),
392 Image = new ImageViewStyle()
394 //FIXME: Clip mode is not working on CornerRadius.
395 CornerRadius = 12.0f,
396 ClippingMode = ClippingModeType.ClipChildren,
398 Label = new TextLabelStyle()
402 FontFamily = "SamsungOneUI400",
403 LineWrapMode = LineWrapMode.Character,
404 TextColor = new Selector<Color>()
406 Normal = new Color("#090E21"),
407 Pressed = new Color("#FF6200"),
408 Disabled = new Color("#CACACA"),
409 Selected = new Color("#FF6200"),
411 ThemeChangeSensitive = false
413 Badge = new ViewStyle()
415 Margin = new Extents(0, 0, 0, 0),
417 BoxShadow = new Shadow(12.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 4.0f)),
420 // DefaultTitleItem base style
421 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultTitleItem", new DefaultTitleItemStyle()
424 Padding = new Extents(20, 20, 0, 0),
425 Margin = new Extents(0, 0, 0, 0),
426 BackgroundColor = Color.Transparent,
427 Label = new TextLabelStyle()
431 FontFamily = "SamsungOneUI400",
432 TextColor = new Color("#090E217F"),
433 ThemeChangeSensitive = false
435 Icon = new ViewStyle()
437 Margin = new Extents(24, 0, 0, 0)
439 Seperator = new ViewStyle()
441 Margin = new Extents(0, 0, 0, 0),
442 BackgroundColor = new Color(0, 0, 0, 0),
446 // ContentPage base style
447 theme.AddStyleWithoutClone("Tizen.NUI.Components.ContentPage", new ViewStyle()
449 BackgroundColor = new Color("#FAFAFA"),
450 CornerRadius = new Vector4(24.0f, 24.0f, 24.0f ,24.0f),
451 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
452 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
456 theme.AddStyleWithoutClone("Tizen.NUI.Components.AppBar", new AppBarStyle()
458 Size = new Size(-1, 64),
459 BackgroundColor = Color.Transparent,
460 BackButton = new ButtonStyle()
462 Size = new Size(48, 48),
464 BackgroundColor = Color.Transparent,
465 Icon = new ImageViewStyle()
467 Size = new Size(48, 48),
468 ResourceUrl = FrameworkInformation.ResourcePath + "nui_component_default_back_button.png",
469 Color = new Selector<Color>()
471 Normal = new Color("#17234D"),
472 Focused = new Color("#17234D"),
473 Pressed = new Color("#FF6200"),
474 Disabled = new Color("#CACACA"),
477 ThemeChangeSensitive = false
479 TitleTextLabel = new TextLabelStyle()
482 VerticalAlignment = VerticalAlignment.Center,
483 TextColor = new Selector<Color>()
485 Normal = new Color("#17234D"),
487 ThemeChangeSensitive = false
489 ActionView = new ViewStyle()
491 Size = new Size(48, 64),
493 BackgroundColor = Color.Transparent,
495 ActionButton = new ButtonStyle()
497 Size = new Size(-2, 64),
499 BackgroundColor = Color.Transparent,
500 Text = new TextLabelStyle()
503 TextColor = new Selector<Color>()
505 Normal = new Color("#FF6200"),
506 Focused = new Color("#FF6200"),
507 Pressed = new Color("#D95300"),
508 Disabled = new Color("#CACACA"),
511 Icon = new ImageViewStyle()
513 Size = new Size(48, 48),
514 Color = new Selector<Color>()
516 Normal = new Color("#17234D"),
517 Focused = new Color("#17234D"),
518 Pressed = new Color("#FF6200"),
519 Disabled = new Color("#CACACA"),
522 ThemeChangeSensitive = false,
524 Padding = new Extents(16, 16, 0, 0),
525 NavigationPadding = new Extents(0, 8, 0, 0),
526 ActionPadding = new Extents(16, 0, 0, 0),
527 ActionCellPadding = new Size2D(16, 0),
531 theme.AddStyleWithoutClone("Tizen.NUI.Components.Picker", new PickerStyle()
533 Size = new Size(160, 339),
534 ItemTextLabel = new TextLabelStyle()
536 //FIXME: Should be check PointSize. given size from UX is too large.
538 VerticalAlignment = VerticalAlignment.Center,
539 HorizontalAlignment = HorizontalAlignment.Center,
540 Size = new Size(0,72),
541 TextColor = new Selector<Color>()
543 Normal = new Color("#000C2B"),
545 BackgroundColor = Color.White,
547 Divider = new ViewStyle()
550 WidthResizePolicy = ResizePolicyType.FillToParent,
551 Position = new Position(0, 132),
552 BackgroundColor = new Color("#0A0E4A"),
554 StartScrollOffset = new Size(0, 12),
558 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabBar", new ViewStyle()
560 Size = new Size(-1, -2),
561 Margin = new Extents(16, 16, 0, 0),
562 Padding = new Extents(14, 14, 0, 0),
563 CornerRadius = new Vector4(12.0f, 12.0f, 12.0f, 12.0f),
564 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
565 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
566 BackgroundColor = new Color("#FAFAFA"),
569 // TabButton base style
570 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabButton", new TabButtonStyle()
572 Size = new Size(-1, 116),
573 SizeWithTextOnly = new Size(-1, 72),
574 SizeWithIconOnly = new Size(-1, 64),
575 MinimumSize = new Size(100, -1),
576 Padding = new Extents(24, 24, 18, 16),
577 PaddingWithTextOnly = new Extents(24, 24, 20, 20),
578 PaddingWithIconOnly = new Extents(24, 24, 16, 16),
579 ItemSpacing = new Size2D(0, 10),
581 IconSizeWithIconOnly = new Size(32, 32),
582 BackgroundColor = new Selector<Color>()
584 Normal = new Color("#FAFAFA"),
585 Selected = new Color("#FFE0CC"),
586 Pressed = new Color("#FFCAA8"),
587 Focused = new Color("#FAFAFA"),
588 Disabled = new Color("#FAFAFA"),
590 Text = new TextLabelStyle()
593 Size = new Size(-2, -2),
594 TextColor = new Selector<Color>()
596 Normal = new Color("#090E21"),
597 Selected = new Color("#FF6200"),
598 Pressed = new Color("#FF6200"),
599 Focused = new Color("#FF6200"),
600 Disabled = new Color("#CACACA"),
602 ThemeChangeSensitive = false,
604 Icon = new ImageViewStyle()
606 Size = new Size(48, 48),
607 Color = new Selector<Color>()
609 Normal = new Color("#090E21"),
610 Selected = new Color("#FF6200"),
611 Pressed = new Color("#FF6200"),
612 Focused = new Color("#FF6200"),
613 Disabled = new Color("#CACACA"),
618 // NotificationToast base style
619 theme.AddStyleWithoutClone("NotificationToast", new TextLabelStyle()
621 BackgroundColor = new Color("#FAFAFA"),
622 CornerRadius = 12.0f,
623 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
624 TextColor = new Color("#090E21"),
626 WidthResizePolicy = ResizePolicyType.UseNaturalSize,
627 HeightResizePolicy = ResizePolicyType.UseNaturalSize,
628 PositionUsesPivotPoint = true,
629 HorizontalAlignment = HorizontalAlignment.Center,
630 VerticalAlignment = VerticalAlignment.Center,
631 Padding = new Extents(16, 16, 16, 16),
635 // AlertDialog base style
636 theme.AddStyleWithoutClone("Tizen.NUI.Components.AlertDialog", new AlertDialogStyle()
638 Size = new Size(-2, -2),
639 Padding = new Extents(32, 32, 32, 32),
640 ItemSpacing = new Size2D(0, 32),
641 BackgroundColor = new Color("#FAFAFA"),
642 CornerRadius = 12.0f,
643 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
644 TitleTextLabel = new TextLabelStyle()
646 Size = new Size(626, -2),
648 HorizontalAlignment = HorizontalAlignment.Center,
649 VerticalAlignment = VerticalAlignment.Center,
650 TextColor = new Color("#090E21"),
651 ThemeChangeSensitive = false,
653 MessageTextLabel = new TextLabelStyle()
655 Size = new Size(626, -2),
658 HorizontalAlignment = HorizontalAlignment.Center,
659 VerticalAlignment = VerticalAlignment.Center,
660 TextColor = new Color("#090E21"),
661 ThemeChangeSensitive = false,
663 ActionContent = new ViewStyle()
665 Size = new Size(626, -2),
669 // TimePicker base style
670 theme.AddStyleWithoutClone("Tizen.NUI.Components.TimePicker", new TimePickerStyle()
672 CellPadding = new Size(50, 339),
674 Pickers = new PickerStyle()
676 Size = new Size(160, 339),
677 ItemTextLabel = new TextLabelStyle()
679 //FIXME: Should be check PointSize. given size from UX is too large.
681 VerticalAlignment = VerticalAlignment.Center,
682 HorizontalAlignment = HorizontalAlignment.Center,
683 Size = new Size(0,72),
684 TextColor = new Color("#000C2B"),
685 BackgroundColor = Color.White,
686 ThemeChangeSensitive = false
688 Divider = new ViewStyle()
691 WidthResizePolicy = ResizePolicyType.FillToParent,
692 Position = new Position(0, 132),
693 BackgroundColor = new Color("#0A0E4A"),
695 StartScrollOffset = new Size2D(0, 12),
699 // DatePicker base style
700 theme.AddStyleWithoutClone("Tizen.NUI.Components.DatePicker", new DatePickerStyle()
702 CellPadding = new Size(50, 339),
704 Pickers = new PickerStyle()
706 Size = new Size(160, 339),
707 ItemTextLabel = new TextLabelStyle()
709 //FIXME: Should be check PointSize. given size from UX is too large.
711 VerticalAlignment = VerticalAlignment.Center,
712 HorizontalAlignment = HorizontalAlignment.Center,
713 Size = new Size(0,72),
714 TextColor = new Color("#000C2B"),
715 BackgroundColor = Color.White,
716 ThemeChangeSensitive = false
718 Divider = new ViewStyle()
721 WidthResizePolicy = ResizePolicyType.FillToParent,
722 Position = new Position(0, 132),
723 BackgroundColor = new Color("#0A0E4A"),
725 StartScrollOffset = new Size2D(0, 12),
730 theme.AddStyleWithoutClone("Tizen.NUI.Components.Menu", new MenuStyle()
732 Content = new ViewStyle()
734 BackgroundColor = new Color("#FFFEFE"),
735 CornerRadius = 24.0f,
736 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
737 // FIXME: ScrollableBase with LinearLayout's Padding.Start is applied both Start and End.
738 // ScrollableBase with LinearLayout's Padding.Top is applied both Top and Bottom.
739 Padding = new Extents(32, 0, 16, 0),
743 // MenuItem base style
744 theme.AddStyleWithoutClone("Tizen.NUI.Components.MenuItem", new ButtonStyle()
746 Size = new Size(324, -2),
747 MinimumSize = new Size2D(0, 64),
748 BackgroundColor = new Color("#FFFEFE"),
750 // FIXME: ClippingModeType.ClipChildren cannot support anti-aliasing
751 // So not to show left bottom corner of MenuItem, MenuItem.Padding.Start is 0 and Menu.Content.Padding.Start is 32.
752 // (instead of MenuItem.Padding.Start 16 and Menu.Content.Padding.Start is 16)
753 Padding = new Extents(0, 0, 24, 24),
754 Text = new TextLabelStyle()
758 HorizontalAlignment = HorizontalAlignment.Begin,
759 VerticalAlignment = VerticalAlignment.Center,
760 TextColor = new Selector<Color>()
762 Normal = new Color("#090E21"),
763 Focused = new Color("#FF6200"),
764 Pressed = new Color("#FF6200"),
765 Disabled = new Color("#CACACA"),
766 Selected = new Color("#FF6200"),
768 ThemeChangeSensitive = false
770 Icon = new ImageViewStyle()
772 Size = new Size(32, 32),
773 Color = new Selector<Color>()
775 Normal = new Color("#090E21"),
776 Focused = new Color("#FF6200"),
777 Pressed = new Color("#FF6200"),
778 Disabled = new Color("#CACACA"),
779 Selected = new Color("#FF6200"),
784 // AlertDialog base style
785 theme.AddStyleWithoutClone("Tizen.NUI.Components.DialogPage.Scrim", new ViewStyle()
787 BackgroundColor = new Color("#090E21"),
796 #endif // !PROFILE_WEARABLE