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 MinimumSize = new Size(252, 48),
43 Padding = new Extents(32, 32, 8, 8),
44 ItemSpacing = new Size2D(8, 8),
46 ItemHorizontalAlignment = HorizontalAlignment.Center,
47 ItemVerticalAlignment = VerticalAlignment.Center,
48 BackgroundColor = new Selector<Color>()
50 Normal = new Color(1.0f, 0.384f, 0.0f, 1),
51 Pressed = new Color(0.85f, 0.325f, 0.0f, 1),
52 Focused = new Color(1.0f, 0.827f, 0.624f, 1),
53 Selected = new Color(0.624f, 0.239f, 0.0f, 1),
54 Disabled = new Color(0.792f, 0.792f, 0.792f, 1),
56 Text = new TextLabelStyle()
58 TextColor = new Color("#FDFDFD"),
60 FontSizeScale = FontSizeScale.UseSystemSetting,
64 // Outlined Button style
65 theme.AddStyleWithoutClone("Tizen.NUI.Components.Button.Outlined", new ButtonStyle()
67 MinimumSize = new Size(252, 48),
68 Padding = new Extents(32, 32, 8, 8),
69 ItemSpacing = new Size2D(8, 8),
71 BorderlineWidth = 2.0f,
72 BorderlineColorSelector = new Selector<Color>()
74 Normal = new Color("#FF6200"),
75 Pressed = new Color("#FFA166"),
76 Focused = new Color("#FF7119"),
77 Selected = new Color("#FF8133"),
78 Disabled = new Color("#CACACA"),
80 ItemHorizontalAlignment = HorizontalAlignment.Center,
81 ItemVerticalAlignment = VerticalAlignment.Center,
82 BackgroundColor = Color.Transparent,
83 Text = new TextLabelStyle()
85 TextColor = new Selector<Color>()
87 Normal = new Color("#FF6200"),
88 Pressed = new Color("#FFA166"),
89 Focused = new Color("#FF7119"),
90 Selected = new Color("#FF8133"),
91 Disabled = new Color("#CACACA"),
94 FontSizeScale = FontSizeScale.UseSystemSetting,
98 // TextOnly Button style
99 theme.AddStyleWithoutClone("Tizen.NUI.Components.Button.TextOnly", new ButtonStyle()
101 MinimumSize = new Size(120, 48),
102 Padding = new Extents(32, 32, 8, 8),
103 ItemHorizontalAlignment = HorizontalAlignment.Center,
104 ItemVerticalAlignment = VerticalAlignment.Center,
105 BackgroundColor = Color.Transparent,
106 Text = new TextLabelStyle()
108 TextColor = new Selector<Color>()
110 Normal = new Color("#FF6200"),
111 Pressed = new Color("#FFA166"),
112 Focused = new Color("#FF7119"),
113 Selected = new Color("#FF8133"),
114 Disabled = new Color("#CACACA"),
117 FontSizeScale = FontSizeScale.UseSystemSetting,
121 // CheckBox base style
122 theme.AddStyleWithoutClone("Tizen.NUI.Components.CheckBox", new ButtonStyle()
124 Padding = new Extents(8, 8, 8, 8),
125 ItemSpacing = new Size2D(16, 16),
126 ItemHorizontalAlignment = HorizontalAlignment.Center,
127 ItemVerticalAlignment = VerticalAlignment.Center,
128 Icon = new ImageViewStyle()
130 Size = new Size(32, 32),
131 ResourceUrl = new Selector<string>()
133 Normal = FrameworkInformation.ResourcePath + "IoT_check_off.png",
134 Pressed = FrameworkInformation.ResourcePath + "IoT_check_off_p.png",
135 Disabled = FrameworkInformation.ResourcePath + "IoT_check_off_d.png",
136 Focused = FrameworkInformation.ResourcePath + "IoT_check_off_f.png",
137 Selected = FrameworkInformation.ResourcePath + "IoT_check_on.png",
138 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_check_on_p.png",
139 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_check_on_f.png",
140 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_check_on_d.png",
143 Text = new TextLabelStyle()
145 TextColor = new Color("#090E21"),
147 FontSizeScale = FontSizeScale.UseSystemSetting,
152 theme.AddStyleWithoutClone("Tizen.NUI.Components.Popup", new PopupStyle()
154 Size = new Size(500, 280),
155 BackgroundColor = new Color(0.9f, 0.9f, 0.9f, 1),
156 ImageShadow = new ImageShadow()
158 Url = FrameworkInformation.ResourcePath + "nui_component_default_popup_shadow.png",
159 Border = new Rectangle(24, 24, 24, 24),
160 Extents = new Vector2(48, 48)
162 Title = new TextLabelStyle()
165 Padding = new Extents(20, 20, 20, 20),
166 FontSizeScale = FontSizeScale.UseSystemSetting,
168 Buttons = new ButtonStyle()
172 BackgroundColor = new Selector<Color>()
174 Normal = new Color(1, 1, 1, 1),
175 Pressed = new Color(1, 1, 1, 0.5f),
177 Overlay = new ImageViewStyle()
179 BackgroundColor = new Selector<Color>()
181 Pressed = new Color(0, 0, 0, 0.1f),
182 Other = new Color(1, 1, 1, 0.1f),
185 Text = new TextLabelStyle()
187 TextColor = new Color(0.05f, 0.63f, 0.9f, 1),
188 FontSizeScale = FontSizeScale.UseSystemSetting,
193 // Progress base style
194 theme.AddStyleWithoutClone("Tizen.NUI.Components.Progress", new ProgressStyle()
196 Size = new Size(508, 16),
197 Track = new ImageViewStyle()
200 BackgroundColor = new Selector<Color>()
202 Normal = new Color(0.82f, 0.31f, 0.0f, 0.1f),
203 Disabled = new Color(0.82f, 0.31f, 0.0f, 0.1f),
206 Buffer = new ImageViewStyle()
209 BackgroundColor = new Color(0.82f, 0.31f, 0.0f, 0.1f),
211 Progress = new ImageViewStyle()
214 BackgroundColor = new Color("#D25000"),
216 IndeterminateImageUrl = FrameworkInformation.ResourcePath + "IoT_progress_indeterminate.png",
219 // RadioButton base style
220 theme.AddStyleWithoutClone("Tizen.NUI.Components.RadioButton", new ButtonStyle()
222 Padding = new Extents(8, 8, 8, 8),
223 ItemSpacing = new Size2D(16, 16),
224 ItemHorizontalAlignment = HorizontalAlignment.Center,
225 ItemVerticalAlignment = VerticalAlignment.Center,
226 Icon = new ImageViewStyle()
228 Size = new Size(32, 32),
229 ResourceUrl = new Selector<string>()
231 Normal = FrameworkInformation.ResourcePath + "IoT_radiobutton_off.png",
232 Pressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_p.png",
233 Disabled = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_d.png",
234 Focused = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_f.png",
235 Selected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on.png",
236 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_p.png",
237 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_f.png",
238 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_d.png",
241 Text = new TextLabelStyle()
243 TextColor = new Color("#090E21"),
245 FontSizeScale = FontSizeScale.UseSystemSetting,
250 theme.AddStyleWithoutClone("Tizen.NUI.Components.Slider", new SliderStyle()
252 Size = new Size(850, 50),
254 Track = new ImageViewStyle()
256 Size = new Size(800, 8),
258 BackgroundColor = new Selector<Color>()
260 Normal = new Color(1.0f, 0.37f, 0.0f, 0.1f),
261 Disabled = new Color(1.0f, 0.37f, 0.0f, 0.1f),
264 Progress = new ImageViewStyle()
266 Size = new Size(800, 8),
268 BackgroundColor = new Selector<Color>()
270 Normal = new Color("#FF6200"),
271 Disabled = new Color("#CACACA"),
274 Thumb = new ImageViewStyle()
276 Size = new Size(40, 40),
277 ResourceUrl = new Selector<string>()
279 Normal = FrameworkInformation.ResourcePath + "IoT_slider_handler_normal.png",
280 Pressed = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
281 Focused = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
282 Disabled = FrameworkInformation.ResourcePath + "IoT_slider_handler_disabled.png",
285 ValueIndicatorImage = new ImageViewStyle()
287 Size = new Size(43, 40),
288 BorderlineWidth = 1.0f,
289 BorderlineColor = new Color("#FF6200"),
290 BackgroundColor = new Color(1.0f, 1.0f, 1.0f, 0.0f),
291 CornerRadius = 12.0f,
293 ValueIndicatorText = new TextLabelStyle()
297 TextColor = new Color("#FF6200"),
298 FontSizeScale = FontSizeScale.UseSystemSetting,
303 theme.AddStyleWithoutClone("Tizen.NUI.Components.Switch", new SwitchStyle()
305 ItemSpacing = new Size2D(16, 16),
306 ItemHorizontalAlignment = HorizontalAlignment.Begin,
307 ItemVerticalAlignment = VerticalAlignment.Center,
308 Track = new ImageViewStyle()
310 Size = new Size(84, 44),
311 ResourceUrl = new Selector<string>()
313 Normal = FrameworkInformation.ResourcePath + "IoT_switch_track_off.png",
314 Pressed = FrameworkInformation.ResourcePath + "IoT_switch_track_off_p.png",
315 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_track_off_d.png",
316 Focused = FrameworkInformation.ResourcePath + "IoT_switch_track_off_f.png",
317 Selected = FrameworkInformation.ResourcePath + "IoT_switch_track_on.png",
318 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_track_on_p.png",
319 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_track_on_f.png",
320 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_switch_track_on_d.png",
323 Thumb = new ImageViewStyle()
325 Size = new Size(44, 44),
326 ResourceUrl = new Selector<string>()
328 Normal = FrameworkInformation.ResourcePath + "IoT_switch_thumb.png",
329 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_thumb_d.png",
330 Selected = FrameworkInformation.ResourcePath + "IoT_switch_thumb_s.png",
331 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sp.png",
332 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sf.png",
335 Text = new TextLabelStyle()
337 TextColor = new Color("#090E21"),
339 FontSizeScale = FontSizeScale.UseSystemSetting,
343 // Loading base style
344 theme.AddStyleWithoutClone("Tizen.NUI.Components.Loading", new LoadingStyle()
346 LoadingSize = new Size(200, 200),
349 // Pagination base style
350 theme.AddStyleWithoutClone("Tizen.NUI.Components.Pagination", new PaginationStyle()
352 Size = new Size(450, 24),
353 IndicatorImageUrl = new Selector<string>()
355 Normal = FrameworkInformation.ResourcePath + "nui_component_default_pagination_normal_dot.png",
356 Selected = FrameworkInformation.ResourcePath + "nui_component_default_pagination_focus_dot.png",
358 IndicatorSize = new Size(64, 8),
359 IndicatorSpacing = 16,
362 // Scrollbar base style
363 theme.AddStyleWithoutClone("Tizen.NUI.Components.Scrollbar", new ScrollbarStyle()
367 TrackColor = new Color(0f, 0f, 0f, 0f),
368 ThumbColor = new Color("#FFFEFE"),
370 //7.0 UX no require image resource.
371 Thumb = new ImageViewStyle()
374 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
376 //ThumbVerticalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_vbar.#.png",
377 //ThumbHorizontalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_hbar.#.png",
380 // LinearLayouter base style
381 theme.AddStyleWithoutClone("Tizen.NUI.Components.LinearLayouter", new ViewStyle()
383 Padding = new Extents(0, 0, 0, 0)
386 // GridLayouter base style
387 theme.AddStyleWithoutClone("Tizen.NUI.Components.GridLayouter", new ViewStyle()
389 Padding = new Extents(0, 0, 0, 0),
392 // ItemsLayouter base style
393 theme.AddStyleWithoutClone("Tizen.NUI.Components.ItemsLayouter", new ViewStyle()
395 Padding = new Extents(0, 0, 0, 0),
398 // RecyclerViewItem base style
399 theme.AddStyleWithoutClone("Tizen.NUI.Components.RecyclerViewItem", new RecyclerViewItemStyle()
401 BackgroundColor = new Selector<Color>()
403 Normal = new Color(1, 1, 1, 1),
404 Pressed = new Color(0.85f, 0.85f, 0.85f, 1),
405 Disabled = new Color(0.70f, 0.70f, 0.70f, 1),
406 Selected = new Color(0.701f, 0.898f, 0.937f, 1),
410 // DefaultLinearItem base style
411 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultLinearItem", new DefaultLinearItemStyle()
414 Padding = new Extents(16, 16, 0, 0),
415 Margin = new Extents(0, 0, 0, 0),
416 Label = new TextLabelStyle()
420 FontFamily = "SamsungOneUI600",
421 TextColor = new Selector<Color>()
423 Normal = new Color("#090E21"),
424 Pressed = new Color("#FF6200"),
425 Disabled = new Color("#CACACA"),
426 Selected = new Color("#FF6200"),
428 FontSizeScale = FontSizeScale.UseSystemSetting,
429 ThemeChangeSensitive = false
431 SubLabel = new TextLabelStyle()
435 FontFamily = "SamsungOneUI400",
436 TextColor = new Selector<Color>()
438 Normal = new Color("#090E21"),
439 Pressed = new Color("#FF6200"),
440 Disabled = new Color("#CACACA"),
441 Selected = new Color("#FF6200"),
443 FontSizeScale = FontSizeScale.UseSystemSetting,
444 ThemeChangeSensitive = false
446 Icon = new ViewStyle()
448 Margin = new Extents(0, 16, 0, 0)
450 Extra = new ViewStyle()
452 Margin = new Extents(16, 0, 0, 0)
456 // DefaultGridItem base style
457 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultGridItem", new DefaultGridItemStyle()
459 ClippingMode = ClippingModeType.ClipChildren,
460 Padding = new Extents(0, 0, 0, 0),
461 Margin = new Extents(5, 5, 5, 5),
462 CornerRadius = 12.0f,
463 BackgroundColor = new Selector<Color>()
465 Normal = new Color("#FAFAFA"),
466 Pressed = new Color(1f, 0.38f, 0, 0.2f),
467 Disabled = new Color("#FAFAFA"),
468 Selected = new Color(1f, 0.38f, 0, 0.2f),
470 Image = new ImageViewStyle()
472 //FIXME: Clip mode is not working on CornerRadius.
473 CornerRadius = 12.0f,
474 ClippingMode = ClippingModeType.ClipChildren,
476 Label = new TextLabelStyle()
480 FontFamily = "SamsungOneUI400",
481 LineWrapMode = LineWrapMode.Character,
482 TextColor = new Selector<Color>()
484 Normal = new Color("#090E21"),
485 Pressed = new Color("#FF6200"),
486 Disabled = new Color("#CACACA"),
487 Selected = new Color("#FF6200"),
489 FontSizeScale = FontSizeScale.UseSystemSetting,
490 ThemeChangeSensitive = false
492 Badge = new ViewStyle()
494 Margin = new Extents(0, 0, 0, 0),
496 BoxShadow = new Shadow(12.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 4.0f)),
499 // DefaultTitleItem base style
500 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultTitleItem", new DefaultTitleItemStyle()
503 Padding = new Extents(20, 20, 0, 0),
504 Margin = new Extents(0, 0, 0, 0),
505 BackgroundColor = Color.Transparent,
506 Label = new TextLabelStyle()
510 FontFamily = "SamsungOneUI400",
511 TextColor = new Color("#090E217F"),
512 FontSizeScale = FontSizeScale.UseSystemSetting,
513 ThemeChangeSensitive = false
515 Icon = new ViewStyle()
517 Margin = new Extents(24, 0, 0, 0)
519 Seperator = new ViewStyle()
521 Margin = new Extents(0, 0, 0, 0),
522 BackgroundColor = new Color(0, 0, 0, 0),
526 // ContentPage base style
527 theme.AddStyleWithoutClone("Tizen.NUI.Components.ContentPage", new ViewStyle()
529 BackgroundColor = new Color("#FAFAFA"),
530 CornerRadius = new Vector4(24.0f, 24.0f, 24.0f ,24.0f),
531 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
532 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
536 theme.AddStyleWithoutClone("Tizen.NUI.Components.AppBar", new AppBarStyle()
538 Size = new Size(-1, 64),
539 BackgroundColor = Color.Transparent,
540 BackButton = new ButtonStyle()
542 Size = new Size(48, 48),
544 BackgroundColor = Color.Transparent,
545 Icon = new ImageViewStyle()
547 Size = new Size(48, 48),
548 ResourceUrl = FrameworkInformation.ResourcePath + "nui_component_default_back_button.png",
549 Color = new Selector<Color>()
551 Normal = new Color("#17234D"),
552 Focused = new Color("#17234D"),
553 Pressed = new Color("#FF6200"),
554 Disabled = new Color("#CACACA"),
557 ThemeChangeSensitive = false
559 TitleTextLabel = new TextLabelStyle()
562 VerticalAlignment = VerticalAlignment.Center,
563 TextColor = new Selector<Color>()
565 Normal = new Color("#17234D"),
567 FontSizeScale = FontSizeScale.UseSystemSetting,
568 ThemeChangeSensitive = false
570 ActionView = new ViewStyle()
572 Size = new Size(48, 64),
574 BackgroundColor = Color.Transparent,
576 ActionButton = new ButtonStyle()
578 Size = new Size(-2, 64),
580 BackgroundColor = Color.Transparent,
581 Text = new TextLabelStyle()
584 TextColor = new Selector<Color>()
586 Normal = new Color("#FF6200"),
587 Focused = new Color("#FF6200"),
588 Pressed = new Color("#D95300"),
589 Disabled = new Color("#CACACA"),
591 FontSizeScale = FontSizeScale.UseSystemSetting,
593 Icon = new ImageViewStyle()
595 Size = new Size(48, 48),
596 Color = new Selector<Color>()
598 Normal = new Color("#17234D"),
599 Focused = new Color("#17234D"),
600 Pressed = new Color("#FF6200"),
601 Disabled = new Color("#CACACA"),
604 ThemeChangeSensitive = false,
606 Padding = new Extents(16, 16, 0, 0),
607 NavigationPadding = new Extents(0, 8, 0, 0),
608 ActionPadding = new Extents(16, 0, 0, 0),
609 ActionCellPadding = new Size2D(16, 0),
613 theme.AddStyleWithoutClone("Tizen.NUI.Components.Picker", new PickerStyle()
616 MinimumSize = new Size(80, -1),
617 ItemTextLabel = new TextLabelStyle()
620 VerticalAlignment = VerticalAlignment.Center,
621 HorizontalAlignment = HorizontalAlignment.Center,
623 TextColor = new Selector<Color>()
625 Normal = new Color(0.035f, 0.055f, 0.123f, 1.0f),
627 BackgroundColor = new Color("#FAFAFA"),
628 FontSizeScale = FontSizeScale.UseSystemSetting,
630 StartScrollOffset = new Size(0, 0),
634 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabBar", new ViewStyle()
636 Size = new Size(-1, -2),
637 Margin = new Extents(16, 16, 0, 0),
638 Padding = new Extents(14, 14, 0, 0),
639 CornerRadius = new Vector4(12.0f, 12.0f, 12.0f, 12.0f),
640 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
641 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
642 BackgroundColor = new Color("#FAFAFA"),
645 // TabButton base style
646 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabButton", new TabButtonStyle()
648 Size = new Size(-1, 72),
649 SizeWithIcon = new Size(-1, 116),
650 SizeWithIconOnly = new Size(-1, 64),
651 MinimumSize = new Size(80, 64),
652 Padding = new Extents(24, 24, 16, 16),
653 ItemSpacing = new Size2D(10, 10),
655 IconSizeWithIconOnly = new Size(32, 32),
656 TextSizeWithIcon = 16.0f,
657 BackgroundColor = new Selector<Color>()
659 Normal = new Color("#FAFAFA"),
660 Selected = new Color("#FFE0CC"),
661 Pressed = new Color("#FFCAA8"),
662 Focused = new Color("#FAFAFA"),
663 Disabled = new Color("#FAFAFA"),
665 Text = new TextLabelStyle()
668 Size = new Size(-2, -2),
669 TextColor = new Selector<Color>()
671 Normal = new Color("#090E21"),
672 Selected = new Color("#FF6200"),
673 Pressed = new Color("#FF6200"),
674 Focused = new Color("#FF6200"),
675 Disabled = new Color("#CACACA"),
677 FontSizeScale = FontSizeScale.UseSystemSetting,
678 ThemeChangeSensitive = false,
680 Icon = new ImageViewStyle()
682 Size = new Size(48, 48),
683 Color = new Selector<Color>()
685 Normal = new Color("#090E21"),
686 Selected = new Color("#FF6200"),
687 Pressed = new Color("#FF6200"),
688 Focused = new Color("#FF6200"),
689 Disabled = new Color("#CACACA"),
694 // NotificationToast base style
695 theme.AddStyleWithoutClone("NotificationToast", new TextLabelStyle()
697 BackgroundColor = new Color("#FAFAFA"),
698 CornerRadius = 12.0f,
699 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
700 TextColor = new Color("#090E21"),
702 WidthResizePolicy = ResizePolicyType.UseNaturalSize,
703 HeightResizePolicy = ResizePolicyType.UseNaturalSize,
704 PositionUsesPivotPoint = true,
705 HorizontalAlignment = HorizontalAlignment.Center,
706 VerticalAlignment = VerticalAlignment.Center,
707 Padding = new Extents(16, 16, 16, 16),
709 FontSizeScale = FontSizeScale.UseSystemSetting,
712 // AlertDialog base style
713 theme.AddStyleWithoutClone("Tizen.NUI.Components.AlertDialog", new AlertDialogStyle()
715 Size = new Size(-2, -2),
716 Padding = new Extents(32, 32, 32, 32),
717 ItemSpacing = new Size2D(0, 32),
718 BackgroundColor = new Color("#FAFAFA"),
719 CornerRadius = 12.0f,
720 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
721 TitleTextLabel = new TextLabelStyle()
723 Size = new Size(626, -2),
725 HorizontalAlignment = HorizontalAlignment.Center,
726 VerticalAlignment = VerticalAlignment.Center,
727 TextColor = new Color("#090E21"),
728 FontSizeScale = FontSizeScale.UseSystemSetting,
729 ThemeChangeSensitive = false,
731 MessageTextLabel = new TextLabelStyle()
733 Size = new Size(626, -2),
736 HorizontalAlignment = HorizontalAlignment.Center,
737 VerticalAlignment = VerticalAlignment.Center,
738 TextColor = new Color("#090E21"),
739 FontSizeScale = FontSizeScale.UseSystemSetting,
740 ThemeChangeSensitive = false,
742 ActionContent = new ViewStyle()
744 Size = new Size(626, -2),
748 // TimePicker base style
749 theme.AddStyleWithoutClone("Tizen.NUI.Components.TimePicker", new TimePickerStyle()
751 CellPadding = new Size(12, 220),
753 Pickers = new PickerStyle()
755 Size = new Size(80, 220),
756 ItemTextLabel = new TextLabelStyle()
759 VerticalAlignment = VerticalAlignment.Center,
760 HorizontalAlignment = HorizontalAlignment.Center,
762 TextColor = new Selector<Color>()
764 Normal = new Color(0.035f, 0.055f, 0.123f, 1.0f),
766 BackgroundColor = new Color("#FAFAFA"),
767 FontSizeScale = FontSizeScale.UseSystemSetting,
768 ThemeChangeSensitive = false
770 StartScrollOffset = new Size2D(0, 0),
774 // DatePicker base style
775 theme.AddStyleWithoutClone("Tizen.NUI.Components.DatePicker", new DatePickerStyle()
777 CellPadding = new Size(12, 220),
779 Pickers = new PickerStyle()
781 Size = new Size(80, 220),
782 ItemTextLabel = new TextLabelStyle()
785 VerticalAlignment = VerticalAlignment.Center,
786 HorizontalAlignment = HorizontalAlignment.Center,
788 TextColor = new Selector<Color>()
790 Normal = new Color(0.035f, 0.055f, 0.123f, 1.0f),
792 BackgroundColor = new Color("#FAFAFA"),
793 FontSizeScale = FontSizeScale.UseSystemSetting,
794 ThemeChangeSensitive = false
796 StartScrollOffset = new Size2D(0, 0),
801 theme.AddStyleWithoutClone("Tizen.NUI.Components.Menu", new MenuStyle()
803 BackgroundColor = Color.Transparent,
804 Content = new ViewStyle()
806 BackgroundColor = new Color("#FFFEFE"),
807 CornerRadius = 24.0f,
808 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
809 // FIXME: ScrollableBase with LinearLayout's Padding.Start is applied both Start and End.
810 // ScrollableBase with LinearLayout's Padding.Top is applied both Top and Bottom.
811 Padding = new Extents(32, 0, 16, 0),
815 // MenuItem base style
816 theme.AddStyleWithoutClone("Tizen.NUI.Components.MenuItem", new ButtonStyle()
818 Size = new Size(324, -2),
819 MinimumSize = new Size2D(0, 64),
820 BackgroundColor = new Color("#FFFEFE"),
822 // FIXME: ClippingModeType.ClipChildren cannot support anti-aliasing
823 // So not to show left bottom corner of MenuItem, MenuItem.Padding.Start is 0 and Menu.Content.Padding.Start is 32.
824 // (instead of MenuItem.Padding.Start 16 and Menu.Content.Padding.Start is 16)
825 Padding = new Extents(0, 0, 24, 24),
826 Text = new TextLabelStyle()
830 HorizontalAlignment = HorizontalAlignment.Begin,
831 VerticalAlignment = VerticalAlignment.Center,
832 TextColor = new Selector<Color>()
834 Normal = new Color("#090E21"),
835 Focused = new Color("#FF6200"),
836 Pressed = new Color("#FF6200"),
837 Disabled = new Color("#CACACA"),
838 Selected = new Color("#FF6200"),
840 FontSizeScale = FontSizeScale.UseSystemSetting,
841 ThemeChangeSensitive = false
843 Icon = new ImageViewStyle()
845 Color = new Selector<Color>()
847 Normal = new Color("#090E21"),
848 Focused = new Color("#FF6200"),
849 Pressed = new Color("#FF6200"),
850 Disabled = new Color("#CACACA"),
851 Selected = new Color("#FF6200"),
856 // AlertDialog base style
857 theme.AddStyleWithoutClone("Tizen.NUI.Components.DialogPage.Scrim", new ViewStyle()
859 BackgroundColor = new Color("#090E21"),
868 #endif // !PROFILE_WEARABLE