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(339, 96),
44 ItemHorizontalAlignment = HorizontalAlignment.Center,
45 ItemVerticalAlignment = VerticalAlignment.Center,
46 BackgroundColor = new Selector<Color>()
48 Normal = new Color(1.0f, 0.384f, 0.0f, 1),
49 Pressed = new Color(0.85f, 0.325f, 0.0f, 1),
50 Focused = new Color(0, 0.2f, 0.545f, 1),
51 Disabled = new Color(0.792f, 0.792f, 0.792f, 1),
53 Text = new TextLabelStyle()
55 TextColor = Color.White,
60 // CheckBox base style
61 theme.AddStyleWithoutClone("Tizen.NUI.Components.CheckBox", new ButtonStyle()
63 ItemSpacing = new Size2D(32, 32),
64 ItemHorizontalAlignment = HorizontalAlignment.Begin,
65 ItemVerticalAlignment = VerticalAlignment.Center,
66 Icon = new ImageViewStyle()
68 Size = new Size(36, 36),
69 ResourceUrl = new Selector<string>()
71 Normal = FrameworkInformation.ResourcePath + "IoT_check_off.png",
72 Pressed = FrameworkInformation.ResourcePath + "IoT_check_off_p.png",
73 Disabled = FrameworkInformation.ResourcePath + "IoT_check_off_d.png",
74 Focused = FrameworkInformation.ResourcePath + "IoT_check_off_f.png",
75 Selected = FrameworkInformation.ResourcePath + "IoT_check_on.png",
76 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_check_on_p.png",
77 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_check_on_f.png",
78 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_check_on_d.png",
81 Text = new TextLabelStyle()
83 TextColor = new Color("#001447"),
89 theme.AddStyleWithoutClone("Tizen.NUI.Components.Popup", new PopupStyle()
91 Size = new Size(500, 280),
92 BackgroundColor = new Color(0.9f, 0.9f, 0.9f, 1),
93 ImageShadow = new ImageShadow()
95 Url = FrameworkInformation.ResourcePath + "nui_component_default_popup_shadow.png",
96 Border = new Rectangle(24, 24, 24, 24),
97 Extents = new Vector2(48, 48)
99 Title = new TextLabelStyle()
102 Padding = new Extents(20, 20, 20, 20),
104 Buttons = new ButtonStyle()
106 Size = new Size(0, 80),
108 BackgroundColor = new Selector<Color>()
110 Normal = new Color(1, 1, 1, 1),
111 Pressed = new Color(1, 1, 1, 0.5f),
113 Overlay = new ImageViewStyle()
115 BackgroundColor = new Selector<Color>()
117 Pressed = new Color(0, 0, 0, 0.1f),
118 Other = new Color(1, 1, 1, 0.1f),
121 Text = new TextLabelStyle()
123 TextColor = new Color(0.05f, 0.63f, 0.9f, 1),
128 // Progress base style
129 theme.AddStyleWithoutClone("Tizen.NUI.Components.Progress", new ProgressStyle()
131 Size = new Size(200, 25),
132 Track = new ImageViewStyle()
134 BorderlineWidth = 0.5f,
135 BorderlineColor = new Color(0.92f, 0.93f, 0.94f, 1.0f),
136 BackgroundColor = new Selector<Color>()
138 Normal = new Color(1.0f, 1.0f, 1.0f, 0.5f),
139 Disabled = new Color(0.73f, 0.76f, 0.79f, 1),
142 Buffer = new ImageViewStyle()
144 BackgroundColor = new Color(0.05f, 0.63f, 0.9f, 0.3f),
146 Progress = new ImageViewStyle()
148 BackgroundColor = new Color(0.03f, 0.05f, 0.29f, 1),
150 IndeterminateImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_progress_indeterminate.png",
153 // RadioButton base style
154 theme.AddStyleWithoutClone("Tizen.NUI.Components.RadioButton", new ButtonStyle()
156 ItemSpacing = new Size2D(32, 32),
157 ItemHorizontalAlignment = HorizontalAlignment.Begin,
158 ItemVerticalAlignment = VerticalAlignment.Center,
159 Icon = new ImageViewStyle()
161 Size = new Size(36, 36),
162 ResourceUrl = new Selector<string>()
164 Normal = FrameworkInformation.ResourcePath + "IoT_radiobutton_off.png",
165 Pressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_p.png",
166 Disabled = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_d.png",
167 Focused = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_f.png",
168 Selected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on.png",
169 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_p.png",
170 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_f.png",
171 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_d.png",
174 Text = new TextLabelStyle()
176 TextColor = new Color("#001447"),
182 theme.AddStyleWithoutClone("Tizen.NUI.Components.Slider", new SliderStyle()
184 Size = new Size(200, 50),
186 Track = new ImageViewStyle()
188 Size = new Size(100, 8),
189 BorderlineWidth = 0.5f,
190 BorderlineColor = new Color(0.84f, 0.85f, 0.87f, 1.0f),
191 BackgroundColor = new Selector<Color>()
193 Normal = new Color(1.0f, 1.0f, 1.0f, 0.2f),
194 Disabled = new Color(0.76f, 0.79f, 0.82f, 1),
197 Progress = new ImageViewStyle()
199 Size = new Size(100, 8),
200 BackgroundColor = new Selector<Color>()
202 Normal = new Color(0.03f, 0.05f, 0.3f, 1),
203 Disabled = new Color(0.76f, 0.79f, 0.82f, 1),
206 Thumb = new ImageViewStyle()
208 Size = new Size(36, 36),
209 ResourceUrl = new Selector<string>()
211 Normal = FrameworkInformation.ResourcePath + "IoT_slider_handler_normal.png",
212 Pressed = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
213 Focused = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
214 Disabled = FrameworkInformation.ResourcePath + "IoT_slider_handler_disabled.png",
217 ValueIndicatorImage = new ImageViewStyle()
219 Size = new Size(49, 24),
220 BackgroundColor = new Color(0.0f, 0.04f, 0.16f, 1.0f),
225 theme.AddStyleWithoutClone("Tizen.NUI.Components.Switch", new SwitchStyle()
227 ItemSpacing = new Size2D(32, 32),
228 ItemHorizontalAlignment = HorizontalAlignment.Begin,
229 ItemVerticalAlignment = VerticalAlignment.Center,
230 Track = new ImageViewStyle()
232 Size = new Size(84, 44),
233 ResourceUrl = new Selector<string>()
235 Normal = FrameworkInformation.ResourcePath + "IoT_switch_track_off.png",
236 Pressed = FrameworkInformation.ResourcePath + "IoT_switch_track_off_p.png",
237 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_track_off_d.png",
238 Focused = FrameworkInformation.ResourcePath + "IoT_switch_track_off_f.png",
239 Selected = FrameworkInformation.ResourcePath + "IoT_switch_track_on.png",
240 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_track_on_p.png",
241 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_track_on_f.png",
242 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_switch_track_on_d.png",
245 Thumb = new ImageViewStyle()
247 Size = new Size(44, 44),
248 ResourceUrl = new Selector<string>()
250 Normal = FrameworkInformation.ResourcePath + "IoT_switch_thumb.png",
251 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_thumb_d.png",
252 Selected = FrameworkInformation.ResourcePath + "IoT_switch_thumb_s.png",
253 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sp.png",
254 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sf.png",
257 Text = new TextLabelStyle()
259 TextColor = new Color("#001447"),
264 // Loading base style
265 theme.AddStyleWithoutClone("Tizen.NUI.Components.Loading", new LoadingStyle()
267 LoadingSize = new Size(100, 100),
270 // Pagination base style
271 theme.AddStyleWithoutClone("Tizen.NUI.Components.Pagination", new PaginationStyle()
273 IndicatorImageUrl = new Selector<string>()
275 Normal = FrameworkInformation.ResourcePath + "nui_component_default_pagination_normal_dot.png",
276 Selected = FrameworkInformation.ResourcePath + "nui_component_default_pagination_focus_dot.png",
278 IndicatorSize = new Size(10, 10),
281 // Scrollbar base style
282 theme.AddStyleWithoutClone("Tizen.NUI.Components.Scrollbar", new ScrollbarStyle()
286 TrackColor = new Color(0f, 0f, 0f, 0f),
287 ThumbColor = new Color("#0A0E4A"),
289 ThumbVerticalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_vbar.#.png",
290 ThumbHorizontalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_hbar.#.png",
293 // LinearLayouter base style
294 theme.AddStyleWithoutClone("Tizen.NUI.Components.LinearLayouter", new ViewStyle()
296 Padding = new Extents(64, 64, 0, 0)
299 // GridLayouter base style
300 theme.AddStyleWithoutClone("Tizen.NUI.Components.GridLayouter", new ViewStyle()
302 Padding = new Extents(0, 0, 0, 0),
305 // ItemsLayouter base style
306 theme.AddStyleWithoutClone("Tizen.NUI.Components.ItemsLayouter", new ViewStyle()
308 Padding = new Extents(0, 0, 0, 0),
311 // RecyclerViewItem base style
312 theme.AddStyleWithoutClone("Tizen.NUI.Components.RecyclerViewItem", new RecyclerViewItemStyle()
314 BackgroundColor = new Selector<Color>()
316 Normal = new Color(1, 1, 1, 1),
317 Pressed = new Color(0.85f, 0.85f, 0.85f, 1),
318 Disabled = new Color(0.70f, 0.70f, 0.70f, 1),
319 Selected = new Color(0.701f, 0.898f, 0.937f, 1),
323 // DefaultLinearItem base style
324 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultLinearItem", new DefaultLinearItemStyle()
327 Padding = new Extents(64, 64, 18, 17),
328 Margin = new Extents(0, 0, 0, 0),
329 BackgroundColor = new Selector<Color>()
331 Normal = new Color(1, 1, 1, 1),
332 Pressed = new Color(0.85f, 0.85f, 0.85f, 1),
333 Disabled = new Color(0.70f, 0.70f, 0.70f, 1),
334 Selected = new Color(0.85f, 0.85f, 0.85f, 1),
336 Label = new TextLabelStyle()
340 FontFamily = "BreezeSans", //FXIME Font Weight is Light
341 TextColor = new Color("#001447"),
342 ThemeChangeSensitive = false
344 SubLabel = new TextLabelStyle()
348 FontFamily = "BreezeSans",
349 TextColor = new Color("#001447"),
350 ThemeChangeSensitive = false
352 Icon = new ViewStyle()
354 Margin = new Extents(0, 32, 0, 0)
356 Extra = new ViewStyle()
358 Margin = new Extents(32, 0, 0, 0)
360 Seperator = new ViewStyle()
363 Margin = new Extents(64, 64, 0, 0),
364 BackgroundColor = new Color("#C3CAD2"),
368 // DefaultGridItem base style
369 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultGridItem", new DefaultGridItemStyle()
371 Padding = new Extents(0, 0, 0, 0),
372 Margin = new Extents(5, 5, 5, 5),
373 Label = new TextLabelStyle()
377 LineWrapMode = LineWrapMode.Character,
378 ThemeChangeSensitive = false
380 Badge = new ViewStyle()
382 Margin = new Extents(5, 5, 5, 5),
386 // DefaultTitleItem base style
387 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultTitleItem", new DefaultTitleItemStyle()
390 Padding = new Extents(64, 64, 12, 12),
391 Margin = new Extents(0, 0, 0, 0),
392 BackgroundColor = new Selector<Color>()
394 Normal = new Color("#EEEEF1"),
396 Label = new TextLabelStyle()
400 TextColor = new Color("#001447"),
401 ThemeChangeSensitive = false
403 Icon = new ViewStyle()
405 Margin = new Extents(40, 0, 0, 0)
407 Seperator = new ViewStyle()
409 Margin = new Extents(0, 0, 0, 0),
410 BackgroundColor = new Color(0, 0, 0, 0),
414 // ContentPage base style
415 theme.AddStyleWithoutClone("Tizen.NUI.Components.ContentPage", new ViewStyle()
417 BackgroundColor = new Color("#FAFAFA"),
418 CornerRadius = new Vector4(24.0f, 24.0f, 24.0f ,24.0f),
419 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
420 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
424 theme.AddStyleWithoutClone("Tizen.NUI.Components.AppBar", new AppBarStyle()
426 Size = new Size(-1, 64),
427 BackgroundColor = Color.Transparent,
428 BackButton = new ButtonStyle()
430 Size = new Size(48, 48),
432 BackgroundColor = Color.Transparent,
433 Icon = new ImageViewStyle()
435 Size = new Size(48, 48),
436 ResourceUrl = FrameworkInformation.ResourcePath + "nui_component_default_back_button.png",
437 Color = new Selector<Color>()
439 Normal = new Color("#17234D"),
440 Focused = new Color("#17234D"),
441 Pressed = new Color("#FF6200"),
442 Disabled = new Color("#CACACA"),
445 ThemeChangeSensitive = false
447 TitleTextLabel = new TextLabelStyle()
450 VerticalAlignment = VerticalAlignment.Center,
451 TextColor = new Selector<Color>()
453 Normal = new Color("#17234D"),
455 ThemeChangeSensitive = false
457 ActionView = new ViewStyle()
459 Size = new Size(48, 64),
461 BackgroundColor = Color.Transparent,
463 ActionButton = new ButtonStyle()
465 Size = new Size(-2, 64),
467 BackgroundColor = Color.Transparent,
468 Text = new TextLabelStyle()
471 TextColor = new Selector<Color>()
473 Normal = new Color("#FF6200"),
474 Focused = new Color("#FF6200"),
475 Pressed = new Color("#D95300"),
476 Disabled = new Color("#CACACA"),
479 Icon = new ImageViewStyle()
481 Size = new Size(48, 48),
482 Color = new Selector<Color>()
484 Normal = new Color("#17234D"),
485 Focused = new Color("#17234D"),
486 Pressed = new Color("#FF6200"),
487 Disabled = new Color("#CACACA"),
490 ThemeChangeSensitive = false,
492 Padding = new Extents(16, 16, 0, 0),
493 NavigationPadding = new Extents(0, 8, 0, 0),
494 ActionPadding = new Extents(16, 0, 0, 0),
495 ActionCellPadding = new Size2D(16, 0),
499 theme.AddStyleWithoutClone("Tizen.NUI.Components.Picker", new PickerStyle()
501 Size = new Size(160, 339),
502 ItemTextLabel = new TextLabelStyle()
504 //FIXME: Should be check PointSize. given size from UX is too large.
506 VerticalAlignment = VerticalAlignment.Center,
507 HorizontalAlignment = HorizontalAlignment.Center,
508 Size = new Size(0,72),
509 TextColor = new Selector<Color>()
511 Normal = new Color("#000C2B"),
513 BackgroundColor = Color.White,
515 Divider = new ViewStyle()
518 WidthResizePolicy = ResizePolicyType.FillToParent,
519 Position = new Position(0, 132),
520 BackgroundColor = new Color("#0A0E4A"),
522 StartScrollOffset = new Size(0, 12),
526 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabBar", new ViewStyle()
528 Size = new Size(-1, -2),
529 Margin = new Extents(16, 16, 0, 0),
530 Padding = new Extents(14, 14, 0, 0),
531 CornerRadius = new Vector4(12.0f, 12.0f, 12.0f, 12.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)),
534 BackgroundColor = new Color("#FAFAFA"),
537 // TabButton base style
538 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabButton", new TabButtonStyle()
540 Size = new Size(-1, 116),
541 SizeWithTextOnly = new Size(-1, 72),
542 SizeWithIconOnly = new Size(-1, 64),
543 MinimumSize = new Size(100, -1),
544 Padding = new Extents(24, 24, 18, 16),
545 PaddingWithTextOnly = new Extents(24, 24, 20, 20),
546 PaddingWithIconOnly = new Extents(24, 24, 16, 16),
547 ItemSpacing = new Size2D(0, 10),
549 IconSizeWithIconOnly = new Size(32, 32),
550 BackgroundColor = new Selector<Color>()
552 Normal = new Color("#FAFAFA"),
553 Selected = new Color("#FFE0CC"),
554 Pressed = new Color("#FFCAA8"),
555 Focused = new Color("#FAFAFA"),
556 Disabled = new Color("#FAFAFA"),
558 Text = new TextLabelStyle()
561 Size = new Size(-2, -2),
562 TextColor = new Selector<Color>()
564 Normal = new Color("#090E21"),
565 Selected = new Color("#FF6200"),
566 Pressed = new Color("#FF6200"),
567 Focused = new Color("#FF6200"),
568 Disabled = new Color("#CACACA"),
570 ThemeChangeSensitive = false,
572 Icon = new ImageViewStyle()
574 Size = new Size(48, 48),
575 Color = new Selector<Color>()
577 Normal = new Color("#090E21"),
578 Selected = new Color("#FF6200"),
579 Pressed = new Color("#FF6200"),
580 Focused = new Color("#FF6200"),
581 Disabled = new Color("#CACACA"),
586 // NotificationToast base style
587 theme.AddStyleWithoutClone("NotificationToast", new TextLabelStyle()
589 BackgroundColor = new Color("#FAFAFA"),
590 CornerRadius = 12.0f,
591 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
592 TextColor = new Color("#090E21"),
594 WidthResizePolicy = ResizePolicyType.UseNaturalSize,
595 HeightResizePolicy = ResizePolicyType.UseNaturalSize,
596 PositionUsesPivotPoint = true,
597 HorizontalAlignment = HorizontalAlignment.Center,
598 VerticalAlignment = VerticalAlignment.Center,
599 Padding = new Extents(16, 16, 16, 16),
603 // AlertDialog base style
604 theme.AddStyleWithoutClone("Tizen.NUI.Components.AlertDialog", new AlertDialogStyle()
606 Size = new Size(-2, -2),
607 Padding = new Extents(32, 32, 32, 32),
608 ItemSpacing = new Size2D(0, 32),
609 BackgroundColor = new Color("#FAFAFA"),
610 CornerRadius = 12.0f,
611 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
612 TitleTextLabel = new TextLabelStyle()
614 Size = new Size(626, -2),
616 HorizontalAlignment = HorizontalAlignment.Center,
617 VerticalAlignment = VerticalAlignment.Center,
618 TextColor = new Color("#090E21"),
619 ThemeChangeSensitive = false,
621 MessageTextLabel = new TextLabelStyle()
623 Size = new Size(626, -2),
626 HorizontalAlignment = HorizontalAlignment.Center,
627 VerticalAlignment = VerticalAlignment.Center,
628 TextColor = new Color("#090E21"),
629 ThemeChangeSensitive = false,
631 ActionContent = new ViewStyle()
633 Size = new Size(626, -2),
637 // TimePicker base style
638 theme.AddStyleWithoutClone("Tizen.NUI.Components.TimePicker", new TimePickerStyle()
640 CellPadding = new Size(50, 339),
642 Pickers = new PickerStyle()
644 Size = new Size(160, 339),
645 ItemTextLabel = new TextLabelStyle()
647 //FIXME: Should be check PointSize. given size from UX is too large.
649 VerticalAlignment = VerticalAlignment.Center,
650 HorizontalAlignment = HorizontalAlignment.Center,
651 Size = new Size(0,72),
652 TextColor = new Color("#000C2B"),
653 BackgroundColor = Color.White,
654 ThemeChangeSensitive = false
656 Divider = new ViewStyle()
659 WidthResizePolicy = ResizePolicyType.FillToParent,
660 Position = new Position(0, 132),
661 BackgroundColor = new Color("#0A0E4A"),
663 StartScrollOffset = new Size2D(0, 12),
667 // DatePicker base style
668 theme.AddStyleWithoutClone("Tizen.NUI.Components.DatePicker", new DatePickerStyle()
670 CellPadding = new Size(50, 339),
672 Pickers = new PickerStyle()
674 Size = new Size(160, 339),
675 ItemTextLabel = new TextLabelStyle()
677 //FIXME: Should be check PointSize. given size from UX is too large.
679 VerticalAlignment = VerticalAlignment.Center,
680 HorizontalAlignment = HorizontalAlignment.Center,
681 Size = new Size(0,72),
682 TextColor = new Color("#000C2B"),
683 BackgroundColor = Color.White,
684 ThemeChangeSensitive = false
686 Divider = new ViewStyle()
689 WidthResizePolicy = ResizePolicyType.FillToParent,
690 Position = new Position(0, 132),
691 BackgroundColor = new Color("#0A0E4A"),
693 StartScrollOffset = new Size2D(0, 12),
698 theme.AddStyleWithoutClone("Tizen.NUI.Components.Menu", new MenuStyle()
700 Content = new ViewStyle()
702 BackgroundColor = new Color("#FFFEFE"),
703 CornerRadius = 24.0f,
704 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
705 // FIXME: ScrollableBase with LinearLayout's Padding.Start is applied both Start and End.
706 // ScrollableBase with LinearLayout's Padding.Top is applied both Top and Bottom.
707 Padding = new Extents(32, 0, 16, 0),
711 // MenuItem base style
712 theme.AddStyleWithoutClone("Tizen.NUI.Components.MenuItem", new ButtonStyle()
714 Size = new Size(324, -2),
715 MinimumSize = new Size2D(0, 64),
716 BackgroundColor = new Color("#FFFEFE"),
718 // FIXME: ClippingModeType.ClipChildren cannot support anti-aliasing
719 // So not to show left bottom corner of MenuItem, MenuItem.Padding.Start is 0 and Menu.Content.Padding.Start is 32.
720 // (instead of MenuItem.Padding.Start 16 and Menu.Content.Padding.Start is 16)
721 Padding = new Extents(0, 0, 24, 24),
722 Text = new TextLabelStyle()
726 HorizontalAlignment = HorizontalAlignment.Begin,
727 VerticalAlignment = VerticalAlignment.Center,
728 TextColor = new Selector<Color>()
730 Normal = new Color("#090E21"),
731 Focused = new Color("#FF6200"),
732 Pressed = new Color("#FF6200"),
733 Disabled = new Color("#CACACA"),
734 Selected = new Color("#FF6200"),
736 ThemeChangeSensitive = false
738 Icon = new ImageViewStyle()
740 Size = new Size(32, 32),
741 Color = new Selector<Color>()
743 Normal = new Color("#090E21"),
744 Focused = new Color("#FF6200"),
745 Pressed = new Color("#FF6200"),
746 Disabled = new Color("#CACACA"),
747 Selected = new Color("#FF6200"),
752 // AlertDialog base style
753 theme.AddStyleWithoutClone("Tizen.NUI.Components.DialogPage.Scrim", new ViewStyle()
755 BackgroundColor = new Color("#090E21"),
764 #endif // !PROFILE_WEARABLE