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 Padding = new Extents(8, 8, 8, 8),
66 ItemSpacing = new Size2D(16, 16),
67 ItemHorizontalAlignment = HorizontalAlignment.Center,
68 ItemVerticalAlignment = VerticalAlignment.Center,
69 Icon = new ImageViewStyle()
71 Size = new Size(32, 32),
72 ResourceUrl = new Selector<string>()
74 Normal = FrameworkInformation.ResourcePath + "IoT_check_off.png",
75 Pressed = FrameworkInformation.ResourcePath + "IoT_check_off_p.png",
76 Disabled = FrameworkInformation.ResourcePath + "IoT_check_off_d.png",
77 Focused = FrameworkInformation.ResourcePath + "IoT_check_off_f.png",
78 Selected = FrameworkInformation.ResourcePath + "IoT_check_on.png",
79 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_check_on_p.png",
80 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_check_on_f.png",
81 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_check_on_d.png",
84 Text = new TextLabelStyle()
86 TextColor = new Color("#090E21"),
92 theme.AddStyleWithoutClone("Tizen.NUI.Components.Popup", new PopupStyle()
94 Size = new Size(500, 280),
95 BackgroundColor = new Color(0.9f, 0.9f, 0.9f, 1),
96 ImageShadow = new ImageShadow()
98 Url = FrameworkInformation.ResourcePath + "nui_component_default_popup_shadow.png",
99 Border = new Rectangle(24, 24, 24, 24),
100 Extents = new Vector2(48, 48)
102 Title = new TextLabelStyle()
105 Padding = new Extents(20, 20, 20, 20),
107 Buttons = new ButtonStyle()
109 Size = new Size(0, 80),
111 BackgroundColor = new Selector<Color>()
113 Normal = new Color(1, 1, 1, 1),
114 Pressed = new Color(1, 1, 1, 0.5f),
116 Overlay = new ImageViewStyle()
118 BackgroundColor = new Selector<Color>()
120 Pressed = new Color(0, 0, 0, 0.1f),
121 Other = new Color(1, 1, 1, 0.1f),
124 Text = new TextLabelStyle()
126 TextColor = new Color(0.05f, 0.63f, 0.9f, 1),
131 // Progress base style
132 theme.AddStyleWithoutClone("Tizen.NUI.Components.Progress", new ProgressStyle()
134 Size = new Size(508, 16),
135 Track = new ImageViewStyle()
138 BackgroundColor = new Selector<Color>()
140 Normal = new Color(0.82f, 0.31f, 0.0f, 0.1f),
141 Disabled = new Color(0.82f, 0.31f, 0.0f, 0.1f),
144 Buffer = new ImageViewStyle()
147 BackgroundColor = new Color(0.82f, 0.31f, 0.0f, 0.1f),
149 Progress = new ImageViewStyle()
152 BackgroundColor = new Color("#D25000"),
154 IndeterminateImageUrl = FrameworkInformation.ResourcePath + "IoT_progress_indeterminate.png",
157 // RadioButton base style
158 theme.AddStyleWithoutClone("Tizen.NUI.Components.RadioButton", new ButtonStyle()
160 Padding = new Extents(8, 8, 8, 8),
161 ItemSpacing = new Size2D(16, 16),
162 ItemHorizontalAlignment = HorizontalAlignment.Center,
163 ItemVerticalAlignment = VerticalAlignment.Center,
164 Icon = new ImageViewStyle()
166 Size = new Size(32, 32),
167 ResourceUrl = new Selector<string>()
169 Normal = FrameworkInformation.ResourcePath + "IoT_radiobutton_off.png",
170 Pressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_p.png",
171 Disabled = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_d.png",
172 Focused = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_f.png",
173 Selected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on.png",
174 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_p.png",
175 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_f.png",
176 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_d.png",
179 Text = new TextLabelStyle()
181 TextColor = new Color("#090E21"),
187 theme.AddStyleWithoutClone("Tizen.NUI.Components.Slider", new SliderStyle()
189 Size = new Size(850, 50),
191 Track = new ImageViewStyle()
193 Size = new Size(800, 8),
195 BackgroundColor = new Selector<Color>()
197 Normal = new Color(1.0f, 0.37f, 0.0f, 0.1f),
198 Disabled = new Color(1.0f, 0.37f, 0.0f, 0.1f),
201 Progress = new ImageViewStyle()
203 Size = new Size(800, 8),
205 BackgroundColor = new Selector<Color>()
207 Normal = new Color("#FF6200"),
208 Disabled = new Color("#CACACA"),
211 Thumb = new ImageViewStyle()
213 Size = new Size(40, 40),
214 ResourceUrl = new Selector<string>()
216 Normal = FrameworkInformation.ResourcePath + "IoT_slider_handler_normal.png",
217 Pressed = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
218 Focused = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
219 Disabled = FrameworkInformation.ResourcePath + "IoT_slider_handler_disabled.png",
222 ValueIndicatorImage = new ImageViewStyle()
224 Size = new Size(16, 24),
225 BorderlineWidth = 0.5f,
226 BorderlineColor = new Color("#FF6200"),
227 BackgroundColor = new Color(0.0f, 0.04f, 0.16f, 1.0f),
232 theme.AddStyleWithoutClone("Tizen.NUI.Components.Switch", new SwitchStyle()
234 ItemSpacing = new Size2D(16, 16),
235 ItemHorizontalAlignment = HorizontalAlignment.Begin,
236 ItemVerticalAlignment = VerticalAlignment.Center,
237 Track = new ImageViewStyle()
239 Size = new Size(84, 44),
240 ResourceUrl = new Selector<string>()
242 Normal = FrameworkInformation.ResourcePath + "IoT_switch_track_off.png",
243 Pressed = FrameworkInformation.ResourcePath + "IoT_switch_track_off_p.png",
244 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_track_off_d.png",
245 Focused = FrameworkInformation.ResourcePath + "IoT_switch_track_off_f.png",
246 Selected = FrameworkInformation.ResourcePath + "IoT_switch_track_on.png",
247 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_track_on_p.png",
248 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_track_on_f.png",
249 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_switch_track_on_d.png",
252 Thumb = new ImageViewStyle()
254 Size = new Size(44, 44),
255 ResourceUrl = new Selector<string>()
257 Normal = FrameworkInformation.ResourcePath + "IoT_switch_thumb.png",
258 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_thumb_d.png",
259 Selected = FrameworkInformation.ResourcePath + "IoT_switch_thumb_s.png",
260 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sp.png",
261 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sf.png",
264 Text = new TextLabelStyle()
266 TextColor = new Color("#090E21"),
271 // Loading base style
272 theme.AddStyleWithoutClone("Tizen.NUI.Components.Loading", new LoadingStyle()
274 LoadingSize = new Size(200, 200),
277 // Pagination base style
278 theme.AddStyleWithoutClone("Tizen.NUI.Components.Pagination", new PaginationStyle()
280 IndicatorImageUrl = new Selector<string>()
282 Normal = FrameworkInformation.ResourcePath + "nui_component_default_pagination_normal_dot.png",
283 Selected = FrameworkInformation.ResourcePath + "nui_component_default_pagination_focus_dot.png",
285 IndicatorSize = new Size(10, 10),
288 // Scrollbar base style
289 theme.AddStyleWithoutClone("Tizen.NUI.Components.Scrollbar", new ScrollbarStyle()
293 TrackColor = new Color(0f, 0f, 0f, 0f),
294 ThumbColor = new Color("#FFFEFE"),
296 //7.0 UX no require image resource.
297 Thumb = new ImageViewStyle()
300 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
302 //ThumbVerticalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_vbar.#.png",
303 //ThumbHorizontalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_hbar.#.png",
306 // LinearLayouter base style
307 theme.AddStyleWithoutClone("Tizen.NUI.Components.LinearLayouter", new ViewStyle()
309 Padding = new Extents(0, 0, 0, 0)
312 // GridLayouter base style
313 theme.AddStyleWithoutClone("Tizen.NUI.Components.GridLayouter", new ViewStyle()
315 Padding = new Extents(0, 0, 0, 0),
318 // ItemsLayouter base style
319 theme.AddStyleWithoutClone("Tizen.NUI.Components.ItemsLayouter", new ViewStyle()
321 Padding = new Extents(0, 0, 0, 0),
324 // RecyclerViewItem base style
325 theme.AddStyleWithoutClone("Tizen.NUI.Components.RecyclerViewItem", new RecyclerViewItemStyle()
327 BackgroundColor = new Selector<Color>()
329 Normal = new Color(1, 1, 1, 1),
330 Pressed = new Color(0.85f, 0.85f, 0.85f, 1),
331 Disabled = new Color(0.70f, 0.70f, 0.70f, 1),
332 Selected = new Color(0.701f, 0.898f, 0.937f, 1),
336 // DefaultLinearItem base style
337 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultLinearItem", new DefaultLinearItemStyle()
340 Padding = new Extents(16, 16, 0, 0),
341 Margin = new Extents(0, 0, 0, 0),
342 Label = new TextLabelStyle()
346 FontFamily = "SamsungOneUI600",
347 TextColor = new Selector<Color>()
349 Normal = new Color("#090E21"),
350 Pressed = new Color("#FF6200"),
351 Disabled = new Color("#CACACA"),
352 Selected = new Color("#FF6200"),
354 ThemeChangeSensitive = false
356 SubLabel = new TextLabelStyle()
360 FontFamily = "SamsungOneUI400",
361 TextColor = new Selector<Color>()
363 Normal = new Color("#090E21"),
364 Pressed = new Color("#FF6200"),
365 Disabled = new Color("#CACACA"),
366 Selected = new Color("#FF6200"),
368 ThemeChangeSensitive = false
370 Icon = new ViewStyle()
372 Margin = new Extents(0, 16, 0, 0)
374 Extra = new ViewStyle()
376 Margin = new Extents(16, 0, 0, 0)
380 // DefaultGridItem base style
381 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultGridItem", new DefaultGridItemStyle()
383 ClippingMode = ClippingModeType.ClipChildren,
384 Padding = new Extents(0, 0, 0, 0),
385 Margin = new Extents(5, 5, 5, 5),
386 CornerRadius = 12.0f,
387 BackgroundColor = new Selector<Color>()
389 Normal = new Color("#FAFAFA"),
390 Pressed = new Color(1f, 0.38f, 0, 0.2f),
391 Disabled = new Color("#FAFAFA"),
392 Selected = new Color(1f, 0.38f, 0, 0.2f),
394 Image = new ImageViewStyle()
396 //FIXME: Clip mode is not working on CornerRadius.
397 CornerRadius = 12.0f,
398 ClippingMode = ClippingModeType.ClipChildren,
400 Label = new TextLabelStyle()
404 FontFamily = "SamsungOneUI400",
405 LineWrapMode = LineWrapMode.Character,
406 TextColor = new Selector<Color>()
408 Normal = new Color("#090E21"),
409 Pressed = new Color("#FF6200"),
410 Disabled = new Color("#CACACA"),
411 Selected = new Color("#FF6200"),
413 ThemeChangeSensitive = false
415 Badge = new ViewStyle()
417 Margin = new Extents(0, 0, 0, 0),
419 BoxShadow = new Shadow(12.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 4.0f)),
422 // DefaultTitleItem base style
423 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultTitleItem", new DefaultTitleItemStyle()
426 Padding = new Extents(20, 20, 0, 0),
427 Margin = new Extents(0, 0, 0, 0),
428 BackgroundColor = Color.Transparent,
429 Label = new TextLabelStyle()
433 FontFamily = "SamsungOneUI400",
434 TextColor = new Color("#090E217F"),
435 ThemeChangeSensitive = false
437 Icon = new ViewStyle()
439 Margin = new Extents(24, 0, 0, 0)
441 Seperator = new ViewStyle()
443 Margin = new Extents(0, 0, 0, 0),
444 BackgroundColor = new Color(0, 0, 0, 0),
448 // ContentPage base style
449 theme.AddStyleWithoutClone("Tizen.NUI.Components.ContentPage", new ViewStyle()
451 BackgroundColor = new Color("#FAFAFA"),
452 CornerRadius = new Vector4(24.0f, 24.0f, 24.0f ,24.0f),
453 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
454 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
458 theme.AddStyleWithoutClone("Tizen.NUI.Components.AppBar", new AppBarStyle()
460 Size = new Size(-1, 64),
461 BackgroundColor = Color.Transparent,
462 BackButton = new ButtonStyle()
464 Size = new Size(48, 48),
466 BackgroundColor = Color.Transparent,
467 Icon = new ImageViewStyle()
469 Size = new Size(48, 48),
470 ResourceUrl = FrameworkInformation.ResourcePath + "nui_component_default_back_button.png",
471 Color = new Selector<Color>()
473 Normal = new Color("#17234D"),
474 Focused = new Color("#17234D"),
475 Pressed = new Color("#FF6200"),
476 Disabled = new Color("#CACACA"),
479 ThemeChangeSensitive = false
481 TitleTextLabel = new TextLabelStyle()
484 VerticalAlignment = VerticalAlignment.Center,
485 TextColor = new Selector<Color>()
487 Normal = new Color("#17234D"),
489 ThemeChangeSensitive = false
491 ActionView = new ViewStyle()
493 Size = new Size(48, 64),
495 BackgroundColor = Color.Transparent,
497 ActionButton = new ButtonStyle()
499 Size = new Size(-2, 64),
501 BackgroundColor = Color.Transparent,
502 Text = new TextLabelStyle()
505 TextColor = new Selector<Color>()
507 Normal = new Color("#FF6200"),
508 Focused = new Color("#FF6200"),
509 Pressed = new Color("#D95300"),
510 Disabled = new Color("#CACACA"),
513 Icon = new ImageViewStyle()
515 Size = new Size(48, 48),
516 Color = new Selector<Color>()
518 Normal = new Color("#17234D"),
519 Focused = new Color("#17234D"),
520 Pressed = new Color("#FF6200"),
521 Disabled = new Color("#CACACA"),
524 ThemeChangeSensitive = false,
526 Padding = new Extents(16, 16, 0, 0),
527 NavigationPadding = new Extents(0, 8, 0, 0),
528 ActionPadding = new Extents(16, 0, 0, 0),
529 ActionCellPadding = new Size2D(16, 0),
533 theme.AddStyleWithoutClone("Tizen.NUI.Components.Picker", new PickerStyle()
535 Size = new Size(160, 339),
536 ItemTextLabel = new TextLabelStyle()
538 //FIXME: Should be check PointSize. given size from UX is too large.
540 VerticalAlignment = VerticalAlignment.Center,
541 HorizontalAlignment = HorizontalAlignment.Center,
542 Size = new Size(0,72),
543 TextColor = new Selector<Color>()
545 Normal = new Color("#000C2B"),
547 BackgroundColor = Color.White,
549 Divider = new ViewStyle()
552 WidthResizePolicy = ResizePolicyType.FillToParent,
553 Position = new Position(0, 132),
554 BackgroundColor = new Color("#0A0E4A"),
556 StartScrollOffset = new Size(0, 12),
560 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabBar", new ViewStyle()
562 Size = new Size(-1, -2),
563 Margin = new Extents(16, 16, 0, 0),
564 Padding = new Extents(14, 14, 0, 0),
565 CornerRadius = new Vector4(12.0f, 12.0f, 12.0f, 12.0f),
566 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
567 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
568 BackgroundColor = new Color("#FAFAFA"),
571 // TabButton base style
572 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabButton", new TabButtonStyle()
574 Size = new Size(-1, 72),
575 SizeWithIcon = new Size(-1, 116),
576 SizeWithIconOnly = new Size(-1, 64),
577 MinimumSize = new Size(80, 64),
578 Padding = new Extents(24, 24, 16, 16),
579 ItemSpacing = new Size2D(10, 10),
581 IconSizeWithIconOnly = new Size(32, 32),
582 TextSizeWithIcon = 16.0f,
583 BackgroundColor = new Selector<Color>()
585 Normal = new Color("#FAFAFA"),
586 Selected = new Color("#FFE0CC"),
587 Pressed = new Color("#FFCAA8"),
588 Focused = new Color("#FAFAFA"),
589 Disabled = new Color("#FAFAFA"),
591 Text = new TextLabelStyle()
594 Size = new Size(-2, -2),
595 TextColor = new Selector<Color>()
597 Normal = new Color("#090E21"),
598 Selected = new Color("#FF6200"),
599 Pressed = new Color("#FF6200"),
600 Focused = new Color("#FF6200"),
601 Disabled = new Color("#CACACA"),
603 ThemeChangeSensitive = false,
605 Icon = new ImageViewStyle()
607 Size = new Size(48, 48),
608 Color = new Selector<Color>()
610 Normal = new Color("#090E21"),
611 Selected = new Color("#FF6200"),
612 Pressed = new Color("#FF6200"),
613 Focused = new Color("#FF6200"),
614 Disabled = new Color("#CACACA"),
619 // NotificationToast base style
620 theme.AddStyleWithoutClone("NotificationToast", new TextLabelStyle()
622 BackgroundColor = new Color("#FAFAFA"),
623 CornerRadius = 12.0f,
624 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
625 TextColor = new Color("#090E21"),
627 WidthResizePolicy = ResizePolicyType.UseNaturalSize,
628 HeightResizePolicy = ResizePolicyType.UseNaturalSize,
629 PositionUsesPivotPoint = true,
630 HorizontalAlignment = HorizontalAlignment.Center,
631 VerticalAlignment = VerticalAlignment.Center,
632 Padding = new Extents(16, 16, 16, 16),
636 // AlertDialog base style
637 theme.AddStyleWithoutClone("Tizen.NUI.Components.AlertDialog", new AlertDialogStyle()
639 Size = new Size(-2, -2),
640 Padding = new Extents(32, 32, 32, 32),
641 ItemSpacing = new Size2D(0, 32),
642 BackgroundColor = new Color("#FAFAFA"),
643 CornerRadius = 12.0f,
644 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
645 TitleTextLabel = new TextLabelStyle()
647 Size = new Size(626, -2),
649 HorizontalAlignment = HorizontalAlignment.Center,
650 VerticalAlignment = VerticalAlignment.Center,
651 TextColor = new Color("#090E21"),
652 ThemeChangeSensitive = false,
654 MessageTextLabel = new TextLabelStyle()
656 Size = new Size(626, -2),
659 HorizontalAlignment = HorizontalAlignment.Center,
660 VerticalAlignment = VerticalAlignment.Center,
661 TextColor = new Color("#090E21"),
662 ThemeChangeSensitive = false,
664 ActionContent = new ViewStyle()
666 Size = new Size(626, -2),
670 // TimePicker base style
671 theme.AddStyleWithoutClone("Tizen.NUI.Components.TimePicker", new TimePickerStyle()
673 CellPadding = new Size(50, 339),
675 Pickers = new PickerStyle()
677 Size = new Size(160, 339),
678 ItemTextLabel = new TextLabelStyle()
680 //FIXME: Should be check PointSize. given size from UX is too large.
682 VerticalAlignment = VerticalAlignment.Center,
683 HorizontalAlignment = HorizontalAlignment.Center,
684 Size = new Size(0,72),
685 TextColor = new Color("#000C2B"),
686 BackgroundColor = Color.White,
687 ThemeChangeSensitive = false
689 Divider = new ViewStyle()
692 WidthResizePolicy = ResizePolicyType.FillToParent,
693 Position = new Position(0, 132),
694 BackgroundColor = new Color("#0A0E4A"),
696 StartScrollOffset = new Size2D(0, 12),
700 // DatePicker base style
701 theme.AddStyleWithoutClone("Tizen.NUI.Components.DatePicker", new DatePickerStyle()
703 CellPadding = new Size(50, 339),
705 Pickers = new PickerStyle()
707 Size = new Size(160, 339),
708 ItemTextLabel = new TextLabelStyle()
710 //FIXME: Should be check PointSize. given size from UX is too large.
712 VerticalAlignment = VerticalAlignment.Center,
713 HorizontalAlignment = HorizontalAlignment.Center,
714 Size = new Size(0,72),
715 TextColor = new Color("#000C2B"),
716 BackgroundColor = Color.White,
717 ThemeChangeSensitive = false
719 Divider = new ViewStyle()
722 WidthResizePolicy = ResizePolicyType.FillToParent,
723 Position = new Position(0, 132),
724 BackgroundColor = new Color("#0A0E4A"),
726 StartScrollOffset = new Size2D(0, 12),
731 theme.AddStyleWithoutClone("Tizen.NUI.Components.Menu", new MenuStyle()
733 Content = new ViewStyle()
735 BackgroundColor = new Color("#FFFEFE"),
736 CornerRadius = 24.0f,
737 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
738 // FIXME: ScrollableBase with LinearLayout's Padding.Start is applied both Start and End.
739 // ScrollableBase with LinearLayout's Padding.Top is applied both Top and Bottom.
740 Padding = new Extents(32, 0, 16, 0),
744 // MenuItem base style
745 theme.AddStyleWithoutClone("Tizen.NUI.Components.MenuItem", new ButtonStyle()
747 Size = new Size(324, -2),
748 MinimumSize = new Size2D(0, 64),
749 BackgroundColor = new Color("#FFFEFE"),
751 // FIXME: ClippingModeType.ClipChildren cannot support anti-aliasing
752 // So not to show left bottom corner of MenuItem, MenuItem.Padding.Start is 0 and Menu.Content.Padding.Start is 32.
753 // (instead of MenuItem.Padding.Start 16 and Menu.Content.Padding.Start is 16)
754 Padding = new Extents(0, 0, 24, 24),
755 Text = new TextLabelStyle()
759 HorizontalAlignment = HorizontalAlignment.Begin,
760 VerticalAlignment = VerticalAlignment.Center,
761 TextColor = new Selector<Color>()
763 Normal = new Color("#090E21"),
764 Focused = new Color("#FF6200"),
765 Pressed = new Color("#FF6200"),
766 Disabled = new Color("#CACACA"),
767 Selected = new Color("#FF6200"),
769 ThemeChangeSensitive = false
771 Icon = new ImageViewStyle()
773 Size = new Size(32, 32),
774 Color = new Selector<Color>()
776 Normal = new Color("#090E21"),
777 Focused = new Color("#FF6200"),
778 Pressed = new Color("#FF6200"),
779 Disabled = new Color("#CACACA"),
780 Selected = new Color("#FF6200"),
785 // AlertDialog base style
786 theme.AddStyleWithoutClone("Tizen.NUI.Components.DialogPage.Scrim", new ViewStyle()
788 BackgroundColor = new Color("#090E21"),
797 #endif // !PROFILE_WEARABLE