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(16, 24),
280 BorderlineWidth = 0.5f,
281 BorderlineColor = new Color("#FF6200"),
282 BackgroundColor = new Color(0.0f, 0.04f, 0.16f, 1.0f),
287 theme.AddStyleWithoutClone("Tizen.NUI.Components.Switch", new SwitchStyle()
289 ItemSpacing = new Size2D(16, 16),
290 ItemHorizontalAlignment = HorizontalAlignment.Begin,
291 ItemVerticalAlignment = VerticalAlignment.Center,
292 Track = new ImageViewStyle()
294 Size = new Size(84, 44),
295 ResourceUrl = new Selector<string>()
297 Normal = FrameworkInformation.ResourcePath + "IoT_switch_track_off.png",
298 Pressed = FrameworkInformation.ResourcePath + "IoT_switch_track_off_p.png",
299 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_track_off_d.png",
300 Focused = FrameworkInformation.ResourcePath + "IoT_switch_track_off_f.png",
301 Selected = FrameworkInformation.ResourcePath + "IoT_switch_track_on.png",
302 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_track_on_p.png",
303 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_track_on_f.png",
304 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_switch_track_on_d.png",
307 Thumb = new ImageViewStyle()
309 Size = new Size(44, 44),
310 ResourceUrl = new Selector<string>()
312 Normal = FrameworkInformation.ResourcePath + "IoT_switch_thumb.png",
313 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_thumb_d.png",
314 Selected = FrameworkInformation.ResourcePath + "IoT_switch_thumb_s.png",
315 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sp.png",
316 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sf.png",
319 Text = new TextLabelStyle()
321 TextColor = new Color("#090E21"),
326 // Loading base style
327 theme.AddStyleWithoutClone("Tizen.NUI.Components.Loading", new LoadingStyle()
329 LoadingSize = new Size(200, 200),
332 // Pagination base style
333 theme.AddStyleWithoutClone("Tizen.NUI.Components.Pagination", new PaginationStyle()
335 Size = new Size(450, 24),
336 IndicatorImageUrl = new Selector<string>()
338 Normal = FrameworkInformation.ResourcePath + "nui_component_default_pagination_normal_dot.png",
339 Selected = FrameworkInformation.ResourcePath + "nui_component_default_pagination_focus_dot.png",
341 IndicatorSize = new Size(64, 8),
342 IndicatorSpacing = 16,
345 // Scrollbar base style
346 theme.AddStyleWithoutClone("Tizen.NUI.Components.Scrollbar", new ScrollbarStyle()
350 TrackColor = new Color(0f, 0f, 0f, 0f),
351 ThumbColor = new Color("#FFFEFE"),
353 //7.0 UX no require image resource.
354 Thumb = new ImageViewStyle()
357 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
359 //ThumbVerticalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_vbar.#.png",
360 //ThumbHorizontalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_hbar.#.png",
363 // LinearLayouter base style
364 theme.AddStyleWithoutClone("Tizen.NUI.Components.LinearLayouter", new ViewStyle()
366 Padding = new Extents(0, 0, 0, 0)
369 // GridLayouter base style
370 theme.AddStyleWithoutClone("Tizen.NUI.Components.GridLayouter", new ViewStyle()
372 Padding = new Extents(0, 0, 0, 0),
375 // ItemsLayouter base style
376 theme.AddStyleWithoutClone("Tizen.NUI.Components.ItemsLayouter", new ViewStyle()
378 Padding = new Extents(0, 0, 0, 0),
381 // RecyclerViewItem base style
382 theme.AddStyleWithoutClone("Tizen.NUI.Components.RecyclerViewItem", new RecyclerViewItemStyle()
384 BackgroundColor = new Selector<Color>()
386 Normal = new Color(1, 1, 1, 1),
387 Pressed = new Color(0.85f, 0.85f, 0.85f, 1),
388 Disabled = new Color(0.70f, 0.70f, 0.70f, 1),
389 Selected = new Color(0.701f, 0.898f, 0.937f, 1),
393 // DefaultLinearItem base style
394 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultLinearItem", new DefaultLinearItemStyle()
397 Padding = new Extents(16, 16, 0, 0),
398 Margin = new Extents(0, 0, 0, 0),
399 Label = new TextLabelStyle()
403 FontFamily = "SamsungOneUI600",
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 SubLabel = new TextLabelStyle()
417 FontFamily = "SamsungOneUI400",
418 TextColor = new Selector<Color>()
420 Normal = new Color("#090E21"),
421 Pressed = new Color("#FF6200"),
422 Disabled = new Color("#CACACA"),
423 Selected = new Color("#FF6200"),
425 ThemeChangeSensitive = false
427 Icon = new ViewStyle()
429 Margin = new Extents(0, 16, 0, 0)
431 Extra = new ViewStyle()
433 Margin = new Extents(16, 0, 0, 0)
437 // DefaultGridItem base style
438 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultGridItem", new DefaultGridItemStyle()
440 ClippingMode = ClippingModeType.ClipChildren,
441 Padding = new Extents(0, 0, 0, 0),
442 Margin = new Extents(5, 5, 5, 5),
443 CornerRadius = 12.0f,
444 BackgroundColor = new Selector<Color>()
446 Normal = new Color("#FAFAFA"),
447 Pressed = new Color(1f, 0.38f, 0, 0.2f),
448 Disabled = new Color("#FAFAFA"),
449 Selected = new Color(1f, 0.38f, 0, 0.2f),
451 Image = new ImageViewStyle()
453 //FIXME: Clip mode is not working on CornerRadius.
454 CornerRadius = 12.0f,
455 ClippingMode = ClippingModeType.ClipChildren,
457 Label = new TextLabelStyle()
461 FontFamily = "SamsungOneUI400",
462 LineWrapMode = LineWrapMode.Character,
463 TextColor = new Selector<Color>()
465 Normal = new Color("#090E21"),
466 Pressed = new Color("#FF6200"),
467 Disabled = new Color("#CACACA"),
468 Selected = new Color("#FF6200"),
470 ThemeChangeSensitive = false
472 Badge = new ViewStyle()
474 Margin = new Extents(0, 0, 0, 0),
476 BoxShadow = new Shadow(12.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 4.0f)),
479 // DefaultTitleItem base style
480 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultTitleItem", new DefaultTitleItemStyle()
483 Padding = new Extents(20, 20, 0, 0),
484 Margin = new Extents(0, 0, 0, 0),
485 BackgroundColor = Color.Transparent,
486 Label = new TextLabelStyle()
490 FontFamily = "SamsungOneUI400",
491 TextColor = new Color("#090E217F"),
492 ThemeChangeSensitive = false
494 Icon = new ViewStyle()
496 Margin = new Extents(24, 0, 0, 0)
498 Seperator = new ViewStyle()
500 Margin = new Extents(0, 0, 0, 0),
501 BackgroundColor = new Color(0, 0, 0, 0),
505 // ContentPage base style
506 theme.AddStyleWithoutClone("Tizen.NUI.Components.ContentPage", new ViewStyle()
508 BackgroundColor = new Color("#FAFAFA"),
509 CornerRadius = new Vector4(24.0f, 24.0f, 24.0f ,24.0f),
510 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
511 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
515 theme.AddStyleWithoutClone("Tizen.NUI.Components.AppBar", new AppBarStyle()
517 Size = new Size(-1, 64),
518 BackgroundColor = Color.Transparent,
519 BackButton = new ButtonStyle()
521 Size = new Size(48, 48),
523 BackgroundColor = Color.Transparent,
524 Icon = new ImageViewStyle()
526 Size = new Size(48, 48),
527 ResourceUrl = FrameworkInformation.ResourcePath + "nui_component_default_back_button.png",
528 Color = new Selector<Color>()
530 Normal = new Color("#17234D"),
531 Focused = new Color("#17234D"),
532 Pressed = new Color("#FF6200"),
533 Disabled = new Color("#CACACA"),
536 ThemeChangeSensitive = false
538 TitleTextLabel = new TextLabelStyle()
541 VerticalAlignment = VerticalAlignment.Center,
542 TextColor = new Selector<Color>()
544 Normal = new Color("#17234D"),
546 ThemeChangeSensitive = false
548 ActionView = new ViewStyle()
550 Size = new Size(48, 64),
552 BackgroundColor = Color.Transparent,
554 ActionButton = new ButtonStyle()
556 Size = new Size(-2, 64),
558 BackgroundColor = Color.Transparent,
559 Text = new TextLabelStyle()
562 TextColor = new Selector<Color>()
564 Normal = new Color("#FF6200"),
565 Focused = new Color("#FF6200"),
566 Pressed = new Color("#D95300"),
567 Disabled = new Color("#CACACA"),
570 Icon = new ImageViewStyle()
572 Size = new Size(48, 48),
573 Color = new Selector<Color>()
575 Normal = new Color("#17234D"),
576 Focused = new Color("#17234D"),
577 Pressed = new Color("#FF6200"),
578 Disabled = new Color("#CACACA"),
581 ThemeChangeSensitive = false,
583 Padding = new Extents(16, 16, 0, 0),
584 NavigationPadding = new Extents(0, 8, 0, 0),
585 ActionPadding = new Extents(16, 0, 0, 0),
586 ActionCellPadding = new Size2D(16, 0),
590 theme.AddStyleWithoutClone("Tizen.NUI.Components.Picker", new PickerStyle()
592 Size = new Size(160, 339),
593 ItemTextLabel = new TextLabelStyle()
595 //FIXME: Should be check PointSize. given size from UX is too large.
597 VerticalAlignment = VerticalAlignment.Center,
598 HorizontalAlignment = HorizontalAlignment.Center,
599 Size = new Size(0,72),
600 TextColor = new Selector<Color>()
602 Normal = new Color("#000C2B"),
604 BackgroundColor = Color.White,
606 Divider = new ViewStyle()
609 WidthResizePolicy = ResizePolicyType.FillToParent,
610 Position = new Position(0, 132),
611 BackgroundColor = new Color("#0A0E4A"),
613 StartScrollOffset = new Size(0, 12),
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(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),
757 // DatePicker base style
758 theme.AddStyleWithoutClone("Tizen.NUI.Components.DatePicker", new DatePickerStyle()
760 CellPadding = new Size(50, 339),
762 Pickers = new PickerStyle()
764 Size = new Size(160, 339),
765 ItemTextLabel = new TextLabelStyle()
767 //FIXME: Should be check PointSize. given size from UX is too large.
769 VerticalAlignment = VerticalAlignment.Center,
770 HorizontalAlignment = HorizontalAlignment.Center,
771 Size = new Size(0,72),
772 TextColor = new Color("#000C2B"),
773 BackgroundColor = Color.White,
774 ThemeChangeSensitive = false
776 Divider = new ViewStyle()
779 WidthResizePolicy = ResizePolicyType.FillToParent,
780 Position = new Position(0, 132),
781 BackgroundColor = new Color("#0A0E4A"),
783 StartScrollOffset = new Size2D(0, 12),
788 theme.AddStyleWithoutClone("Tizen.NUI.Components.Menu", new MenuStyle()
790 Content = new ViewStyle()
792 BackgroundColor = new Color("#FFFEFE"),
793 CornerRadius = 24.0f,
794 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
795 // FIXME: ScrollableBase with LinearLayout's Padding.Start is applied both Start and End.
796 // ScrollableBase with LinearLayout's Padding.Top is applied both Top and Bottom.
797 Padding = new Extents(32, 0, 16, 0),
801 // MenuItem base style
802 theme.AddStyleWithoutClone("Tizen.NUI.Components.MenuItem", new ButtonStyle()
804 Size = new Size(324, -2),
805 MinimumSize = new Size2D(0, 64),
806 BackgroundColor = new Color("#FFFEFE"),
808 // FIXME: ClippingModeType.ClipChildren cannot support anti-aliasing
809 // So not to show left bottom corner of MenuItem, MenuItem.Padding.Start is 0 and Menu.Content.Padding.Start is 32.
810 // (instead of MenuItem.Padding.Start 16 and Menu.Content.Padding.Start is 16)
811 Padding = new Extents(0, 0, 24, 24),
812 Text = new TextLabelStyle()
816 HorizontalAlignment = HorizontalAlignment.Begin,
817 VerticalAlignment = VerticalAlignment.Center,
818 TextColor = new Selector<Color>()
820 Normal = new Color("#090E21"),
821 Focused = new Color("#FF6200"),
822 Pressed = new Color("#FF6200"),
823 Disabled = new Color("#CACACA"),
824 Selected = new Color("#FF6200"),
826 ThemeChangeSensitive = false
828 Icon = new ImageViewStyle()
830 Color = new Selector<Color>()
832 Normal = new Color("#090E21"),
833 Focused = new Color("#FF6200"),
834 Pressed = new Color("#FF6200"),
835 Disabled = new Color("#CACACA"),
836 Selected = new Color("#FF6200"),
841 // AlertDialog base style
842 theme.AddStyleWithoutClone("Tizen.NUI.Components.DialogPage.Scrim", new ViewStyle()
844 BackgroundColor = new Color("#090E21"),
853 #endif // !PROFILE_WEARABLE