[NUI] Apply AppBar UX - Size, BackgroundColor, BackButton Icon
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI.Components / Theme / DefaultThemeCommon.cs
1 /*
2  * Copyright(c) 2021 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17 #if !PROFILE_WEARABLE
18
19 using System.Diagnostics.CodeAnalysis;
20 using Tizen.NUI.BaseComponents;
21
22 namespace Tizen.NUI.Components
23 {
24     // It is a C# version of res/Tizen.NUI.Components_Tizen.NUI.Theme.Common.xaml
25     internal partial class DefaultThemeCreator : IThemeCreator
26     {
27         /// <summary>
28         /// The base theme description.
29         /// </summary>
30         [SuppressMessage("Microsoft.Reliability", "CA2000: Dispose objects before losing scope", Justification = "The responsibility to dispose the object is transferred to the theme object.")]
31         public Theme Create()
32         {
33             var theme = new Theme()
34             {
35                 Id = Tizen.NUI.DefaultThemeCreator.DefaultId,
36                 Version = Tizen.NUI.DefaultThemeCreator.DefaultVersion
37             };
38
39             // Button base style
40             theme.AddStyleWithoutClone("Tizen.NUI.Components.Button", new ButtonStyle()
41             {
42                 Size = new Size(339, 96),
43                 CornerRadius = 28.0f,
44                 ItemHorizontalAlignment = HorizontalAlignment.Center,
45                 ItemVerticalAlignment = VerticalAlignment.Center,
46                 BackgroundColor = new Selector<Color>()
47                 {
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),
52                 },
53                 Text = new TextLabelStyle()
54                 {
55                     TextColor = Color.White,
56                     PixelSize = 32,
57                 }
58             });
59
60             // CheckBox base style
61             theme.AddStyleWithoutClone("Tizen.NUI.Components.CheckBox", new ButtonStyle()
62             {
63                 ItemSpacing = new Size2D(32, 32),
64                 ItemHorizontalAlignment = HorizontalAlignment.Begin,
65                 ItemVerticalAlignment = VerticalAlignment.Center,
66                 Icon = new ImageViewStyle()
67                 {
68                     Size = new Size(36, 36),
69                     ResourceUrl = new Selector<string>()
70                     {
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",
79                     },
80                 },
81                 Text = new TextLabelStyle()
82                 {
83                     TextColor = new Color("#001447"),
84                     PixelSize = 32,
85                 }
86             });
87
88             // Popup base style
89             theme.AddStyleWithoutClone("Tizen.NUI.Components.Popup", new PopupStyle()
90             {
91                 Size = new Size(500, 280),
92                 BackgroundColor = new Color(0.9f, 0.9f, 0.9f, 1),
93                 ImageShadow = new ImageShadow()
94                 {
95                     Url = FrameworkInformation.ResourcePath + "nui_component_default_popup_shadow.png",
96                     Border = new Rectangle(24, 24, 24, 24),
97                     Extents = new Vector2(48, 48)
98                 },
99                 Title = new TextLabelStyle()
100                 {
101                     PointSize = 16,
102                     Padding = new Extents(20, 20, 20, 20),
103                 },
104                 Buttons = new ButtonStyle()
105                 {
106                     Size = new Size(0, 80),
107                     CornerRadius = 0,
108                     BackgroundColor = new Selector<Color>()
109                     {
110                         Normal = new Color(1, 1, 1, 1),
111                         Pressed = new Color(1, 1, 1, 0.5f),
112                     },
113                     Overlay = new ImageViewStyle()
114                     {
115                         BackgroundColor = new Selector<Color>()
116                         {
117                             Pressed = new Color(0, 0, 0, 0.1f),
118                             Other = new Color(1, 1, 1, 0.1f),
119                         },
120                     },
121                     Text = new TextLabelStyle()
122                     {
123                         TextColor = new Color(0.05f, 0.63f, 0.9f, 1),
124                     }
125                 }
126             });
127
128             // Progress base style
129             theme.AddStyleWithoutClone("Tizen.NUI.Components.Progress", new ProgressStyle()
130             {
131                 Size = new Size(200, 25),
132                 Track = new ImageViewStyle()
133                 {
134                     BorderlineWidth = 0.5f,
135                     BorderlineColor = new Color(0.92f, 0.93f, 0.94f, 1.0f),
136                     BackgroundColor = new Selector<Color>()
137                     {
138                         Normal = new Color(1.0f, 1.0f, 1.0f, 0.5f),
139                         Disabled = new Color(0.73f, 0.76f, 0.79f, 1),
140                     },
141                 },
142                 Buffer = new ImageViewStyle()
143                 {
144                     BackgroundColor = new Color(0.05f, 0.63f, 0.9f, 0.3f),
145                 },
146                 Progress = new ImageViewStyle()
147                 {
148                     BackgroundColor = new Color(0.03f, 0.05f, 0.29f, 1),
149                 },
150                 IndeterminateImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_progress_indeterminate.png",
151             });
152
153             // RadioButton base style
154             theme.AddStyleWithoutClone("Tizen.NUI.Components.RadioButton", new ButtonStyle()
155             {
156                 ItemSpacing = new Size2D(32, 32),
157                 ItemHorizontalAlignment = HorizontalAlignment.Begin,
158                 ItemVerticalAlignment = VerticalAlignment.Center,
159                 Icon = new ImageViewStyle()
160                 {
161                     Size = new Size(36, 36),
162                     ResourceUrl = new Selector<string>()
163                     {
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",
172                     },
173                 },
174                 Text = new TextLabelStyle()
175                 {
176                     TextColor = new Color("#001447"),
177                     PixelSize = 32,
178                 }
179             });
180
181             // Slider base style
182             theme.AddStyleWithoutClone("Tizen.NUI.Components.Slider", new SliderStyle()
183             {
184                 Size = new Size(200, 50),
185                 TrackThickness = 8,
186                 Track = new ImageViewStyle()
187                 {
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>()
192                     {
193                         Normal = new Color(1.0f, 1.0f, 1.0f, 0.2f),
194                         Disabled = new Color(0.76f, 0.79f, 0.82f, 1),
195                     },
196                 },
197                 Progress = new ImageViewStyle()
198                 {
199                     Size = new Size(100, 8),
200                     BackgroundColor = new Selector<Color>()
201                     {
202                         Normal = new Color(0.03f, 0.05f, 0.3f, 1),
203                         Disabled = new Color(0.76f, 0.79f, 0.82f, 1),
204                     },
205                 },
206                 Thumb = new ImageViewStyle()
207                 {
208                     Size = new Size(36, 36),
209                     ResourceUrl = new Selector<string>()
210                     {
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",
215                     },
216                 },
217                 ValueIndicatorImage = new ImageViewStyle()
218                 {
219                     Size = new Size(49, 24),
220                     BackgroundColor = new Color(0.0f, 0.04f, 0.16f, 1.0f),
221                 },
222             });
223
224             // Switch base style
225             theme.AddStyleWithoutClone("Tizen.NUI.Components.Switch", new SwitchStyle()
226             {
227                 ItemSpacing = new Size2D(32, 32),
228                 ItemHorizontalAlignment = HorizontalAlignment.Begin,
229                 ItemVerticalAlignment = VerticalAlignment.Center,
230                 Track = new ImageViewStyle()
231                 {
232                     Size = new Size(80, 40),
233                     ResourceUrl = new Selector<string>()
234                     {
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",
243                     },
244                 },
245                 Thumb = new ImageViewStyle()
246                 {
247                     Size = new Size(40, 40),
248                     ResourceUrl = new Selector<string>()
249                     {
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",
255                     }
256                 },
257                 Text = new TextLabelStyle()
258                 {
259                     TextColor = new Color("#001447"),
260                     PixelSize = 32,
261                 }
262             });
263
264             // Loading base style
265             theme.AddStyleWithoutClone("Tizen.NUI.Components.Loading", new LoadingStyle()
266             {
267                 LoadingSize = new Size(100, 100),
268             });
269
270             // Pagination base style
271             theme.AddStyleWithoutClone("Tizen.NUI.Components.Pagination", new PaginationStyle()
272             {
273                 IndicatorImageUrl = new Selector<string>()
274                 {
275                     Normal = FrameworkInformation.ResourcePath + "nui_component_default_pagination_normal_dot.png",
276                     Selected = FrameworkInformation.ResourcePath + "nui_component_default_pagination_focus_dot.png",
277                 },
278                 IndicatorSize = new Size(10, 10),
279             });
280
281             // Scrollbar base style
282             theme.AddStyleWithoutClone("Tizen.NUI.Components.Scrollbar", new ScrollbarStyle()
283             {
284                 TrackThickness = 12,
285                 ThumbThickness = 12,
286                 TrackColor = new Color(0f, 0f, 0f, 0f),
287                 ThumbColor = new Color("#0A0E4A"),
288                 TrackPadding = 4,
289                 ThumbVerticalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_vbar.#.png",
290                 ThumbHorizontalImageUrl = FrameworkInformation.ResourcePath + "nui_component_default_scroll_hbar.#.png",
291             });
292
293             // LinearLayouter base style
294             theme.AddStyleWithoutClone("Tizen.NUI.Components.LinearLayouter", new ViewStyle()
295             {
296                 Padding = new Extents(64, 64, 0, 0)
297             });
298
299             // GridLayouter base style
300             theme.AddStyleWithoutClone("Tizen.NUI.Components.GridLayouter", new ViewStyle()
301             {
302                 Padding = new Extents(0, 0, 0, 0),
303             });
304
305             // ItemsLayouter base style
306             theme.AddStyleWithoutClone("Tizen.NUI.Components.ItemsLayouter", new ViewStyle()
307             {
308                 Padding = new Extents(0, 0, 0, 0),
309             });
310
311             // RecyclerViewItem base style
312             theme.AddStyleWithoutClone("Tizen.NUI.Components.RecyclerViewItem", new RecyclerViewItemStyle()
313             {
314                 BackgroundColor = new Selector<Color>()
315                 {
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),
320                 },
321             });
322
323             // DefaultLinearItem base style
324             theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultLinearItem", new DefaultLinearItemStyle()
325             {
326                 SizeHeight = 108,
327                 Padding = new Extents(64, 64, 18, 17),
328                 Margin = new Extents(0, 0, 0, 0),
329                 BackgroundColor = new Selector<Color>()
330                 {
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),
335                 },
336                 Label = new TextLabelStyle()
337                 {
338                     PixelSize = 32,
339                     Ellipsis = true,
340                     FontFamily = "BreezeSans", //FXIME Font Weight is Light
341                     TextColor = new Color("#001447"),
342                     ThemeChangeSensitive = false
343                 },
344                 SubLabel = new TextLabelStyle()
345                 {
346                     PixelSize = 28,
347                     Ellipsis = true,
348                     FontFamily = "BreezeSans",
349                     TextColor = new Color("#001447"),
350                     ThemeChangeSensitive = false
351                 },
352                 Icon = new ViewStyle()
353                 {
354                     Margin = new Extents(0, 32, 0, 0)
355                 },
356                 Extra = new ViewStyle()
357                 {
358                     Margin = new Extents(32, 0, 0, 0)
359                 },
360                 Seperator = new ViewStyle()
361                 {
362                     SizeHeight = 1,
363                     Margin = new Extents(64, 64, 0, 0),
364                     BackgroundColor = new Color("#C3CAD2"),
365                 },
366             });
367
368             // DefaultGridItem base style
369             theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultGridItem", new DefaultGridItemStyle()
370             {
371                 Padding = new Extents(0, 0, 0, 0),
372                 Margin = new Extents(5, 5, 5, 5),
373                 Label = new TextLabelStyle()
374                 {
375                     SizeHeight = 60,
376                     PixelSize = 24,
377                     LineWrapMode = LineWrapMode.Character,
378                     ThemeChangeSensitive = false
379                 },
380                 Badge = new ViewStyle()
381                 {
382                     Margin = new Extents(5, 5, 5, 5),
383                 },
384             });
385
386             // DefaultTitleItem base style
387             theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultTitleItem", new DefaultTitleItemStyle()
388             {
389                 SizeHeight = 60,
390                 Padding = new Extents(64, 64, 12, 12),
391                 Margin = new Extents(0, 0, 0, 0),
392                 BackgroundColor = new Selector<Color>()
393                 {
394                     Normal = new Color("#EEEEF1"),
395                 },
396                 Label = new TextLabelStyle()
397                 {
398                     PixelSize = 28,
399                     Ellipsis = true,
400                     TextColor = new Color("#001447"),
401                     ThemeChangeSensitive = false
402                 },
403                 Icon = new ViewStyle()
404                 {
405                     Margin = new Extents(40, 0, 0, 0)
406                 },
407                 Seperator = new ViewStyle()
408                 {
409                     Margin = new Extents(0, 0, 0, 0),
410                     BackgroundColor = new Color(0, 0, 0, 0),
411                 },
412             });
413
414             // ContentPage base style
415             theme.AddStyleWithoutClone("Tizen.NUI.Components.ContentPage", new ViewStyle()
416             {
417                 BackgroundColor = new Color("#EEEFF1"),
418             });
419
420             // AppBar base style
421             theme.AddStyleWithoutClone("Tizen.NUI.Components.AppBar", new AppBarStyle()
422             {
423                 Size = new Size(-1, 64),
424                 BackgroundColor = Color.Transparent,
425                 BackButton = new ButtonStyle()
426                 {
427                     Size = new Size(48, 48),
428                     CornerRadius = 0,
429                     BackgroundColor = Color.Transparent,
430                     Icon = new ImageViewStyle()
431                     {
432                         Size = new Size(48, 48),
433                         ResourceUrl = FrameworkInformation.ResourcePath + "nui_component_default_back_button.png",
434                         Color = new Selector<Color>()
435                         {
436                             Normal = new Color("#17234D"),
437                             Focused = new Color("#17234D"),
438                             Pressed = new Color("#FF6200"),
439                             Disabled = new Color("#CACACA"),
440                         },
441                     },
442                     ThemeChangeSensitive = false
443                 },
444                 TitleTextLabel = new TextLabelStyle()
445                 {
446                     PixelSize = 24,
447                     VerticalAlignment = VerticalAlignment.Center,
448                     TextColor = new Selector<Color>()
449                     {
450                         Normal = new Color("#17234D"),
451                     },
452                     ThemeChangeSensitive = false
453                 },
454                 ActionView = new ViewStyle()
455                 {
456                     Size = new Size(48, 64),
457                     CornerRadius = 0,
458                     BackgroundColor = Color.Transparent,
459                 },
460                 ActionButton = new ButtonStyle()
461                 {
462                     Size = new Size(-2, 64),
463                     CornerRadius = 0,
464                     BackgroundColor = Color.Transparent,
465                     Text = new TextLabelStyle()
466                     {
467                         PixelSize = 24,
468                         TextColor = new Selector<Color>()
469                         {
470                             Normal = new Color("#FF6200"),
471                             Focused = new Color("#FF6200"),
472                             Pressed = new Color("#D95300"),
473                             Disabled = new Color("#CACACA"),
474                         },
475                     },
476                     Icon = new ImageViewStyle()
477                     {
478                         Size = new Size(48, 48),
479                         Color = new Selector<Color>()
480                         {
481                             Normal = new Color("#17234D"),
482                             Focused = new Color("#17234D"),
483                             Pressed = new Color("#FF6200"),
484                             Disabled = new Color("#CACACA"),
485                         },
486                     },
487                     ThemeChangeSensitive = false,
488                 },
489                 Padding = new Extents(16, 16, 0, 0),
490                 NavigationPadding = new Extents(0, 8, 0, 0),
491                 ActionPadding = new Extents(16, 0, 0, 0),
492                 ActionCellPadding = new Size2D(16, 0),
493             });
494
495             // Picker base style
496             theme.AddStyleWithoutClone("Tizen.NUI.Components.Picker", new PickerStyle()
497             {
498                 Size = new Size(160, 339),
499                 ItemTextLabel = new TextLabelStyle()
500                 {
501                     //FIXME: Should be check PointSize. given size from UX is too large.
502                     PixelSize = 32,
503                     VerticalAlignment = VerticalAlignment.Center,
504                     HorizontalAlignment = HorizontalAlignment.Center,
505                     Size = new Size(0,72),
506                     TextColor = new Selector<Color>()
507                     {
508                         Normal = new Color("#000C2B"),
509                     },
510                     BackgroundColor = Color.White,
511                 },
512                 Divider = new ViewStyle()
513                 {
514                     SizeHeight = 2.0f,
515                     WidthResizePolicy = ResizePolicyType.FillToParent,
516                     Position = new Position(0, 132),
517                     BackgroundColor = new Color("#0A0E4A"),
518                 },
519                 StartScrollOffset = new Size(0, 12),
520             });
521
522             // TabButton base style
523             theme.AddStyleWithoutClone("Tizen.NUI.Components.TabButton", new TabButtonStyle()
524             {
525                 Size = new Size(-1, 84),
526                 CornerRadius = 0,
527                 BackgroundColor = Color.White,
528                 Text = new TextLabelStyle()
529                 {
530                     PixelSize = 28,
531                     Size = new Size(-2, -2),
532                     TextColor = new Selector<Color>()
533                     {
534                         Normal = new Color("#000C2B"),
535                         Selected = new Color("#000C2B"),
536                         Pressed = new Color("#1473E6"),
537                         Disabled = new Color("#C3CAD2"),
538                     },
539                     ThemeChangeSensitive = false,
540                 },
541                 Icon = new ImageViewStyle()
542                 {
543                     Size = new Size(48, 48),
544                     Color = new Selector<Color>()
545                     {
546                         Normal = new Color("#000C2B"),
547                         Selected = new Color("#000C2B"),
548                         Pressed = new Color("#1473E6"),
549                         Disabled = new Color("#C3CAD2"),
550                     },
551                 },
552                 TopLine = new ViewStyle()
553                 {
554                     Size = new Size(-1, 1),
555                     BackgroundColor = new Selector<Color>()
556                     {
557                         Normal = new Color("#000C2B"),
558                         Selected = new Color("#000C2B"),
559                         Pressed = new Color("#1473E6"),
560                         Disabled = new Color("#C3CAD2"),
561                     },
562                 },
563                 BottomLine = new ViewStyle()
564                 {
565                     Size = new Size(-1, 8),
566                     Position = new Position(0, 76), // 84 - 8
567                     BackgroundColor = new Selector<Color>()
568                     {
569                         Normal = Color.Transparent,
570                         Selected = new Color("#000C2B"),
571                         Pressed = new Color("#1473E6"),
572                         Disabled = Color.Transparent,
573                     },
574                 },
575             });
576
577             // NotificationToast base style
578             theme.AddStyleWithoutClone("NotificationToast", new TextLabelStyle()
579             {
580                 BackgroundColor = new Color("#F2F7FF"),
581                 CornerRadius = 20.0f,
582                 BoxShadow = new Shadow(5.0f, new Color("#00000066"), new Vector2(2.0f, 2.0f)),
583                 TextColor = new Color("#000C2B"),
584                 PixelSize = 32,
585                 WidthResizePolicy = ResizePolicyType.UseNaturalSize,
586                 HeightResizePolicy = ResizePolicyType.UseNaturalSize,
587                 PositionUsesPivotPoint = true,
588                 HorizontalAlignment = HorizontalAlignment.Center,
589                 VerticalAlignment = VerticalAlignment.Center,
590                 Padding = new Extents(40, 40, 24, 24),
591                 PositionY = 120,
592             });
593
594             // AlertDialog base style
595             theme.AddStyleWithoutClone("Tizen.NUI.Components.AlertDialog", new AlertDialogStyle()
596             {
597                 Size = new Size(-2, -2),
598                 Padding = new Extents(80, 80, 0, 0),
599                 BackgroundColor = Color.White,
600                 CornerRadius = 28.0f,
601                 BoxShadow = new Shadow(2.0f, new Color("#00000029"), new Vector2(2.0f, 2.0f)),
602                 TitleTextLabel = new TextLabelStyle()
603                 {
604                     Size = new Size(720, -2),
605                     Margin = new Extents(0, 0, 40, 40),
606                     PixelSize = 40,
607                     HorizontalAlignment = HorizontalAlignment.Center,
608                     VerticalAlignment = VerticalAlignment.Center,
609                     TextColor = new Color("#000C2B"),
610                     ThemeChangeSensitive = false,
611                 },
612                 MessageTextLabel = new TextLabelStyle()
613                 {
614                     Size = new Size(720, -2),
615                     Margin = new Extents(0, 0, 0, 64),
616                     PixelSize = 32,
617                     MultiLine = true,
618                     HorizontalAlignment = HorizontalAlignment.Center,
619                     VerticalAlignment = VerticalAlignment.Center,
620                     TextColor = new Color("#000C2B"),
621                     ThemeChangeSensitive = false,
622                 },
623                 ActionContent = new ViewStyle()
624                 {
625                     Size = new Size(720, -2),
626                 },
627             });
628
629             // TimePicker base style
630             theme.AddStyleWithoutClone("Tizen.NUI.Components.TimePicker", new TimePickerStyle()
631             {
632                 CellPadding = new Size(50, 339),
633
634                 Pickers = new PickerStyle()
635                 {
636                     Size = new Size(160, 339),
637                     ItemTextLabel = new TextLabelStyle()
638                     {
639                         //FIXME: Should be check PointSize. given size from UX is too large.
640                         PixelSize = 32,
641                         VerticalAlignment = VerticalAlignment.Center,
642                         HorizontalAlignment = HorizontalAlignment.Center,
643                         Size = new Size(0,72),
644                         TextColor = new Color("#000C2B"),
645                         BackgroundColor = Color.White,
646                         ThemeChangeSensitive = false
647                     },
648                     Divider = new ViewStyle()
649                     {
650                         SizeHeight = 2.0f,
651                         WidthResizePolicy = ResizePolicyType.FillToParent,
652                         Position = new Position(0, 132),
653                         BackgroundColor = new Color("#0A0E4A"),
654                     },
655                     StartScrollOffset = new Size2D(0, 12),
656                 }
657             });
658
659             // DatePicker base style
660             theme.AddStyleWithoutClone("Tizen.NUI.Components.DatePicker", new DatePickerStyle()
661             {
662                 CellPadding = new Size(50, 339),
663
664                 Pickers = new PickerStyle()
665                 {
666                     Size = new Size(160, 339),
667                     ItemTextLabel = new TextLabelStyle()
668                     {
669                         //FIXME: Should be check PointSize. given size from UX is too large.
670                         PixelSize = 32,
671                         VerticalAlignment = VerticalAlignment.Center,
672                         HorizontalAlignment = HorizontalAlignment.Center,
673                         Size = new Size(0,72),
674                         TextColor = new Color("#000C2B"),
675                         BackgroundColor = Color.White,
676                         ThemeChangeSensitive = false
677                     },
678                     Divider = new ViewStyle()
679                     {
680                         SizeHeight = 2.0f,
681                         WidthResizePolicy = ResizePolicyType.FillToParent,
682                         Position = new Position(0, 132),
683                         BackgroundColor = new Color("#0A0E4A"),
684                     },
685                     StartScrollOffset = new Size2D(0, 12),
686                 }
687             });
688
689             // MenuItem base style
690             theme.AddStyleWithoutClone("Tizen.NUI.Components.MenuItem", new ButtonStyle()
691             {
692                 Size = new Size(480, -2),
693                 MinimumSize = new Size2D(0, 72),
694                 CornerRadius = 0,
695                 BackgroundImage = FrameworkInformation.ResourcePath + "nui_component_menu_item_bg.png",
696                 Padding = new Extents(16, 16, 16, 16),
697                 Text = new TextLabelStyle()
698                 {
699                     PixelSize = 32,
700                     MultiLine = true,
701                     HorizontalAlignment = HorizontalAlignment.Begin,
702                     VerticalAlignment = VerticalAlignment.Center,
703                     TextColor = new Selector<Color>()
704                     {
705                         Normal = new Color("#001447"),
706                         Focused = new Color("#00338B"),
707                         Pressed = new Color("#1B69CA"),
708                         Disabled = new Color("#C3CAD2"),
709                         Selected = new Color("#1B69CA"),
710                     },
711                     ThemeChangeSensitive = false
712                 },
713                 Icon = new ImageViewStyle()
714                 {
715                     Size = new Size(-2, 48),
716                     Color = new Selector<Color>()
717                     {
718                         Normal = new Color("#001447"),
719                         Focused = new Color("#00338B"),
720                         Pressed = new Color("#1B69CA"),
721                         Disabled = new Color("#C3CAD2"),
722                         Selected = new Color("#1B69CA"),
723                     },
724                 },
725             });
726
727             // AlertDialog base style
728             theme.AddStyleWithoutClone("Tizen.NUI.Components.DialogPage.Scrim", new ViewStyle()
729             {
730                 BackgroundColor = new Color("#090E21"),
731                 Opacity = 0.5f,
732             });
733
734             return theme;
735         }
736     }
737 }
738
739 #endif // !PROFILE_WEARABLE