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 Padding = new Extents(32, 32, 8, 8),
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"),
59 FontSizeScale = FontSizeScale.UseSystemSetting,
63 // Outlined Button style
64 theme.AddStyleWithoutClone("Tizen.NUI.Components.Button.Outlined", new ButtonStyle()
66 Padding = new Extents(32, 32, 8, 8),
67 ItemSpacing = new Size2D(8, 8),
69 BorderlineWidth = 2.0f,
70 BorderlineColorSelector = new Selector<Color>()
72 Normal = new Color("#FF6200"),
73 Pressed = new Color("#FFA166"),
74 Focused = new Color("#FF7119"),
75 Selected = new Color("#FF8133"),
76 Disabled = new Color("#CACACA"),
78 ItemHorizontalAlignment = HorizontalAlignment.Center,
79 ItemVerticalAlignment = VerticalAlignment.Center,
80 BackgroundColor = Color.Transparent,
81 Text = new TextLabelStyle()
83 TextColor = new Selector<Color>()
85 Normal = new Color("#FF6200"),
86 Pressed = new Color("#FFA166"),
87 Focused = new Color("#FF7119"),
88 Selected = new Color("#FF8133"),
89 Disabled = new Color("#CACACA"),
92 FontSizeScale = FontSizeScale.UseSystemSetting,
96 // TextOnly Button style
97 theme.AddStyleWithoutClone("Tizen.NUI.Components.Button.TextOnly", new ButtonStyle()
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"),
114 FontSizeScale = FontSizeScale.UseSystemSetting,
118 // CheckBox base style
119 theme.AddStyleWithoutClone("Tizen.NUI.Components.CheckBox", new ButtonStyle()
121 Padding = new Extents(8, 8, 8, 8),
122 ItemSpacing = new Size2D(16, 16),
123 ItemHorizontalAlignment = HorizontalAlignment.Center,
124 ItemVerticalAlignment = VerticalAlignment.Center,
125 Icon = new ImageViewStyle()
127 Size = new Size(32, 32),
128 ResourceUrl = new Selector<string>()
130 Normal = FrameworkInformation.ResourcePath + "IoT_check_off.png",
131 Pressed = FrameworkInformation.ResourcePath + "IoT_check_off_p.png",
132 Disabled = FrameworkInformation.ResourcePath + "IoT_check_off_d.png",
133 Focused = FrameworkInformation.ResourcePath + "IoT_check_off_f.png",
134 Selected = FrameworkInformation.ResourcePath + "IoT_check_on.png",
135 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_check_on_p.png",
136 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_check_on_f.png",
137 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_check_on_d.png",
140 Text = new TextLabelStyle()
142 TextColor = new Color("#090E21"),
144 FontSizeScale = FontSizeScale.UseSystemSetting,
149 theme.AddStyleWithoutClone("Tizen.NUI.Components.Popup", new PopupStyle()
151 Size = new Size(500, 280),
152 BackgroundColor = new Color(0.9f, 0.9f, 0.9f, 1),
153 ImageShadow = new ImageShadow()
155 Url = FrameworkInformation.ResourcePath + "nui_component_default_popup_shadow.png",
156 Border = new Rectangle(24, 24, 24, 24),
157 Extents = new Vector2(48, 48)
159 Title = new TextLabelStyle()
162 Padding = new Extents(20, 20, 20, 20),
163 FontSizeScale = FontSizeScale.UseSystemSetting,
165 Buttons = new ButtonStyle()
169 BackgroundColor = new Selector<Color>()
171 Normal = new Color(1, 1, 1, 1),
172 Pressed = new Color(1, 1, 1, 0.5f),
174 Overlay = new ImageViewStyle()
176 BackgroundColor = new Selector<Color>()
178 Pressed = new Color(0, 0, 0, 0.1f),
179 Other = new Color(1, 1, 1, 0.1f),
182 Text = new TextLabelStyle()
184 TextColor = new Color(0.05f, 0.63f, 0.9f, 1),
185 FontSizeScale = FontSizeScale.UseSystemSetting,
190 // Progress base style
191 theme.AddStyleWithoutClone("Tizen.NUI.Components.Progress", new ProgressStyle()
193 Size = new Size(508, 16),
194 Track = new ImageViewStyle()
197 BackgroundColor = new Selector<Color>()
199 Normal = new Color(0.82f, 0.31f, 0.0f, 0.1f),
200 Disabled = new Color(0.82f, 0.31f, 0.0f, 0.1f),
203 Buffer = new ImageViewStyle()
206 BackgroundColor = new Color(0.82f, 0.31f, 0.0f, 0.1f),
208 Progress = new ImageViewStyle()
211 BackgroundColor = new Color("#D25000"),
213 IndeterminateImageUrl = FrameworkInformation.ResourcePath + "IoT_progress_indeterminate.png",
216 // RadioButton base style
217 theme.AddStyleWithoutClone("Tizen.NUI.Components.RadioButton", new ButtonStyle()
219 Padding = new Extents(8, 8, 8, 8),
220 ItemSpacing = new Size2D(16, 16),
221 ItemHorizontalAlignment = HorizontalAlignment.Center,
222 ItemVerticalAlignment = VerticalAlignment.Center,
223 Icon = new ImageViewStyle()
225 Size = new Size(32, 32),
226 ResourceUrl = new Selector<string>()
228 Normal = FrameworkInformation.ResourcePath + "IoT_radiobutton_off.png",
229 Pressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_p.png",
230 Disabled = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_d.png",
231 Focused = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_f.png",
232 Selected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on.png",
233 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_p.png",
234 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_f.png",
235 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_d.png",
238 Text = new TextLabelStyle()
240 TextColor = new Color("#090E21"),
242 FontSizeScale = FontSizeScale.UseSystemSetting,
247 theme.AddStyleWithoutClone("Tizen.NUI.Components.Slider", new SliderStyle()
249 Size = new Size(850, 50),
251 Track = new ImageViewStyle()
253 Size = new Size(800, 8),
255 BackgroundColor = new Selector<Color>()
257 Normal = new Color(1.0f, 0.37f, 0.0f, 0.1f),
258 Disabled = new Color(1.0f, 0.37f, 0.0f, 0.1f),
261 Progress = new ImageViewStyle()
263 Size = new Size(800, 8),
265 BackgroundColor = new Selector<Color>()
267 Normal = new Color("#FF6200"),
268 Disabled = new Color("#CACACA"),
271 Thumb = new ImageViewStyle()
273 WidthResizePolicy = ResizePolicyType.UseNaturalSize,
274 HeightResizePolicy = ResizePolicyType.UseNaturalSize,
275 ResourceUrl = new Selector<string>()
277 Normal = FrameworkInformation.ResourcePath + "IoT_slider_handler_normal.png",
278 Pressed = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
279 Focused = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
280 Disabled = FrameworkInformation.ResourcePath + "IoT_slider_handler_disabled.png",
283 ValueIndicatorImage = new ImageViewStyle()
286 WidthResizePolicy = ResizePolicyType.FitToChildren,
287 Margin = new Extents(8, 8, 0, 0),
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()
296 WidthResizePolicy = ResizePolicyType.UseNaturalSize,
298 TextColor = new Color("#FF6200"),
299 FontSizeScale = FontSizeScale.UseSystemSetting,
304 theme.AddStyleWithoutClone("Tizen.NUI.Components.Switch", new SwitchStyle()
306 ItemSpacing = new Size2D(16, 16),
307 ItemHorizontalAlignment = HorizontalAlignment.Begin,
308 ItemVerticalAlignment = VerticalAlignment.Center,
309 Track = new ImageViewStyle()
311 Size = new Size(84, 44),
312 ResourceUrl = new Selector<string>()
314 Normal = FrameworkInformation.ResourcePath + "IoT_switch_track_off.png",
315 Pressed = FrameworkInformation.ResourcePath + "IoT_switch_track_off_p.png",
316 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_track_off_d.png",
317 Focused = FrameworkInformation.ResourcePath + "IoT_switch_track_off_f.png",
318 Selected = FrameworkInformation.ResourcePath + "IoT_switch_track_on.png",
319 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_track_on_p.png",
320 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_track_on_f.png",
321 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_switch_track_on_d.png",
324 Thumb = new ImageViewStyle()
326 Size = new Size(44, 44),
327 ResourceUrl = new Selector<string>()
329 Normal = FrameworkInformation.ResourcePath + "IoT_switch_thumb.png",
330 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_thumb_d.png",
331 Selected = FrameworkInformation.ResourcePath + "IoT_switch_thumb_s.png",
332 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sp.png",
333 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sf.png",
336 Text = new TextLabelStyle()
338 TextColor = new Color("#090E21"),
340 FontSizeScale = FontSizeScale.UseSystemSetting,
344 // Loading base style
345 theme.AddStyleWithoutClone("Tizen.NUI.Components.Loading", new LoadingStyle()
347 LoadingSize = new Size(200, 200),
350 // Pagination base style
351 theme.AddStyleWithoutClone("Tizen.NUI.Components.Pagination", new PaginationStyle()
353 Size = new Size(450, 24),
354 IndicatorImageUrl = new Selector<string>()
356 Normal = FrameworkInformation.ResourcePath + "nui_component_default_pagination_normal_dot.png",
357 Selected = FrameworkInformation.ResourcePath + "nui_component_default_pagination_focus_dot.png",
359 IndicatorSize = new Size(64, 8),
360 IndicatorSpacing = 16,
363 // Scrollbar base style
364 theme.AddStyleWithoutClone("Tizen.NUI.Components.Scrollbar", new ScrollbarStyle()
368 TrackColor = new Color(0f, 0f, 0f, 0f),
369 ThumbColor = new Color("#FFFEFE"),
371 //7.0 UX no require image resource.
372 Thumb = new ImageViewStyle()
375 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
377 //ThumbVerticalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_vbar.#.png",
378 //ThumbHorizontalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_hbar.#.png",
381 // LinearLayouter base style
382 theme.AddStyleWithoutClone("Tizen.NUI.Components.LinearLayouter", new ViewStyle()
384 Padding = new Extents(0, 0, 0, 0)
387 // GridLayouter base style
388 theme.AddStyleWithoutClone("Tizen.NUI.Components.GridLayouter", new ViewStyle()
390 Padding = new Extents(0, 0, 0, 0),
393 // ItemsLayouter base style
394 theme.AddStyleWithoutClone("Tizen.NUI.Components.ItemsLayouter", new ViewStyle()
396 Padding = new Extents(0, 0, 0, 0),
399 // RecyclerViewItem base style
400 theme.AddStyleWithoutClone("Tizen.NUI.Components.RecyclerViewItem", new RecyclerViewItemStyle()
402 BackgroundColor = new Selector<Color>()
404 Normal = new Color(1, 1, 1, 1),
405 Pressed = new Color(0.85f, 0.85f, 0.85f, 1),
406 Disabled = new Color(0.70f, 0.70f, 0.70f, 1),
407 Selected = new Color(0.701f, 0.898f, 0.937f, 1),
411 // DefaultLinearItem base style
412 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultLinearItem", new DefaultLinearItemStyle()
415 Padding = new Extents(16, 16, 0, 0),
416 Margin = new Extents(0, 0, 0, 0),
417 Label = new TextLabelStyle()
421 FontFamily = "SamsungOneUI600",
422 TextColor = new Selector<Color>()
424 Normal = new Color("#090E21"),
425 Pressed = new Color("#FF6200"),
426 Disabled = new Color("#CACACA"),
427 Selected = new Color("#FF6200"),
429 FontSizeScale = FontSizeScale.UseSystemSetting,
430 ThemeChangeSensitive = false
432 SubLabel = new TextLabelStyle()
436 FontFamily = "SamsungOneUI400",
437 TextColor = new Selector<Color>()
439 Normal = new Color("#090E21"),
440 Pressed = new Color("#FF6200"),
441 Disabled = new Color("#CACACA"),
442 Selected = new Color("#FF6200"),
444 FontSizeScale = FontSizeScale.UseSystemSetting,
445 ThemeChangeSensitive = false
447 Icon = new ViewStyle()
449 Margin = new Extents(0, 16, 0, 0)
451 Extra = new ViewStyle()
453 Margin = new Extents(16, 0, 0, 0)
457 // DefaultGridItem base style
458 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultGridItem", new DefaultGridItemStyle()
460 ClippingMode = ClippingModeType.ClipChildren,
461 Padding = new Extents(0, 0, 0, 0),
462 Margin = new Extents(5, 5, 5, 5),
463 CornerRadius = 12.0f,
464 BackgroundColor = new Selector<Color>()
466 Normal = new Color("#FAFAFA"),
467 Pressed = new Color(1f, 0.38f, 0, 0.2f),
468 Disabled = new Color("#FAFAFA"),
469 Selected = new Color(1f, 0.38f, 0, 0.2f),
471 Image = new ImageViewStyle()
473 //FIXME: Clip mode is not working on CornerRadius.
474 CornerRadius = 12.0f,
475 ClippingMode = ClippingModeType.ClipChildren,
477 Label = new TextLabelStyle()
481 FontFamily = "SamsungOneUI400",
482 LineWrapMode = LineWrapMode.Character,
483 TextColor = new Selector<Color>()
485 Normal = new Color("#090E21"),
486 Pressed = new Color("#FF6200"),
487 Disabled = new Color("#CACACA"),
488 Selected = new Color("#FF6200"),
490 FontSizeScale = FontSizeScale.UseSystemSetting,
491 ThemeChangeSensitive = false
493 Badge = new ViewStyle()
495 Margin = new Extents(0, 0, 0, 0),
497 BoxShadow = new Shadow(12.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 4.0f)),
500 // DefaultTitleItem base style
501 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultTitleItem", new DefaultTitleItemStyle()
504 Padding = new Extents(20, 20, 0, 0),
505 Margin = new Extents(0, 0, 0, 0),
506 BackgroundColor = Color.Transparent,
507 Label = new TextLabelStyle()
511 FontFamily = "SamsungOneUI400",
512 TextColor = new Color("#090E217F"),
513 FontSizeScale = FontSizeScale.UseSystemSetting,
514 ThemeChangeSensitive = false
516 Icon = new ViewStyle()
518 Margin = new Extents(24, 0, 0, 0)
520 Seperator = new ViewStyle()
522 Margin = new Extents(0, 0, 0, 0),
523 BackgroundColor = new Color(0, 0, 0, 0),
527 // ContentPage base style
528 theme.AddStyleWithoutClone("Tizen.NUI.Components.ContentPage", new ViewStyle()
530 BackgroundColor = new Color("#FAFAFA"),
531 CornerRadius = new Vector4(24.0f, 24.0f, 24.0f ,24.0f),
532 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
533 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
537 theme.AddStyleWithoutClone("Tizen.NUI.Components.AppBar", new AppBarStyle()
539 Size = new Size(-1, 64),
540 BackgroundColor = Color.Transparent,
541 BackButton = new ButtonStyle()
543 Size = new Size(48, 48),
545 BackgroundColor = Color.Transparent,
546 Icon = new ImageViewStyle()
548 Size = new Size(48, 48),
549 ResourceUrl = FrameworkInformation.ResourcePath + "nui_component_default_back_button.png",
550 Color = new Selector<Color>()
552 Normal = new Color("#17234D"),
553 Focused = new Color("#17234D"),
554 Pressed = new Color("#FF6200"),
555 Disabled = new Color("#CACACA"),
558 ThemeChangeSensitive = false
560 TitleTextLabel = new TextLabelStyle()
563 VerticalAlignment = VerticalAlignment.Center,
564 TextColor = new Selector<Color>()
566 Normal = new Color("#17234D"),
568 FontSizeScale = FontSizeScale.UseSystemSetting,
569 ThemeChangeSensitive = false
571 ActionView = new ViewStyle()
573 Size = new Size(48, 64),
575 BackgroundColor = Color.Transparent,
577 ActionButton = new ButtonStyle()
579 Size = new Size(-2, 64),
581 BackgroundColor = Color.Transparent,
582 Text = new TextLabelStyle()
585 TextColor = new Selector<Color>()
587 Normal = new Color("#FF6200"),
588 Focused = new Color("#FF6200"),
589 Pressed = new Color("#D95300"),
590 Disabled = new Color("#CACACA"),
592 FontSizeScale = FontSizeScale.UseSystemSetting,
594 Icon = new ImageViewStyle()
596 Size = new Size(48, 48),
597 Color = new Selector<Color>()
599 Normal = new Color("#17234D"),
600 Focused = new Color("#17234D"),
601 Pressed = new Color("#FF6200"),
602 Disabled = new Color("#CACACA"),
605 ThemeChangeSensitive = false,
607 Padding = new Extents(16, 16, 0, 0),
608 NavigationPadding = new Extents(0, 8, 0, 0),
609 ActionPadding = new Extents(16, 0, 0, 0),
610 ActionCellPadding = new Size2D(16, 0),
614 theme.AddStyleWithoutClone("Tizen.NUI.Components.Picker", new PickerStyle()
617 MinimumSize = new Size(80, -1),
618 ItemTextLabel = new TextLabelStyle()
621 VerticalAlignment = VerticalAlignment.Center,
622 HorizontalAlignment = HorizontalAlignment.Center,
624 TextColor = new Selector<Color>()
626 Normal = new Color(0.035f, 0.055f, 0.123f, 1.0f),
628 BackgroundColor = new Color("#FAFAFA"),
629 FontSizeScale = FontSizeScale.UseSystemSetting,
631 StartScrollOffset = new Size(0, 0),
635 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabBar", new ViewStyle()
637 Size = new Size(-1, -2),
638 Margin = new Extents(16, 16, 0, 0),
639 Padding = new Extents(14, 14, 0, 0),
640 CornerRadius = new Vector4(12.0f, 12.0f, 12.0f, 12.0f),
641 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
642 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
643 BackgroundColor = new Color("#FAFAFA"),
646 // TabButton base style
647 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabButton", new TabButtonStyle()
649 Size = new Size(-1, 72),
650 SizeWithIcon = new Size(-1, 116),
651 SizeWithIconOnly = new Size(-1, 64),
652 MinimumSize = new Size(80, 64),
653 Padding = new Extents(24, 24, 16, 16),
654 ItemSpacing = new Size2D(10, 10),
656 IconSizeWithIconOnly = new Size(32, 32),
657 TextSizeWithIcon = 16.0f,
658 BackgroundColor = new Selector<Color>()
660 Normal = new Color("#FAFAFA"),
661 Selected = new Color("#FFE0CC"),
662 Pressed = new Color("#FFCAA8"),
663 Focused = new Color("#FAFAFA"),
664 Disabled = new Color("#FAFAFA"),
666 Text = new TextLabelStyle()
669 Size = new Size(-2, -2),
670 TextColor = new Selector<Color>()
672 Normal = new Color("#090E21"),
673 Selected = new Color("#FF6200"),
674 Pressed = new Color("#FF6200"),
675 Focused = new Color("#FF6200"),
676 Disabled = new Color("#CACACA"),
678 FontSizeScale = FontSizeScale.UseSystemSetting,
679 ThemeChangeSensitive = false,
681 Icon = new ImageViewStyle()
683 Size = new Size(48, 48),
684 Color = new Selector<Color>()
686 Normal = new Color("#090E21"),
687 Selected = new Color("#FF6200"),
688 Pressed = new Color("#FF6200"),
689 Focused = new Color("#FF6200"),
690 Disabled = new Color("#CACACA"),
695 // NotificationToast base style
696 theme.AddStyleWithoutClone("NotificationToast", new TextLabelStyle()
698 BackgroundColor = new Color("#FAFAFA"),
699 CornerRadius = 12.0f,
700 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
701 TextColor = new Color("#090E21"),
703 WidthResizePolicy = ResizePolicyType.UseNaturalSize,
704 HeightResizePolicy = ResizePolicyType.UseNaturalSize,
705 PositionUsesPivotPoint = true,
706 HorizontalAlignment = HorizontalAlignment.Center,
707 VerticalAlignment = VerticalAlignment.Center,
708 Padding = new Extents(16, 16, 16, 16),
710 FontSizeScale = FontSizeScale.UseSystemSetting,
713 // AlertDialog base style
714 theme.AddStyleWithoutClone("Tizen.NUI.Components.AlertDialog", new AlertDialogStyle()
716 Size = new Size(-2, -2),
717 Padding = new Extents(32, 32, 32, 32),
718 ItemSpacing = new Size2D(0, 32),
719 BackgroundColor = new Color("#FAFAFA"),
720 CornerRadius = 12.0f,
721 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
722 TitleTextLabel = new TextLabelStyle()
724 Size = new Size(626, -2),
726 HorizontalAlignment = HorizontalAlignment.Center,
727 VerticalAlignment = VerticalAlignment.Center,
728 TextColor = new Color("#090E21"),
729 FontSizeScale = FontSizeScale.UseSystemSetting,
730 ThemeChangeSensitive = false,
732 MessageTextLabel = new TextLabelStyle()
734 Size = new Size(626, -2),
737 HorizontalAlignment = HorizontalAlignment.Center,
738 VerticalAlignment = VerticalAlignment.Center,
739 TextColor = new Color("#090E21"),
740 FontSizeScale = FontSizeScale.UseSystemSetting,
741 ThemeChangeSensitive = false,
743 ActionContent = new ViewStyle()
745 Size = new Size(626, -2),
749 // TimePicker base style
750 theme.AddStyleWithoutClone("Tizen.NUI.Components.TimePicker", new TimePickerStyle()
752 CellPadding = new Size(12, 220),
754 Pickers = new PickerStyle()
756 Size = new Size(80, 220),
757 ItemTextLabel = new TextLabelStyle()
760 VerticalAlignment = VerticalAlignment.Center,
761 HorizontalAlignment = HorizontalAlignment.Center,
763 TextColor = new Selector<Color>()
765 Normal = new Color(0.035f, 0.055f, 0.123f, 1.0f),
767 BackgroundColor = new Color("#FAFAFA"),
768 FontSizeScale = FontSizeScale.UseSystemSetting,
769 ThemeChangeSensitive = false
771 StartScrollOffset = new Size2D(0, 0),
775 // DatePicker base style
776 theme.AddStyleWithoutClone("Tizen.NUI.Components.DatePicker", new DatePickerStyle()
778 CellPadding = new Size(12, 220),
780 Pickers = new PickerStyle()
782 Size = new Size(80, 220),
783 ItemTextLabel = new TextLabelStyle()
786 VerticalAlignment = VerticalAlignment.Center,
787 HorizontalAlignment = HorizontalAlignment.Center,
789 TextColor = new Selector<Color>()
791 Normal = new Color(0.035f, 0.055f, 0.123f, 1.0f),
793 BackgroundColor = new Color("#FAFAFA"),
794 FontSizeScale = FontSizeScale.UseSystemSetting,
795 ThemeChangeSensitive = false
797 StartScrollOffset = new Size2D(0, 0),
802 theme.AddStyleWithoutClone("Tizen.NUI.Components.Menu", new MenuStyle()
804 BackgroundColor = Color.Transparent,
805 Content = new ViewStyle()
807 BackgroundColor = new Color("#FFFEFE"),
808 CornerRadius = 24.0f,
809 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
810 // FIXME: ScrollableBase with LinearLayout's Padding.Start is applied both Start and End.
811 // ScrollableBase with LinearLayout's Padding.Top is applied both Top and Bottom.
812 Padding = new Extents(32, 0, 16, 0),
816 // MenuItem base style
817 theme.AddStyleWithoutClone("Tizen.NUI.Components.MenuItem", new ButtonStyle()
819 Size = new Size(324, -2),
820 MinimumSize = new Size2D(0, 64),
821 BackgroundColor = new Color("#FFFEFE"),
823 // FIXME: ClippingModeType.ClipChildren cannot support anti-aliasing
824 // So not to show left bottom corner of MenuItem, MenuItem.Padding.Start is 0 and Menu.Content.Padding.Start is 32.
825 // (instead of MenuItem.Padding.Start 16 and Menu.Content.Padding.Start is 16)
826 Padding = new Extents(0, 0, 24, 24),
827 Text = new TextLabelStyle()
831 HorizontalAlignment = HorizontalAlignment.Begin,
832 VerticalAlignment = VerticalAlignment.Center,
833 TextColor = new Selector<Color>()
835 Normal = new Color("#090E21"),
836 Focused = new Color("#FF6200"),
837 Pressed = new Color("#FF6200"),
838 Disabled = new Color("#CACACA"),
839 Selected = new Color("#FF6200"),
841 FontSizeScale = FontSizeScale.UseSystemSetting,
842 ThemeChangeSensitive = false
844 Icon = new ImageViewStyle()
846 Color = new Selector<Color>()
848 Normal = new Color("#090E21"),
849 Focused = new Color("#FF6200"),
850 Pressed = new Color("#FF6200"),
851 Disabled = new Color("#CACACA"),
852 Selected = new Color("#FF6200"),
857 // AlertDialog base style
858 theme.AddStyleWithoutClone("Tizen.NUI.Components.DialogPage.Scrim", new ViewStyle()
860 BackgroundColor = new Color("#090E21"),
869 #endif // !PROFILE_WEARABLE