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(1.0f, 0.827f, 0.624f, 1),
51 Selected = new Color(0.624f, 0.239f, 0.0f, 1),
52 Disabled = new Color(0.792f, 0.792f, 0.792f, 1),
54 Text = new TextLabelStyle()
56 TextColor = Color.White,
61 // CheckBox base style
62 theme.AddStyleWithoutClone("Tizen.NUI.Components.CheckBox", new ButtonStyle()
64 ItemSpacing = new Size2D(32, 32),
65 ItemHorizontalAlignment = HorizontalAlignment.Begin,
66 ItemVerticalAlignment = VerticalAlignment.Center,
67 Icon = new ImageViewStyle()
69 Size = new Size(36, 36),
70 ResourceUrl = new Selector<string>()
72 Normal = FrameworkInformation.ResourcePath + "IoT_check_off.png",
73 Pressed = FrameworkInformation.ResourcePath + "IoT_check_off_p.png",
74 Disabled = FrameworkInformation.ResourcePath + "IoT_check_off_d.png",
75 Focused = FrameworkInformation.ResourcePath + "IoT_check_off_f.png",
76 Selected = FrameworkInformation.ResourcePath + "IoT_check_on.png",
77 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_check_on_p.png",
78 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_check_on_f.png",
79 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_check_on_d.png",
82 Text = new TextLabelStyle()
84 TextColor = new Color("#001447"),
90 theme.AddStyleWithoutClone("Tizen.NUI.Components.Popup", new PopupStyle()
92 Size = new Size(500, 280),
93 BackgroundColor = new Color(0.9f, 0.9f, 0.9f, 1),
94 ImageShadow = new ImageShadow()
96 Url = FrameworkInformation.ResourcePath + "nui_component_default_popup_shadow.png",
97 Border = new Rectangle(24, 24, 24, 24),
98 Extents = new Vector2(48, 48)
100 Title = new TextLabelStyle()
103 Padding = new Extents(20, 20, 20, 20),
105 Buttons = new ButtonStyle()
107 Size = new Size(0, 80),
109 BackgroundColor = new Selector<Color>()
111 Normal = new Color(1, 1, 1, 1),
112 Pressed = new Color(1, 1, 1, 0.5f),
114 Overlay = new ImageViewStyle()
116 BackgroundColor = new Selector<Color>()
118 Pressed = new Color(0, 0, 0, 0.1f),
119 Other = new Color(1, 1, 1, 0.1f),
122 Text = new TextLabelStyle()
124 TextColor = new Color(0.05f, 0.63f, 0.9f, 1),
129 // Progress base style
130 theme.AddStyleWithoutClone("Tizen.NUI.Components.Progress", new ProgressStyle()
132 Size = new Size(200, 25),
133 Track = new ImageViewStyle()
135 BorderlineWidth = 0.5f,
136 BorderlineColor = new Color(0.92f, 0.93f, 0.94f, 1.0f),
137 BackgroundColor = new Selector<Color>()
139 Normal = new Color(1.0f, 1.0f, 1.0f, 0.5f),
140 Disabled = new Color(0.73f, 0.76f, 0.79f, 1),
143 Buffer = new ImageViewStyle()
145 BackgroundColor = new Color(0.05f, 0.63f, 0.9f, 0.3f),
147 Progress = new ImageViewStyle()
149 BackgroundColor = new Color(0.03f, 0.05f, 0.29f, 1),
151 IndeterminateImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_progress_indeterminate.png",
154 // RadioButton base style
155 theme.AddStyleWithoutClone("Tizen.NUI.Components.RadioButton", new ButtonStyle()
157 ItemSpacing = new Size2D(32, 32),
158 ItemHorizontalAlignment = HorizontalAlignment.Begin,
159 ItemVerticalAlignment = VerticalAlignment.Center,
160 Icon = new ImageViewStyle()
162 Size = new Size(36, 36),
163 ResourceUrl = new Selector<string>()
165 Normal = FrameworkInformation.ResourcePath + "IoT_radiobutton_off.png",
166 Pressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_p.png",
167 Disabled = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_d.png",
168 Focused = FrameworkInformation.ResourcePath + "IoT_radiobutton_off_f.png",
169 Selected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on.png",
170 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_p.png",
171 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_f.png",
172 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_radiobutton_on_d.png",
175 Text = new TextLabelStyle()
177 TextColor = new Color("#001447"),
183 theme.AddStyleWithoutClone("Tizen.NUI.Components.Slider", new SliderStyle()
185 Size = new Size(200, 50),
187 Track = new ImageViewStyle()
189 Size = new Size(100, 8),
190 BorderlineWidth = 0.5f,
191 BorderlineColor = new Color(0.84f, 0.85f, 0.87f, 1.0f),
192 BackgroundColor = new Selector<Color>()
194 Normal = new Color(1.0f, 1.0f, 1.0f, 0.2f),
195 Disabled = new Color(0.76f, 0.79f, 0.82f, 1),
198 Progress = new ImageViewStyle()
200 Size = new Size(100, 8),
201 BackgroundColor = new Selector<Color>()
203 Normal = new Color(0.03f, 0.05f, 0.3f, 1),
204 Disabled = new Color(0.76f, 0.79f, 0.82f, 1),
207 Thumb = new ImageViewStyle()
209 Size = new Size(36, 36),
210 ResourceUrl = new Selector<string>()
212 Normal = FrameworkInformation.ResourcePath + "IoT_slider_handler_normal.png",
213 Pressed = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
214 Focused = FrameworkInformation.ResourcePath + "IoT_slider_handler_pressed.png",
215 Disabled = FrameworkInformation.ResourcePath + "IoT_slider_handler_disabled.png",
218 ValueIndicatorImage = new ImageViewStyle()
220 Size = new Size(49, 24),
221 BackgroundColor = new Color(0.0f, 0.04f, 0.16f, 1.0f),
226 theme.AddStyleWithoutClone("Tizen.NUI.Components.Switch", new SwitchStyle()
228 ItemSpacing = new Size2D(32, 32),
229 ItemHorizontalAlignment = HorizontalAlignment.Begin,
230 ItemVerticalAlignment = VerticalAlignment.Center,
231 Track = new ImageViewStyle()
233 Size = new Size(84, 44),
234 ResourceUrl = new Selector<string>()
236 Normal = FrameworkInformation.ResourcePath + "IoT_switch_track_off.png",
237 Pressed = FrameworkInformation.ResourcePath + "IoT_switch_track_off_p.png",
238 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_track_off_d.png",
239 Focused = FrameworkInformation.ResourcePath + "IoT_switch_track_off_f.png",
240 Selected = FrameworkInformation.ResourcePath + "IoT_switch_track_on.png",
241 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_track_on_p.png",
242 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_track_on_f.png",
243 DisabledSelected = FrameworkInformation.ResourcePath + "IoT_switch_track_on_d.png",
246 Thumb = new ImageViewStyle()
248 Size = new Size(44, 44),
249 ResourceUrl = new Selector<string>()
251 Normal = FrameworkInformation.ResourcePath + "IoT_switch_thumb.png",
252 Disabled = FrameworkInformation.ResourcePath + "IoT_switch_thumb_d.png",
253 Selected = FrameworkInformation.ResourcePath + "IoT_switch_thumb_s.png",
254 SelectedPressed = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sp.png",
255 SelectedFocused = FrameworkInformation.ResourcePath + "IoT_switch_thumb_sf.png",
258 Text = new TextLabelStyle()
260 TextColor = new Color("#001447"),
265 // Loading base style
266 theme.AddStyleWithoutClone("Tizen.NUI.Components.Loading", new LoadingStyle()
268 LoadingSize = new Size(100, 100),
271 // Pagination base style
272 theme.AddStyleWithoutClone("Tizen.NUI.Components.Pagination", new PaginationStyle()
274 IndicatorImageUrl = new Selector<string>()
276 Normal = FrameworkInformation.ResourcePath + "nui_component_default_pagination_normal_dot.png",
277 Selected = FrameworkInformation.ResourcePath + "nui_component_default_pagination_focus_dot.png",
279 IndicatorSize = new Size(10, 10),
282 // Scrollbar base style
283 theme.AddStyleWithoutClone("Tizen.NUI.Components.Scrollbar", new ScrollbarStyle()
287 TrackColor = new Color(0f, 0f, 0f, 0f),
288 ThumbColor = new Color("#0A0E4A"),
290 ThumbVerticalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_vbar.#.png",
291 ThumbHorizontalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_hbar.#.png",
294 // LinearLayouter base style
295 theme.AddStyleWithoutClone("Tizen.NUI.Components.LinearLayouter", new ViewStyle()
297 Padding = new Extents(64, 64, 0, 0)
300 // GridLayouter base style
301 theme.AddStyleWithoutClone("Tizen.NUI.Components.GridLayouter", new ViewStyle()
303 Padding = new Extents(0, 0, 0, 0),
306 // ItemsLayouter base style
307 theme.AddStyleWithoutClone("Tizen.NUI.Components.ItemsLayouter", new ViewStyle()
309 Padding = new Extents(0, 0, 0, 0),
312 // RecyclerViewItem base style
313 theme.AddStyleWithoutClone("Tizen.NUI.Components.RecyclerViewItem", new RecyclerViewItemStyle()
315 BackgroundColor = new Selector<Color>()
317 Normal = new Color(1, 1, 1, 1),
318 Pressed = new Color(0.85f, 0.85f, 0.85f, 1),
319 Disabled = new Color(0.70f, 0.70f, 0.70f, 1),
320 Selected = new Color(0.701f, 0.898f, 0.937f, 1),
324 // DefaultLinearItem base style
325 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultLinearItem", new DefaultLinearItemStyle()
328 Padding = new Extents(64, 64, 18, 17),
329 Margin = new Extents(0, 0, 0, 0),
330 BackgroundColor = new Selector<Color>()
332 Normal = new Color(1, 1, 1, 1),
333 Pressed = new Color(0.85f, 0.85f, 0.85f, 1),
334 Disabled = new Color(0.70f, 0.70f, 0.70f, 1),
335 Selected = new Color(0.85f, 0.85f, 0.85f, 1),
337 Label = new TextLabelStyle()
341 FontFamily = "BreezeSans", //FXIME Font Weight is Light
342 TextColor = new Color("#001447"),
343 ThemeChangeSensitive = false
345 SubLabel = new TextLabelStyle()
349 FontFamily = "BreezeSans",
350 TextColor = new Color("#001447"),
351 ThemeChangeSensitive = false
353 Icon = new ViewStyle()
355 Margin = new Extents(0, 32, 0, 0)
357 Extra = new ViewStyle()
359 Margin = new Extents(32, 0, 0, 0)
361 Seperator = new ViewStyle()
364 Margin = new Extents(64, 64, 0, 0),
365 BackgroundColor = new Color("#C3CAD2"),
369 // DefaultGridItem base style
370 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultGridItem", new DefaultGridItemStyle()
372 Padding = new Extents(0, 0, 0, 0),
373 Margin = new Extents(5, 5, 5, 5),
374 Label = new TextLabelStyle()
378 LineWrapMode = LineWrapMode.Character,
379 ThemeChangeSensitive = false
381 Badge = new ViewStyle()
383 Margin = new Extents(5, 5, 5, 5),
387 // DefaultTitleItem base style
388 theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultTitleItem", new DefaultTitleItemStyle()
391 Padding = new Extents(64, 64, 12, 12),
392 Margin = new Extents(0, 0, 0, 0),
393 BackgroundColor = new Selector<Color>()
395 Normal = new Color("#EEEEF1"),
397 Label = new TextLabelStyle()
401 TextColor = new Color("#001447"),
402 ThemeChangeSensitive = false
404 Icon = new ViewStyle()
406 Margin = new Extents(40, 0, 0, 0)
408 Seperator = new ViewStyle()
410 Margin = new Extents(0, 0, 0, 0),
411 BackgroundColor = new Color(0, 0, 0, 0),
415 // ContentPage base style
416 theme.AddStyleWithoutClone("Tizen.NUI.Components.ContentPage", new ViewStyle()
418 BackgroundColor = new Color("#FAFAFA"),
419 CornerRadius = new Vector4(24.0f, 24.0f, 24.0f ,24.0f),
420 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
421 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
425 theme.AddStyleWithoutClone("Tizen.NUI.Components.AppBar", new AppBarStyle()
427 Size = new Size(-1, 64),
428 BackgroundColor = Color.Transparent,
429 BackButton = new ButtonStyle()
431 Size = new Size(48, 48),
433 BackgroundColor = Color.Transparent,
434 Icon = new ImageViewStyle()
436 Size = new Size(48, 48),
437 ResourceUrl = FrameworkInformation.ResourcePath + "nui_component_default_back_button.png",
438 Color = new Selector<Color>()
440 Normal = new Color("#17234D"),
441 Focused = new Color("#17234D"),
442 Pressed = new Color("#FF6200"),
443 Disabled = new Color("#CACACA"),
446 ThemeChangeSensitive = false
448 TitleTextLabel = new TextLabelStyle()
451 VerticalAlignment = VerticalAlignment.Center,
452 TextColor = new Selector<Color>()
454 Normal = new Color("#17234D"),
456 ThemeChangeSensitive = false
458 ActionView = new ViewStyle()
460 Size = new Size(48, 64),
462 BackgroundColor = Color.Transparent,
464 ActionButton = new ButtonStyle()
466 Size = new Size(-2, 64),
468 BackgroundColor = Color.Transparent,
469 Text = new TextLabelStyle()
472 TextColor = new Selector<Color>()
474 Normal = new Color("#FF6200"),
475 Focused = new Color("#FF6200"),
476 Pressed = new Color("#D95300"),
477 Disabled = new Color("#CACACA"),
480 Icon = new ImageViewStyle()
482 Size = new Size(48, 48),
483 Color = new Selector<Color>()
485 Normal = new Color("#17234D"),
486 Focused = new Color("#17234D"),
487 Pressed = new Color("#FF6200"),
488 Disabled = new Color("#CACACA"),
491 ThemeChangeSensitive = false,
493 Padding = new Extents(16, 16, 0, 0),
494 NavigationPadding = new Extents(0, 8, 0, 0),
495 ActionPadding = new Extents(16, 0, 0, 0),
496 ActionCellPadding = new Size2D(16, 0),
500 theme.AddStyleWithoutClone("Tizen.NUI.Components.Picker", new PickerStyle()
502 Size = new Size(160, 339),
503 ItemTextLabel = new TextLabelStyle()
505 //FIXME: Should be check PointSize. given size from UX is too large.
507 VerticalAlignment = VerticalAlignment.Center,
508 HorizontalAlignment = HorizontalAlignment.Center,
509 Size = new Size(0,72),
510 TextColor = new Selector<Color>()
512 Normal = new Color("#000C2B"),
514 BackgroundColor = Color.White,
516 Divider = new ViewStyle()
519 WidthResizePolicy = ResizePolicyType.FillToParent,
520 Position = new Position(0, 132),
521 BackgroundColor = new Color("#0A0E4A"),
523 StartScrollOffset = new Size(0, 12),
527 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabBar", new ViewStyle()
529 Size = new Size(-1, -2),
530 Margin = new Extents(16, 16, 0, 0),
531 Padding = new Extents(14, 14, 0, 0),
532 CornerRadius = new Vector4(12.0f, 12.0f, 12.0f, 12.0f),
533 CornerRadiusPolicy = VisualTransformPolicyType.Absolute,
534 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
535 BackgroundColor = new Color("#FAFAFA"),
538 // TabButton base style
539 theme.AddStyleWithoutClone("Tizen.NUI.Components.TabButton", new TabButtonStyle()
541 Size = new Size(-1, 116),
542 SizeWithTextOnly = new Size(-1, 72),
543 SizeWithIconOnly = new Size(-1, 64),
544 MinimumSize = new Size(100, -1),
545 Padding = new Extents(24, 24, 18, 16),
546 PaddingWithTextOnly = new Extents(24, 24, 20, 20),
547 PaddingWithIconOnly = new Extents(24, 24, 16, 16),
548 ItemSpacing = new Size2D(0, 10),
550 IconSizeWithIconOnly = new Size(32, 32),
551 BackgroundColor = new Selector<Color>()
553 Normal = new Color("#FAFAFA"),
554 Selected = new Color("#FFE0CC"),
555 Pressed = new Color("#FFCAA8"),
556 Focused = new Color("#FAFAFA"),
557 Disabled = new Color("#FAFAFA"),
559 Text = new TextLabelStyle()
562 Size = new Size(-2, -2),
563 TextColor = new Selector<Color>()
565 Normal = new Color("#090E21"),
566 Selected = new Color("#FF6200"),
567 Pressed = new Color("#FF6200"),
568 Focused = new Color("#FF6200"),
569 Disabled = new Color("#CACACA"),
571 ThemeChangeSensitive = false,
573 Icon = new ImageViewStyle()
575 Size = new Size(48, 48),
576 Color = new Selector<Color>()
578 Normal = new Color("#090E21"),
579 Selected = new Color("#FF6200"),
580 Pressed = new Color("#FF6200"),
581 Focused = new Color("#FF6200"),
582 Disabled = new Color("#CACACA"),
587 // NotificationToast base style
588 theme.AddStyleWithoutClone("NotificationToast", new TextLabelStyle()
590 BackgroundColor = new Color("#FAFAFA"),
591 CornerRadius = 12.0f,
592 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
593 TextColor = new Color("#090E21"),
595 WidthResizePolicy = ResizePolicyType.UseNaturalSize,
596 HeightResizePolicy = ResizePolicyType.UseNaturalSize,
597 PositionUsesPivotPoint = true,
598 HorizontalAlignment = HorizontalAlignment.Center,
599 VerticalAlignment = VerticalAlignment.Center,
600 Padding = new Extents(16, 16, 16, 16),
604 // AlertDialog base style
605 theme.AddStyleWithoutClone("Tizen.NUI.Components.AlertDialog", new AlertDialogStyle()
607 Size = new Size(-2, -2),
608 Padding = new Extents(32, 32, 32, 32),
609 ItemSpacing = new Size2D(0, 32),
610 BackgroundColor = new Color("#FAFAFA"),
611 CornerRadius = 12.0f,
612 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
613 TitleTextLabel = new TextLabelStyle()
615 Size = new Size(626, -2),
617 HorizontalAlignment = HorizontalAlignment.Center,
618 VerticalAlignment = VerticalAlignment.Center,
619 TextColor = new Color("#090E21"),
620 ThemeChangeSensitive = false,
622 MessageTextLabel = new TextLabelStyle()
624 Size = new Size(626, -2),
627 HorizontalAlignment = HorizontalAlignment.Center,
628 VerticalAlignment = VerticalAlignment.Center,
629 TextColor = new Color("#090E21"),
630 ThemeChangeSensitive = false,
632 ActionContent = new ViewStyle()
634 Size = new Size(626, -2),
638 // TimePicker base style
639 theme.AddStyleWithoutClone("Tizen.NUI.Components.TimePicker", new TimePickerStyle()
641 CellPadding = new Size(50, 339),
643 Pickers = new PickerStyle()
645 Size = new Size(160, 339),
646 ItemTextLabel = new TextLabelStyle()
648 //FIXME: Should be check PointSize. given size from UX is too large.
650 VerticalAlignment = VerticalAlignment.Center,
651 HorizontalAlignment = HorizontalAlignment.Center,
652 Size = new Size(0,72),
653 TextColor = new Color("#000C2B"),
654 BackgroundColor = Color.White,
655 ThemeChangeSensitive = false
657 Divider = new ViewStyle()
660 WidthResizePolicy = ResizePolicyType.FillToParent,
661 Position = new Position(0, 132),
662 BackgroundColor = new Color("#0A0E4A"),
664 StartScrollOffset = new Size2D(0, 12),
668 // DatePicker base style
669 theme.AddStyleWithoutClone("Tizen.NUI.Components.DatePicker", new DatePickerStyle()
671 CellPadding = new Size(50, 339),
673 Pickers = new PickerStyle()
675 Size = new Size(160, 339),
676 ItemTextLabel = new TextLabelStyle()
678 //FIXME: Should be check PointSize. given size from UX is too large.
680 VerticalAlignment = VerticalAlignment.Center,
681 HorizontalAlignment = HorizontalAlignment.Center,
682 Size = new Size(0,72),
683 TextColor = new Color("#000C2B"),
684 BackgroundColor = Color.White,
685 ThemeChangeSensitive = false
687 Divider = new ViewStyle()
690 WidthResizePolicy = ResizePolicyType.FillToParent,
691 Position = new Position(0, 132),
692 BackgroundColor = new Color("#0A0E4A"),
694 StartScrollOffset = new Size2D(0, 12),
699 theme.AddStyleWithoutClone("Tizen.NUI.Components.Menu", new MenuStyle()
701 Content = new ViewStyle()
703 BackgroundColor = new Color("#FFFEFE"),
704 CornerRadius = 24.0f,
705 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
706 // FIXME: ScrollableBase with LinearLayout's Padding.Start is applied both Start and End.
707 // ScrollableBase with LinearLayout's Padding.Top is applied both Top and Bottom.
708 Padding = new Extents(32, 0, 16, 0),
712 // MenuItem base style
713 theme.AddStyleWithoutClone("Tizen.NUI.Components.MenuItem", new ButtonStyle()
715 Size = new Size(324, -2),
716 MinimumSize = new Size2D(0, 64),
717 BackgroundColor = new Color("#FFFEFE"),
719 // FIXME: ClippingModeType.ClipChildren cannot support anti-aliasing
720 // So not to show left bottom corner of MenuItem, MenuItem.Padding.Start is 0 and Menu.Content.Padding.Start is 32.
721 // (instead of MenuItem.Padding.Start 16 and Menu.Content.Padding.Start is 16)
722 Padding = new Extents(0, 0, 24, 24),
723 Text = new TextLabelStyle()
727 HorizontalAlignment = HorizontalAlignment.Begin,
728 VerticalAlignment = VerticalAlignment.Center,
729 TextColor = new Selector<Color>()
731 Normal = new Color("#090E21"),
732 Focused = new Color("#FF6200"),
733 Pressed = new Color("#FF6200"),
734 Disabled = new Color("#CACACA"),
735 Selected = new Color("#FF6200"),
737 ThemeChangeSensitive = false
739 Icon = new ImageViewStyle()
741 Size = new Size(32, 32),
742 Color = new Selector<Color>()
744 Normal = new Color("#090E21"),
745 Focused = new Color("#FF6200"),
746 Pressed = new Color("#FF6200"),
747 Disabled = new Color("#CACACA"),
748 Selected = new Color("#FF6200"),
753 // AlertDialog base style
754 theme.AddStyleWithoutClone("Tizen.NUI.Components.DialogPage.Scrim", new ViewStyle()
756 BackgroundColor = new Color("#090E21"),
765 #endif // !PROFILE_WEARABLE