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 BorderlineColor = new Color("#FF6200"), // FIXME: BorderlineColor should support Selector<Color>.
70 ItemHorizontalAlignment = HorizontalAlignment.Center,
71 ItemVerticalAlignment = VerticalAlignment.Center,
72 BackgroundColor = Color.Transparent,
73 Text = new TextLabelStyle()
75 TextColor = new Selector<Color>()
77 Normal = new Color("#FF6200"),
78 Pressed = new Color("#FFA166"),
79 Focused = new Color("#FF7119"),
80 Selected = new Color("#FF8133"),
81 Disabled = new Color("#CACACA"),
87 // CheckBox base style
88 theme.AddStyleWithoutClone("Tizen.NUI.Components.CheckBox", new ButtonStyle()
90 Padding = new Extents(8, 8, 8, 8),
91 ItemSpacing = new Size2D(16, 16),
92 ItemHorizontalAlignment = HorizontalAlignment.Center,
93 ItemVerticalAlignment = VerticalAlignment.Center,
94 Icon = new ImageViewStyle()
96 Size = new Size(32, 32),
97 ResourceUrl = new Selector<string>()
99 Normal = FrameworkInformation.ResourcePath + "IoT_check_off.png",
100 Pressed = FrameworkInformation.ResourcePath + "IoT_check_off_p.png",
101 Disabled = FrameworkInformation.ResourcePath + "IoT_check_off_d.png",
102 Focused = FrameworkInformation.ResourcePath + "IoT_check_off_f.png",
103 Selected = FrameworkInformation.ResourcePath + "IoT_check_on.png",
104 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_check_on_p.png",
105 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_check_on_f.png",
106 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_check_on_d.png",
109 Text = new TextLabelStyle()
111 TextColor = new Color("#090E21"),
117 theme.AddStyleWithoutClone("Tizen.NUI.Components.Popup", new PopupStyle()
119 Size = new Size(500, 280),
120 BackgroundColor = new Color(0.9f, 0.9f, 0.9f, 1),
121 ImageShadow = new ImageShadow()
123 Url = FrameworkInformation.ResourcePath + "nui_component_default_popup_shadow.png",
124 Border = new Rectangle(24, 24, 24, 24),
125 Extents = new Vector2(48, 48)
127 Title = new TextLabelStyle()
130 Padding = new Extents(20, 20, 20, 20),
132 Buttons = new ButtonStyle()
134 Size = new Size(0, 80),
136 BackgroundColor = new Selector<Color>()
138 Normal = new Color(1, 1, 1, 1),
139 Pressed = new Color(1, 1, 1, 0.5f),
141 Overlay = new ImageViewStyle()
143 BackgroundColor = new Selector<Color>()
145 Pressed = new Color(0, 0, 0, 0.1f),
146 Other = new Color(1, 1, 1, 0.1f),
149 Text = new TextLabelStyle()
151 TextColor = new Color(0.05f, 0.63f, 0.9f, 1),
156 // Progress base style
157 theme.AddStyleWithoutClone("Tizen.NUI.Components.Progress", new ProgressStyle()
159 Size = new Size(508, 16),
160 Track = new ImageViewStyle()
163 BackgroundColor = new Selector<Color>()
165 Normal = new Color(0.82f, 0.31f, 0.0f, 0.1f),
166 Disabled = new Color(0.82f, 0.31f, 0.0f, 0.1f),
169 Buffer = new ImageViewStyle()
172 BackgroundColor = new Color(0.82f, 0.31f, 0.0f, 0.1f),
174 Progress = new ImageViewStyle()
177 BackgroundColor = new Color("#D25000"),
179 IndeterminateImageUrl = FrameworkInformation.ResourcePath + "IoT_progress_indeterminate.png",
182 // RadioButton base style
183 theme.AddStyleWithoutClone("Tizen.NUI.Components.RadioButton", new ButtonStyle()
185 Padding = new Extents(8, 8, 8, 8),
186 ItemSpacing = new Size2D(16, 16),
187 ItemHorizontalAlignment = HorizontalAlignment.Center,
188 ItemVerticalAlignment = VerticalAlignment.Center,
189 Icon = new ImageViewStyle()
191 Size = new Size(32, 32),
192 ResourceUrl = new Selector<string>()
194 Normal = FrameworkInformation.ResourcePath + "IoT_radiobutton_off.png",
195 Pressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_p.png",
196 Disabled = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_d.png",
197 Focused = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_f.png",
198 Selected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on.png",
199 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_p.png",
200 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_f.png",
201 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_d.png",
204 Text = new TextLabelStyle()
206 TextColor = new Color("#090E21"),
212 theme.AddStyleWithoutClone("Tizen.NUI.Components.Slider", new SliderStyle()
214 Size = new Size(850, 50),
216 Track = new ImageViewStyle()
218 Size = new Size(800, 8),
220 BackgroundColor = new Selector<Color>()
222 Normal = new Color(1.0f, 0.37f, 0.0f, 0.1f),
223 Disabled = new Color(1.0f, 0.37f, 0.0f, 0.1f),
226 Progress = new ImageViewStyle()
228 Size = new Size(800, 8),
230 BackgroundColor = new Selector<Color>()
232 Normal = new Color("#FF6200"),
233 Disabled = new Color("#CACACA"),
236 Thumb = new ImageViewStyle()
238 Size = new Size(40, 40),
239 ResourceUrl = new Selector<string>()
241 Normal = FrameworkInformation.ResourcePath + "IoT_slider_handler_normal.png",
242 Pressed = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
243 Focused = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
244 Disabled = FrameworkInformation.ResourcePath + "IoT_slider_handler_disabled.png",
247 ValueIndicatorImage = new ImageViewStyle()
249 Size = new Size(16, 24),
250 BorderlineWidth = 0.5f,
251 BorderlineColor = new Color("#FF6200"),
252 BackgroundColor = new Color(0.0f, 0.04f, 0.16f, 1.0f),
257 theme.AddStyleWithoutClone("Tizen.NUI.Components.Switch", new SwitchStyle()
259 ItemSpacing = new Size2D(16, 16),
260 ItemHorizontalAlignment = HorizontalAlignment.Begin,
261 ItemVerticalAlignment = VerticalAlignment.Center,
262 Track = new ImageViewStyle()
264 Size = new Size(84, 44),
265 ResourceUrl = new Selector<string>()
267 Normal = FrameworkInformation.ResourcePath + "IoT_switch_track_off.png",
268 Pressed = FrameworkInformation.ResourcePath + "IoT_switch_track_off_p.png",
269 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_track_off_d.png",
270 Focused = FrameworkInformation.ResourcePath + "IoT_switch_track_off_f.png",
271 Selected = FrameworkInformation.ResourcePath + "IoT_switch_track_on.png",
272 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_track_on_p.png",
273 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_track_on_f.png",
274 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_switch_track_on_d.png",
277 Thumb = new ImageViewStyle()
279 Size = new Size(44, 44),
280 ResourceUrl = new Selector<string>()
282 Normal = FrameworkInformation.ResourcePath + "IoT_switch_thumb.png",
283 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_thumb_d.png",
284 Selected = FrameworkInformation.ResourcePath + "IoT_switch_thumb_s.png",
285 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sp.png",
286 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sf.png",
289 Text = new TextLabelStyle()
291 TextColor = new Color("#090E21"),
296 // Loading base style
297 theme.AddStyleWithoutClone("Tizen.NUI.Components.Loading", new LoadingStyle()
299 LoadingSize = new Size(200, 200),
302 // Pagination base style
303 theme.AddStyleWithoutClone("Tizen.NUI.Components.Pagination", new PaginationStyle()
305 Size = new Size(450, 24),
306 IndicatorImageUrl = new Selector<string>()
308 Normal = FrameworkInformation.ResourcePath + "nui_component_default_pagination_normal_dot.png",
309 Selected = FrameworkInformation.ResourcePath + "nui_component_default_pagination_focus_dot.png",
311 IndicatorSize = new Size(64, 8),
312 IndicatorSpacing = 16,
315 // Scrollbar base style
316 theme.AddStyleWithoutClone("Tizen.NUI.Components.Scrollbar", new ScrollbarStyle()
320 TrackColor = new Color(0f, 0f, 0f, 0f),
321 ThumbColor = new Color("#FFFEFE"),
323 //7.0 UX no require image resource.
324 Thumb = new ImageViewStyle()
327 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
329 //ThumbVerticalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_vbar.#.png",
330 //ThumbHorizontalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_hbar.#.png",
333 // LinearLayouter base style
334 theme.AddStyleWithoutClone("Tizen.NUI.Components.LinearLayouter", new ViewStyle()
336 Padding = new Extents(0, 0, 0, 0)
339 // GridLayouter base style
340 theme.AddStyleWithoutClone("Tizen.NUI.Components.GridLayouter", new ViewStyle()
342 Padding = new Extents(0, 0, 0, 0),
345 // ItemsLayouter base style
346 theme.AddStyleWithoutClone("Tizen.NUI.Components.ItemsLayouter", new ViewStyle()
348 Padding = new Extents(0, 0, 0, 0),
351 // RecyclerViewItem base style
352 theme.AddStyleWithoutClone("Tizen.NUI.Components.RecyclerViewItem", new RecyclerViewItemStyle()
354 BackgroundColor = new Selector<Color>()
356 Normal = new Color(1, 1, 1, 1),
357 Pressed = new Color(0.85f, 0.85f, 0.85f, 1),
358 Disabled = new Color(0.70f, 0.70f, 0.70f, 1),
359 Selected = new Color(0.701f, 0.898f, 0.937f, 1),
363 // DefaultLinearItem base style
364 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultLinearItem", new DefaultLinearItemStyle()
367 Padding = new Extents(16, 16, 0, 0),
368 Margin = new Extents(0, 0, 0, 0),
369 Label = new TextLabelStyle()
373 FontFamily = "SamsungOneUI600",
374 TextColor = new Selector<Color>()
376 Normal = new Color("#090E21"),
377 Pressed = new Color("#FF6200"),
378 Disabled = new Color("#CACACA"),
379 Selected = new Color("#FF6200"),
381 ThemeChangeSensitive = false
383 SubLabel = new TextLabelStyle()
387 FontFamily = "SamsungOneUI400",
388 TextColor = new Selector<Color>()
390 Normal = new Color("#090E21"),
391 Pressed = new Color("#FF6200"),
392 Disabled = new Color("#CACACA"),
393 Selected = new Color("#FF6200"),
395 ThemeChangeSensitive = false
397 Icon = new ViewStyle()
399 Margin = new Extents(0, 16, 0, 0)
401 Extra = new ViewStyle()
403 Margin = new Extents(16, 0, 0, 0)
407 // DefaultGridItem base style
408 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultGridItem", new DefaultGridItemStyle()
410 ClippingMode = ClippingModeType.ClipChildren,
411 Padding = new Extents(0, 0, 0, 0),
412 Margin = new Extents(5, 5, 5, 5),
413 CornerRadius = 12.0f,
414 BackgroundColor = new Selector<Color>()
416 Normal = new Color("#FAFAFA"),
417 Pressed = new Color(1f, 0.38f, 0, 0.2f),
418 Disabled = new Color("#FAFAFA"),
419 Selected = new Color(1f, 0.38f, 0, 0.2f),
421 Image = new ImageViewStyle()
423 //FIXME: Clip mode is not working on CornerRadius.
424 CornerRadius = 12.0f,
425 ClippingMode = ClippingModeType.ClipChildren,
427 Label = new TextLabelStyle()
431 FontFamily = "SamsungOneUI400",
432 LineWrapMode = LineWrapMode.Character,
433 TextColor = new Selector<Color>()
435 Normal = new Color("#090E21"),
436 Pressed = new Color("#FF6200"),
437 Disabled = new Color("#CACACA"),
438 Selected = new Color("#FF6200"),
440 ThemeChangeSensitive = false
442 Badge = new ViewStyle()
444 Margin = new Extents(0, 0, 0, 0),
446 BoxShadow = new Shadow(12.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 4.0f)),
449 // DefaultTitleItem base style
450 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultTitleItem", new DefaultTitleItemStyle()
453 Padding = new Extents(20, 20, 0, 0),
454 Margin = new Extents(0, 0, 0, 0),
455 BackgroundColor = Color.Transparent,
456 Label = new TextLabelStyle()
460 FontFamily = "SamsungOneUI400",
461 TextColor = new Color("#090E217F"),
462 ThemeChangeSensitive = false
464 Icon = new ViewStyle()
466 Margin = new Extents(24, 0, 0, 0)
468 Seperator = new ViewStyle()
470 Margin = new Extents(0, 0, 0, 0),
471 BackgroundColor = new Color(0, 0, 0, 0),
475 // ContentPage base style
476 theme.AddStyleWithoutClone("Tizen.NUI.Components.ContentPage", new ViewStyle()
478 BackgroundColor = new Color("#FAFAFA"),
479 CornerRadius = new Vector4(24.0f, 24.0f, 24.0f ,24.0f),
480 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
481 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
485 theme.AddStyleWithoutClone("Tizen.NUI.Components.AppBar", new AppBarStyle()
487 Size = new Size(-1, 64),
488 BackgroundColor = Color.Transparent,
489 BackButton = new ButtonStyle()
491 Size = new Size(48, 48),
493 BackgroundColor = Color.Transparent,
494 Icon = new ImageViewStyle()
496 Size = new Size(48, 48),
497 ResourceUrl = FrameworkInformation.ResourcePath + "nui_component_default_back_button.png",
498 Color = new Selector<Color>()
500 Normal = new Color("#17234D"),
501 Focused = new Color("#17234D"),
502 Pressed = new Color("#FF6200"),
503 Disabled = new Color("#CACACA"),
506 ThemeChangeSensitive = false
508 TitleTextLabel = new TextLabelStyle()
511 VerticalAlignment = VerticalAlignment.Center,
512 TextColor = new Selector<Color>()
514 Normal = new Color("#17234D"),
516 ThemeChangeSensitive = false
518 ActionView = new ViewStyle()
520 Size = new Size(48, 64),
522 BackgroundColor = Color.Transparent,
524 ActionButton = new ButtonStyle()
526 Size = new Size(-2, 64),
528 BackgroundColor = Color.Transparent,
529 Text = new TextLabelStyle()
532 TextColor = new Selector<Color>()
534 Normal = new Color("#FF6200"),
535 Focused = new Color("#FF6200"),
536 Pressed = new Color("#D95300"),
537 Disabled = new Color("#CACACA"),
540 Icon = new ImageViewStyle()
542 Size = new Size(48, 48),
543 Color = new Selector<Color>()
545 Normal = new Color("#17234D"),
546 Focused = new Color("#17234D"),
547 Pressed = new Color("#FF6200"),
548 Disabled = new Color("#CACACA"),
551 ThemeChangeSensitive = false,
553 Padding = new Extents(16, 16, 0, 0),
554 NavigationPadding = new Extents(0, 8, 0, 0),
555 ActionPadding = new Extents(16, 0, 0, 0),
556 ActionCellPadding = new Size2D(16, 0),
560 theme.AddStyleWithoutClone("Tizen.NUI.Components.Picker", new PickerStyle()
562 Size = new Size(160, 339),
563 ItemTextLabel = new TextLabelStyle()
565 //FIXME: Should be check PointSize. given size from UX is too large.
567 VerticalAlignment = VerticalAlignment.Center,
568 HorizontalAlignment = HorizontalAlignment.Center,
569 Size = new Size(0,72),
570 TextColor = new Selector<Color>()
572 Normal = new Color("#000C2B"),
574 BackgroundColor = Color.White,
576 Divider = new ViewStyle()
579 WidthResizePolicy = ResizePolicyType.FillToParent,
580 Position = new Position(0, 132),
581 BackgroundColor = new Color("#0A0E4A"),
583 StartScrollOffset = new Size(0, 12),
587 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabBar", new ViewStyle()
589 Size = new Size(-1, -2),
590 Margin = new Extents(16, 16, 0, 0),
591 Padding = new Extents(14, 14, 0, 0),
592 CornerRadius = new Vector4(12.0f, 12.0f, 12.0f, 12.0f),
593 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
594 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
595 BackgroundColor = new Color("#FAFAFA"),
598 // TabButton base style
599 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabButton", new TabButtonStyle()
601 Size = new Size(-1, 72),
602 SizeWithIcon = new Size(-1, 116),
603 SizeWithIconOnly = new Size(-1, 64),
604 MinimumSize = new Size(80, 64),
605 Padding = new Extents(24, 24, 16, 16),
606 ItemSpacing = new Size2D(10, 10),
608 IconSizeWithIconOnly = new Size(32, 32),
609 TextSizeWithIcon = 16.0f,
610 BackgroundColor = new Selector<Color>()
612 Normal = new Color("#FAFAFA"),
613 Selected = new Color("#FFE0CC"),
614 Pressed = new Color("#FFCAA8"),
615 Focused = new Color("#FAFAFA"),
616 Disabled = new Color("#FAFAFA"),
618 Text = new TextLabelStyle()
621 Size = new Size(-2, -2),
622 TextColor = new Selector<Color>()
624 Normal = new Color("#090E21"),
625 Selected = new Color("#FF6200"),
626 Pressed = new Color("#FF6200"),
627 Focused = new Color("#FF6200"),
628 Disabled = new Color("#CACACA"),
630 ThemeChangeSensitive = false,
632 Icon = new ImageViewStyle()
634 Size = new Size(48, 48),
635 Color = new Selector<Color>()
637 Normal = new Color("#090E21"),
638 Selected = new Color("#FF6200"),
639 Pressed = new Color("#FF6200"),
640 Focused = new Color("#FF6200"),
641 Disabled = new Color("#CACACA"),
646 // NotificationToast base style
647 theme.AddStyleWithoutClone("NotificationToast", new TextLabelStyle()
649 BackgroundColor = new Color("#FAFAFA"),
650 CornerRadius = 12.0f,
651 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
652 TextColor = new Color("#090E21"),
654 WidthResizePolicy = ResizePolicyType.UseNaturalSize,
655 HeightResizePolicy = ResizePolicyType.UseNaturalSize,
656 PositionUsesPivotPoint = true,
657 HorizontalAlignment = HorizontalAlignment.Center,
658 VerticalAlignment = VerticalAlignment.Center,
659 Padding = new Extents(16, 16, 16, 16),
663 // AlertDialog base style
664 theme.AddStyleWithoutClone("Tizen.NUI.Components.AlertDialog", new AlertDialogStyle()
666 Size = new Size(-2, -2),
667 Padding = new Extents(32, 32, 32, 32),
668 ItemSpacing = new Size2D(0, 32),
669 BackgroundColor = new Color("#FAFAFA"),
670 CornerRadius = 12.0f,
671 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
672 TitleTextLabel = new TextLabelStyle()
674 Size = new Size(626, -2),
676 HorizontalAlignment = HorizontalAlignment.Center,
677 VerticalAlignment = VerticalAlignment.Center,
678 TextColor = new Color("#090E21"),
679 ThemeChangeSensitive = false,
681 MessageTextLabel = new TextLabelStyle()
683 Size = new Size(626, -2),
686 HorizontalAlignment = HorizontalAlignment.Center,
687 VerticalAlignment = VerticalAlignment.Center,
688 TextColor = new Color("#090E21"),
689 ThemeChangeSensitive = false,
691 ActionContent = new ViewStyle()
693 Size = new Size(626, -2),
697 // TimePicker base style
698 theme.AddStyleWithoutClone("Tizen.NUI.Components.TimePicker", new TimePickerStyle()
700 CellPadding = new Size(50, 339),
702 Pickers = new PickerStyle()
704 Size = new Size(160, 339),
705 ItemTextLabel = new TextLabelStyle()
707 //FIXME: Should be check PointSize. given size from UX is too large.
709 VerticalAlignment = VerticalAlignment.Center,
710 HorizontalAlignment = HorizontalAlignment.Center,
711 Size = new Size(0,72),
712 TextColor = new Color("#000C2B"),
713 BackgroundColor = Color.White,
714 ThemeChangeSensitive = false
716 Divider = new ViewStyle()
719 WidthResizePolicy = ResizePolicyType.FillToParent,
720 Position = new Position(0, 132),
721 BackgroundColor = new Color("#0A0E4A"),
723 StartScrollOffset = new Size2D(0, 12),
727 // DatePicker base style
728 theme.AddStyleWithoutClone("Tizen.NUI.Components.DatePicker", new DatePickerStyle()
730 CellPadding = new Size(50, 339),
732 Pickers = new PickerStyle()
734 Size = new Size(160, 339),
735 ItemTextLabel = new TextLabelStyle()
737 //FIXME: Should be check PointSize. given size from UX is too large.
739 VerticalAlignment = VerticalAlignment.Center,
740 HorizontalAlignment = HorizontalAlignment.Center,
741 Size = new Size(0,72),
742 TextColor = new Color("#000C2B"),
743 BackgroundColor = Color.White,
744 ThemeChangeSensitive = false
746 Divider = new ViewStyle()
749 WidthResizePolicy = ResizePolicyType.FillToParent,
750 Position = new Position(0, 132),
751 BackgroundColor = new Color("#0A0E4A"),
753 StartScrollOffset = new Size2D(0, 12),
758 theme.AddStyleWithoutClone("Tizen.NUI.Components.Menu", new MenuStyle()
760 Content = new ViewStyle()
762 BackgroundColor = new Color("#FFFEFE"),
763 CornerRadius = 24.0f,
764 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
765 // FIXME: ScrollableBase with LinearLayout's Padding.Start is applied both Start and End.
766 // ScrollableBase with LinearLayout's Padding.Top is applied both Top and Bottom.
767 Padding = new Extents(32, 0, 16, 0),
771 // MenuItem base style
772 theme.AddStyleWithoutClone("Tizen.NUI.Components.MenuItem", new ButtonStyle()
774 Size = new Size(324, -2),
775 MinimumSize = new Size2D(0, 64),
776 BackgroundColor = new Color("#FFFEFE"),
778 // FIXME: ClippingModeType.ClipChildren cannot support anti-aliasing
779 // So not to show left bottom corner of MenuItem, MenuItem.Padding.Start is 0 and Menu.Content.Padding.Start is 32.
780 // (instead of MenuItem.Padding.Start 16 and Menu.Content.Padding.Start is 16)
781 Padding = new Extents(0, 0, 24, 24),
782 Text = new TextLabelStyle()
786 HorizontalAlignment = HorizontalAlignment.Begin,
787 VerticalAlignment = VerticalAlignment.Center,
788 TextColor = new Selector<Color>()
790 Normal = new Color("#090E21"),
791 Focused = new Color("#FF6200"),
792 Pressed = new Color("#FF6200"),
793 Disabled = new Color("#CACACA"),
794 Selected = new Color("#FF6200"),
796 ThemeChangeSensitive = false
798 Icon = new ImageViewStyle()
800 Color = new Selector<Color>()
802 Normal = new Color("#090E21"),
803 Focused = new Color("#FF6200"),
804 Pressed = new Color("#FF6200"),
805 Disabled = new Color("#CACACA"),
806 Selected = new Color("#FF6200"),
811 // AlertDialog base style
812 theme.AddStyleWithoutClone("Tizen.NUI.Components.DialogPage.Scrim", new ViewStyle()
814 BackgroundColor = new Color("#090E21"),
823 #endif // !PROFILE_WEARABLE