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(339, 96),
44 ItemHorizontalAlignment = HorizontalAlignment.Center,
45 ItemVerticalAlignment = VerticalAlignment.Center,
46 BackgroundColor = new Selector<Color>()
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),
54 Text = new TextLabelStyle()
56 TextColor = Color.White,
61 // CheckBox base style
62 theme.AddStyleWithoutClone("Tizen.NUI.Components.CheckBox", new ButtonStyle()
64 ItemSpacing = new Size2D(32, 32),
65 ItemHorizontalAlignment = HorizontalAlignment.Begin,
66 ItemVerticalAlignment = VerticalAlignment.Center,
67 Icon = new ImageViewStyle()
69 Size = new Size(36, 36),
70 ResourceUrl = new Selector<string>()
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",
82 Text = new TextLabelStyle()
84 TextColor = new Color("#001447"),
90 theme.AddStyleWithoutClone("Tizen.NUI.Components.Popup", new PopupStyle()
92 Size = new Size(500, 280),
93 BackgroundColor = new Color(0.9f, 0.9f, 0.9f, 1),
94 ImageShadow = new ImageShadow()
96 Url = FrameworkInformation.ResourcePath + "nui_component_default_popup_shadow.png",
97 Border = new Rectangle(24, 24, 24, 24),
98 Extents = new Vector2(48, 48)
100 Title = new TextLabelStyle()
103 Padding = new Extents(20, 20, 20, 20),
105 Buttons = new ButtonStyle()
107 Size = new Size(0, 80),
109 BackgroundColor = new Selector<Color>()
111 Normal = new Color(1, 1, 1, 1),
112 Pressed = new Color(1, 1, 1, 0.5f),
114 Overlay = new ImageViewStyle()
116 BackgroundColor = new Selector<Color>()
118 Pressed = new Color(0, 0, 0, 0.1f),
119 Other = new Color(1, 1, 1, 0.1f),
122 Text = new TextLabelStyle()
124 TextColor = new Color(0.05f, 0.63f, 0.9f, 1),
129 // Progress base style
130 theme.AddStyleWithoutClone("Tizen.NUI.Components.Progress", new ProgressStyle()
132 Size = new Size(508, 16),
133 Track = new ImageViewStyle()
136 BackgroundColor = new Selector<Color>()
138 Normal = new Color(0.82f, 0.31f, 0.0f, 0.1f),
139 Disabled = new Color(0.82f, 0.31f, 0.0f, 0.1f),
142 Buffer = new ImageViewStyle()
145 BackgroundColor = new Color(0.82f, 0.31f, 0.0f, 0.1f),
147 Progress = new ImageViewStyle()
150 BackgroundColor = new Color("#D25000"),
152 IndeterminateImageUrl = FrameworkInformation.ResourcePath + "IoT_progress_indeterminate.png",
155 // RadioButton base style
156 theme.AddStyleWithoutClone("Tizen.NUI.Components.RadioButton", new ButtonStyle()
158 ItemSpacing = new Size2D(32, 32),
159 ItemHorizontalAlignment = HorizontalAlignment.Begin,
160 ItemVerticalAlignment = VerticalAlignment.Center,
161 Icon = new ImageViewStyle()
163 Size = new Size(36, 36),
164 ResourceUrl = new Selector<string>()
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",
176 Text = new TextLabelStyle()
178 TextColor = new Color("#001447"),
184 theme.AddStyleWithoutClone("Tizen.NUI.Components.Slider", new SliderStyle()
186 Size = new Size(850, 50),
188 Track = new ImageViewStyle()
190 Size = new Size(800, 8),
192 BackgroundColor = new Selector<Color>()
194 Normal = new Color(1.0f, 0.37f, 0.0f, 0.1f),
195 Disabled = new Color(1.0f, 0.37f, 0.0f, 0.1f),
198 Progress = new ImageViewStyle()
200 Size = new Size(800, 8),
202 BackgroundColor = new Selector<Color>()
204 Normal = new Color("#FF6200"),
205 Disabled = new Color("#CACACA"),
208 Thumb = new ImageViewStyle()
210 Size = new Size(40, 40),
211 ResourceUrl = new Selector<string>()
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",
219 ValueIndicatorImage = new ImageViewStyle()
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),
229 theme.AddStyleWithoutClone("Tizen.NUI.Components.Switch", new SwitchStyle()
231 ItemSpacing = new Size2D(32, 32),
232 ItemHorizontalAlignment = HorizontalAlignment.Begin,
233 ItemVerticalAlignment = VerticalAlignment.Center,
234 Track = new ImageViewStyle()
236 Size = new Size(84, 44),
237 ResourceUrl = new Selector<string>()
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",
249 Thumb = new ImageViewStyle()
251 Size = new Size(44, 44),
252 ResourceUrl = new Selector<string>()
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",
261 Text = new TextLabelStyle()
263 TextColor = new Color("#001447"),
268 // Loading base style
269 theme.AddStyleWithoutClone("Tizen.NUI.Components.Loading", new LoadingStyle()
271 LoadingSize = new Size(200, 200),
274 // Pagination base style
275 theme.AddStyleWithoutClone("Tizen.NUI.Components.Pagination", new PaginationStyle()
277 IndicatorImageUrl = new Selector<string>()
279 Normal = FrameworkInformation.ResourcePath + "nui_component_default_pagination_normal_dot.png",
280 Selected = FrameworkInformation.ResourcePath + "nui_component_default_pagination_focus_dot.png",
282 IndicatorSize = new Size(10, 10),
285 // Scrollbar base style
286 theme.AddStyleWithoutClone("Tizen.NUI.Components.Scrollbar", new ScrollbarStyle()
290 TrackColor = new Color(0f, 0f, 0f, 0f),
291 ThumbColor = new Color("#FFFEFE"),
293 //7.0 UX no require image resource.
294 Thumb = new ImageViewStyle()
297 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
299 //ThumbVerticalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_vbar.#.png",
300 //ThumbHorizontalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_hbar.#.png",
303 // LinearLayouter base style
304 theme.AddStyleWithoutClone("Tizen.NUI.Components.LinearLayouter", new ViewStyle()
306 Padding = new Extents(0, 0, 0, 0)
309 // GridLayouter base style
310 theme.AddStyleWithoutClone("Tizen.NUI.Components.GridLayouter", new ViewStyle()
312 Padding = new Extents(0, 0, 0, 0),
315 // ItemsLayouter base style
316 theme.AddStyleWithoutClone("Tizen.NUI.Components.ItemsLayouter", new ViewStyle()
318 Padding = new Extents(0, 0, 0, 0),
321 // RecyclerViewItem base style
322 theme.AddStyleWithoutClone("Tizen.NUI.Components.RecyclerViewItem", new RecyclerViewItemStyle()
324 BackgroundColor = new Selector<Color>()
326 Normal = new Color(1, 1, 1, 1),
327 Pressed = new Color(0.85f, 0.85f, 0.85f, 1),
328 Disabled = new Color(0.70f, 0.70f, 0.70f, 1),
329 Selected = new Color(0.701f, 0.898f, 0.937f, 1),
333 // DefaultLinearItem base style
334 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultLinearItem", new DefaultLinearItemStyle()
337 Padding = new Extents(20, 20, 0, 0),
338 Margin = new Extents(0, 0, 0, 0),
339 Label = new TextLabelStyle()
343 FontFamily = "SamsungOneUI600",
344 TextColor = new Selector<Color>()
346 Normal = new Color("#090E21"),
347 Pressed = new Color("#FF6200"),
348 Disabled = new Color("#CACACA"),
349 Selected = new Color("#FF6200"),
351 ThemeChangeSensitive = false
353 SubLabel = new TextLabelStyle()
357 FontFamily = "SamsungOneUI400",
358 TextColor = new Selector<Color>()
360 Normal = new Color("#090E21"),
361 Pressed = new Color("#FF6200"),
362 Disabled = new Color("#CACACA"),
363 Selected = new Color("#FF6200"),
365 ThemeChangeSensitive = false
367 Icon = new ViewStyle()
369 Margin = new Extents(0, 24, 0, 0)
371 Extra = new ViewStyle()
373 Margin = new Extents(24, 0, 0, 0)
377 // DefaultGridItem base style
378 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultGridItem", new DefaultGridItemStyle()
380 ClippingMode = ClippingModeType.ClipChildren,
381 Padding = new Extents(0, 0, 0, 0),
382 Margin = new Extents(5, 5, 5, 5),
383 CornerRadius = 12.0f,
384 BackgroundColor = new Selector<Color>()
386 Normal = new Color("#FAFAFA"),
387 Pressed = new Color(1f, 0.38f, 0, 0.2f),
388 Disabled = new Color("#FAFAFA"),
389 Selected = new Color(1f, 0.38f, 0, 0.2f),
391 Image = new ImageViewStyle()
393 //FIXME: Clip mode is not working on CornerRadius.
394 CornerRadius = 12.0f,
395 ClippingMode = ClippingModeType.ClipChildren,
397 Label = new TextLabelStyle()
401 FontFamily = "SamsungOneUI400",
402 LineWrapMode = LineWrapMode.Character,
403 TextColor = new Selector<Color>()
405 Normal = new Color("#090E21"),
406 Pressed = new Color("#FF6200"),
407 Disabled = new Color("#CACACA"),
408 Selected = new Color("#FF6200"),
410 ThemeChangeSensitive = false
412 Badge = new ViewStyle()
414 Margin = new Extents(0, 0, 0, 0),
416 BoxShadow = new Shadow(12.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 4.0f)),
419 // DefaultTitleItem base style
420 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultTitleItem", new DefaultTitleItemStyle()
423 Padding = new Extents(20, 20, 0, 0),
424 Margin = new Extents(0, 0, 0, 0),
425 BackgroundColor = Color.Transparent,
426 Label = new TextLabelStyle()
430 FontFamily = "SamsungOneUI400",
431 TextColor = new Color("#090E217F"),
432 ThemeChangeSensitive = false
434 Icon = new ViewStyle()
436 Margin = new Extents(24, 0, 0, 0)
438 Seperator = new ViewStyle()
440 Margin = new Extents(0, 0, 0, 0),
441 BackgroundColor = new Color(0, 0, 0, 0),
445 // ContentPage base style
446 theme.AddStyleWithoutClone("Tizen.NUI.Components.ContentPage", new ViewStyle()
448 BackgroundColor = new Color("#FAFAFA"),
449 CornerRadius = new Vector4(24.0f, 24.0f, 24.0f ,24.0f),
450 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
451 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
455 theme.AddStyleWithoutClone("Tizen.NUI.Components.AppBar", new AppBarStyle()
457 Size = new Size(-1, 64),
458 BackgroundColor = Color.Transparent,
459 BackButton = new ButtonStyle()
461 Size = new Size(48, 48),
463 BackgroundColor = Color.Transparent,
464 Icon = new ImageViewStyle()
466 Size = new Size(48, 48),
467 ResourceUrl = FrameworkInformation.ResourcePath + "nui_component_default_back_button.png",
468 Color = new Selector<Color>()
470 Normal = new Color("#17234D"),
471 Focused = new Color("#17234D"),
472 Pressed = new Color("#FF6200"),
473 Disabled = new Color("#CACACA"),
476 ThemeChangeSensitive = false
478 TitleTextLabel = new TextLabelStyle()
481 VerticalAlignment = VerticalAlignment.Center,
482 TextColor = new Selector<Color>()
484 Normal = new Color("#17234D"),
486 ThemeChangeSensitive = false
488 ActionView = new ViewStyle()
490 Size = new Size(48, 64),
492 BackgroundColor = Color.Transparent,
494 ActionButton = new ButtonStyle()
496 Size = new Size(-2, 64),
498 BackgroundColor = Color.Transparent,
499 Text = new TextLabelStyle()
502 TextColor = new Selector<Color>()
504 Normal = new Color("#FF6200"),
505 Focused = new Color("#FF6200"),
506 Pressed = new Color("#D95300"),
507 Disabled = new Color("#CACACA"),
510 Icon = new ImageViewStyle()
512 Size = new Size(48, 48),
513 Color = new Selector<Color>()
515 Normal = new Color("#17234D"),
516 Focused = new Color("#17234D"),
517 Pressed = new Color("#FF6200"),
518 Disabled = new Color("#CACACA"),
521 ThemeChangeSensitive = false,
523 Padding = new Extents(16, 16, 0, 0),
524 NavigationPadding = new Extents(0, 8, 0, 0),
525 ActionPadding = new Extents(16, 0, 0, 0),
526 ActionCellPadding = new Size2D(16, 0),
530 theme.AddStyleWithoutClone("Tizen.NUI.Components.Picker", new PickerStyle()
532 Size = new Size(160, 339),
533 ItemTextLabel = new TextLabelStyle()
535 //FIXME: Should be check PointSize. given size from UX is too large.
537 VerticalAlignment = VerticalAlignment.Center,
538 HorizontalAlignment = HorizontalAlignment.Center,
539 Size = new Size(0,72),
540 TextColor = new Selector<Color>()
542 Normal = new Color("#000C2B"),
544 BackgroundColor = Color.White,
546 Divider = new ViewStyle()
549 WidthResizePolicy = ResizePolicyType.FillToParent,
550 Position = new Position(0, 132),
551 BackgroundColor = new Color("#0A0E4A"),
553 StartScrollOffset = new Size(0, 12),
557 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabBar", new ViewStyle()
559 Size = new Size(-1, -2),
560 Margin = new Extents(16, 16, 0, 0),
561 Padding = new Extents(14, 14, 0, 0),
562 CornerRadius = new Vector4(12.0f, 12.0f, 12.0f, 12.0f),
563 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
564 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
565 BackgroundColor = new Color("#FAFAFA"),
568 // TabButton base style
569 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabButton", new TabButtonStyle()
571 Size = new Size(-1, 116),
572 SizeWithTextOnly = new Size(-1, 72),
573 SizeWithIconOnly = new Size(-1, 64),
574 MinimumSize = new Size(100, -1),
575 Padding = new Extents(24, 24, 18, 16),
576 PaddingWithTextOnly = new Extents(24, 24, 20, 20),
577 PaddingWithIconOnly = new Extents(24, 24, 16, 16),
578 ItemSpacing = new Size2D(0, 10),
580 IconSizeWithIconOnly = new Size(32, 32),
581 BackgroundColor = new Selector<Color>()
583 Normal = new Color("#FAFAFA"),
584 Selected = new Color("#FFE0CC"),
585 Pressed = new Color("#FFCAA8"),
586 Focused = new Color("#FAFAFA"),
587 Disabled = new Color("#FAFAFA"),
589 Text = new TextLabelStyle()
592 Size = new Size(-2, -2),
593 TextColor = new Selector<Color>()
595 Normal = new Color("#090E21"),
596 Selected = new Color("#FF6200"),
597 Pressed = new Color("#FF6200"),
598 Focused = new Color("#FF6200"),
599 Disabled = new Color("#CACACA"),
601 ThemeChangeSensitive = false,
603 Icon = new ImageViewStyle()
605 Size = new Size(48, 48),
606 Color = new Selector<Color>()
608 Normal = new Color("#090E21"),
609 Selected = new Color("#FF6200"),
610 Pressed = new Color("#FF6200"),
611 Focused = new Color("#FF6200"),
612 Disabled = new Color("#CACACA"),
617 // NotificationToast base style
618 theme.AddStyleWithoutClone("NotificationToast", new TextLabelStyle()
620 BackgroundColor = new Color("#FAFAFA"),
621 CornerRadius = 12.0f,
622 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
623 TextColor = new Color("#090E21"),
625 WidthResizePolicy = ResizePolicyType.UseNaturalSize,
626 HeightResizePolicy = ResizePolicyType.UseNaturalSize,
627 PositionUsesPivotPoint = true,
628 HorizontalAlignment = HorizontalAlignment.Center,
629 VerticalAlignment = VerticalAlignment.Center,
630 Padding = new Extents(16, 16, 16, 16),
634 // AlertDialog base style
635 theme.AddStyleWithoutClone("Tizen.NUI.Components.AlertDialog", new AlertDialogStyle()
637 Size = new Size(-2, -2),
638 Padding = new Extents(32, 32, 32, 32),
639 ItemSpacing = new Size2D(0, 32),
640 BackgroundColor = new Color("#FAFAFA"),
641 CornerRadius = 12.0f,
642 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
643 TitleTextLabel = new TextLabelStyle()
645 Size = new Size(626, -2),
647 HorizontalAlignment = HorizontalAlignment.Center,
648 VerticalAlignment = VerticalAlignment.Center,
649 TextColor = new Color("#090E21"),
650 ThemeChangeSensitive = false,
652 MessageTextLabel = new TextLabelStyle()
654 Size = new Size(626, -2),
657 HorizontalAlignment = HorizontalAlignment.Center,
658 VerticalAlignment = VerticalAlignment.Center,
659 TextColor = new Color("#090E21"),
660 ThemeChangeSensitive = false,
662 ActionContent = new ViewStyle()
664 Size = new Size(626, -2),
668 // TimePicker base style
669 theme.AddStyleWithoutClone("Tizen.NUI.Components.TimePicker", new TimePickerStyle()
671 CellPadding = new Size(50, 339),
673 Pickers = new PickerStyle()
675 Size = new Size(160, 339),
676 ItemTextLabel = new TextLabelStyle()
678 //FIXME: Should be check PointSize. given size from UX is too large.
680 VerticalAlignment = VerticalAlignment.Center,
681 HorizontalAlignment = HorizontalAlignment.Center,
682 Size = new Size(0,72),
683 TextColor = new Color("#000C2B"),
684 BackgroundColor = Color.White,
685 ThemeChangeSensitive = false
687 Divider = new ViewStyle()
690 WidthResizePolicy = ResizePolicyType.FillToParent,
691 Position = new Position(0, 132),
692 BackgroundColor = new Color("#0A0E4A"),
694 StartScrollOffset = new Size2D(0, 12),
698 // DatePicker base style
699 theme.AddStyleWithoutClone("Tizen.NUI.Components.DatePicker", new DatePickerStyle()
701 CellPadding = new Size(50, 339),
703 Pickers = new PickerStyle()
705 Size = new Size(160, 339),
706 ItemTextLabel = new TextLabelStyle()
708 //FIXME: Should be check PointSize. given size from UX is too large.
710 VerticalAlignment = VerticalAlignment.Center,
711 HorizontalAlignment = HorizontalAlignment.Center,
712 Size = new Size(0,72),
713 TextColor = new Color("#000C2B"),
714 BackgroundColor = Color.White,
715 ThemeChangeSensitive = false
717 Divider = new ViewStyle()
720 WidthResizePolicy = ResizePolicyType.FillToParent,
721 Position = new Position(0, 132),
722 BackgroundColor = new Color("#0A0E4A"),
724 StartScrollOffset = new Size2D(0, 12),
729 theme.AddStyleWithoutClone("Tizen.NUI.Components.Menu", new MenuStyle()
731 Content = new ViewStyle()
733 BackgroundColor = new Color("#FFFEFE"),
734 CornerRadius = 24.0f,
735 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
736 // FIXME: ScrollableBase with LinearLayout's Padding.Start is applied both Start and End.
737 // ScrollableBase with LinearLayout's Padding.Top is applied both Top and Bottom.
738 Padding = new Extents(32, 0, 16, 0),
742 // MenuItem base style
743 theme.AddStyleWithoutClone("Tizen.NUI.Components.MenuItem", new ButtonStyle()
745 Size = new Size(324, -2),
746 MinimumSize = new Size2D(0, 64),
747 BackgroundColor = new Color("#FFFEFE"),
749 // FIXME: ClippingModeType.ClipChildren cannot support anti-aliasing
750 // So not to show left bottom corner of MenuItem, MenuItem.Padding.Start is 0 and Menu.Content.Padding.Start is 32.
751 // (instead of MenuItem.Padding.Start 16 and Menu.Content.Padding.Start is 16)
752 Padding = new Extents(0, 0, 24, 24),
753 Text = new TextLabelStyle()
757 HorizontalAlignment = HorizontalAlignment.Begin,
758 VerticalAlignment = VerticalAlignment.Center,
759 TextColor = new Selector<Color>()
761 Normal = new Color("#090E21"),
762 Focused = new Color("#FF6200"),
763 Pressed = new Color("#FF6200"),
764 Disabled = new Color("#CACACA"),
765 Selected = new Color("#FF6200"),
767 ThemeChangeSensitive = false
769 Icon = new ImageViewStyle()
771 Size = new Size(32, 32),
772 Color = new Selector<Color>()
774 Normal = new Color("#090E21"),
775 Focused = new Color("#FF6200"),
776 Pressed = new Color("#FF6200"),
777 Disabled = new Color("#CACACA"),
778 Selected = new Color("#FF6200"),
783 // AlertDialog base style
784 theme.AddStyleWithoutClone("Tizen.NUI.Components.DialogPage.Scrim", new ViewStyle()
786 BackgroundColor = new Color("#090E21"),
795 #endif // !PROFILE_WEARABLE