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(0.039f, 0.055f, 0.29f, 1),
49 Pressed = new Color(0.106f, 0.412f, 0.792f, 1),
50 Focused = new Color(0, 0.2f, 0.545f, 1),
51 Disabled = new Color(0.765f, 0.792f, 0.824f, 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(80, 40),
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(40, 40),
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("#FFE0CC"),
555 Disabled = new Color("#FAFAFA"),
557 Text = new TextLabelStyle()
560 Size = new Size(-2, -2),
561 TextColor = new Selector<Color>()
563 Normal = new Color("#090E21"),
564 Selected = new Color("#FF6200"),
565 Pressed = new Color("#FF6200"),
566 Disabled = new Color("#CACACA"),
568 ThemeChangeSensitive = false,
570 Icon = new ImageViewStyle()
572 Size = new Size(48, 48),
573 Color = new Selector<Color>()
575 Normal = new Color("#090E21"),
576 Selected = new Color("#FF6200"),
577 Pressed = new Color("#FF6200"),
578 Disabled = new Color("#CACACA"),
583 // NotificationToast base style
584 theme.AddStyleWithoutClone("NotificationToast", new TextLabelStyle()
586 BackgroundColor = new Color("#F2F7FF"),
587 CornerRadius = 20.0f,
588 BoxShadow = new Shadow(5.0f, new Color("#00000066"), new Vector2(2.0f, 2.0f)),
589 TextColor = new Color("#000C2B"),
591 WidthResizePolicy = ResizePolicyType.UseNaturalSize,
592 HeightResizePolicy = ResizePolicyType.UseNaturalSize,
593 PositionUsesPivotPoint = true,
594 HorizontalAlignment = HorizontalAlignment.Center,
595 VerticalAlignment = VerticalAlignment.Center,
596 Padding = new Extents(40, 40, 24, 24),
600 // AlertDialog base style
601 theme.AddStyleWithoutClone("Tizen.NUI.Components.AlertDialog", new AlertDialogStyle()
603 Size = new Size(-2, -2),
604 Padding = new Extents(80, 80, 0, 0),
605 BackgroundColor = Color.White,
606 CornerRadius = 28.0f,
607 BoxShadow = new Shadow(2.0f, new Color("#00000029"), new Vector2(2.0f, 2.0f)),
608 TitleTextLabel = new TextLabelStyle()
610 Size = new Size(720, -2),
611 Margin = new Extents(0, 0, 40, 40),
613 HorizontalAlignment = HorizontalAlignment.Center,
614 VerticalAlignment = VerticalAlignment.Center,
615 TextColor = new Color("#000C2B"),
616 ThemeChangeSensitive = false,
618 MessageTextLabel = new TextLabelStyle()
620 Size = new Size(720, -2),
621 Margin = new Extents(0, 0, 0, 64),
624 HorizontalAlignment = HorizontalAlignment.Center,
625 VerticalAlignment = VerticalAlignment.Center,
626 TextColor = new Color("#000C2B"),
627 ThemeChangeSensitive = false,
629 ActionContent = new ViewStyle()
631 Size = new Size(720, -2),
635 // TimePicker base style
636 theme.AddStyleWithoutClone("Tizen.NUI.Components.TimePicker", new TimePickerStyle()
638 CellPadding = new Size(50, 339),
640 Pickers = new PickerStyle()
642 Size = new Size(160, 339),
643 ItemTextLabel = new TextLabelStyle()
645 //FIXME: Should be check PointSize. given size from UX is too large.
647 VerticalAlignment = VerticalAlignment.Center,
648 HorizontalAlignment = HorizontalAlignment.Center,
649 Size = new Size(0,72),
650 TextColor = new Color("#000C2B"),
651 BackgroundColor = Color.White,
652 ThemeChangeSensitive = false
654 Divider = new ViewStyle()
657 WidthResizePolicy = ResizePolicyType.FillToParent,
658 Position = new Position(0, 132),
659 BackgroundColor = new Color("#0A0E4A"),
661 StartScrollOffset = new Size2D(0, 12),
665 // DatePicker base style
666 theme.AddStyleWithoutClone("Tizen.NUI.Components.DatePicker", new DatePickerStyle()
668 CellPadding = new Size(50, 339),
670 Pickers = new PickerStyle()
672 Size = new Size(160, 339),
673 ItemTextLabel = new TextLabelStyle()
675 //FIXME: Should be check PointSize. given size from UX is too large.
677 VerticalAlignment = VerticalAlignment.Center,
678 HorizontalAlignment = HorizontalAlignment.Center,
679 Size = new Size(0,72),
680 TextColor = new Color("#000C2B"),
681 BackgroundColor = Color.White,
682 ThemeChangeSensitive = false
684 Divider = new ViewStyle()
687 WidthResizePolicy = ResizePolicyType.FillToParent,
688 Position = new Position(0, 132),
689 BackgroundColor = new Color("#0A0E4A"),
691 StartScrollOffset = new Size2D(0, 12),
696 theme.AddStyleWithoutClone("Tizen.NUI.Components.Menu", new MenuStyle()
698 Content = new ViewStyle()
700 BackgroundColor = new Color("#FFFEFE"),
701 CornerRadius = 24.0f,
702 BoxShadow = new Shadow(8.0f, new Color(0.0f, 0.0f, 0.0f, 0.16f), new Vector2(0.0f, 2.0f)),
703 // FIXME: ScrollableBase with LinearLayout's Padding.Start is applied both Start and End.
704 // ScrollableBase with LinearLayout's Padding.Top is applied both Top and Bottom.
705 Padding = new Extents(32, 0, 16, 0),
709 // MenuItem base style
710 theme.AddStyleWithoutClone("Tizen.NUI.Components.MenuItem", new ButtonStyle()
712 Size = new Size(324, -2),
713 MinimumSize = new Size2D(0, 64),
714 BackgroundColor = new Color("#FFFEFE"),
716 // FIXME: ClippingModeType.ClipChildren cannot support anti-aliasing
717 // So not to show left bottom corner of MenuItem, MenuItem.Padding.Start is 0 and Menu.Content.Padding.Start is 32.
718 // (instead of MenuItem.Padding.Start 16 and Menu.Content.Padding.Start is 16)
719 Padding = new Extents(0, 0, 24, 24),
720 Text = new TextLabelStyle()
724 HorizontalAlignment = HorizontalAlignment.Begin,
725 VerticalAlignment = VerticalAlignment.Center,
726 TextColor = new Selector<Color>()
728 Normal = new Color("#090E21"),
729 Focused = new Color("#FF6200"),
730 Pressed = new Color("#FF6200"),
731 Disabled = new Color("#CACACA"),
732 Selected = new Color("#FF6200"),
734 ThemeChangeSensitive = false
736 Icon = new ImageViewStyle()
738 Size = new Size(32, 32),
739 Color = new Selector<Color>()
741 Normal = new Color("#090E21"),
742 Focused = new Color("#FF6200"),
743 Pressed = new Color("#FF6200"),
744 Disabled = new Color("#CACACA"),
745 Selected = new Color("#FF6200"),
750 // AlertDialog base style
751 theme.AddStyleWithoutClone("Tizen.NUI.Components.DialogPage.Scrim", new ViewStyle()
753 BackgroundColor = new Color("#090E21"),
762 #endif // !PROFILE_WEARABLE