[NUI] Update theme system
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI.Wearable / src / internal / Theme / DefaultTheme.cs
1 /*
2  * Copyright(c) 2020 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
18 using System.Collections.Generic;
19 using Tizen.NUI.BaseComponents;
20
21 namespace Tizen.NUI.Wearable
22 {
23     internal class DefaultThemeCreator : IThemeCreator
24     {
25         private DefaultThemeCreator() { }
26
27         public static IThemeCreator Instance { get; set; } = new DefaultThemeCreator();
28
29         public Theme Create()
30         {
31             var theme = new Theme()
32             {
33                 Id = Tizen.NUI.DefaultThemeCreator.DefaultId,
34                 Version = Tizen.NUI.DefaultThemeCreator.DefaultVersion
35             };
36
37             theme.AddStyleWithoutClone("Tizen.NUI.Wearable.CircularPagination", new CircularPaginationStyle()
38             {
39                 IndicatorSize = new Size(10, 10),
40                 IndicatorImageURL = new Selector<string>()
41                 {
42                     Normal = FrameworkInformation.ResourcePath + "nui_component_default_pagination_normal_dot.png",
43                     Selected = FrameworkInformation.ResourcePath + "nui_component_default_pagination_focus_dot.png",
44                 },
45                 CenterIndicatorImageURL = new Selector<string>()
46                 {
47                     Normal = FrameworkInformation.ResourcePath + "nui_wearable_circular_pagination_center_normal_dot.png",
48                     Selected = FrameworkInformation.ResourcePath + "nui_wearable_circular_pagination_center_focus_dot.png",
49                 },
50             });
51
52             theme.AddStyleWithoutClone("Tizen.NUI.Wearable.CircularProgress", new CircularProgressStyle()
53             {
54                 Thickness = 6,
55                 MaxValue = 100,
56                 MinValue = 0, 
57                 CurrentValue = 0,
58                 TrackColor = new Color(0, 0.16f, 0.3f, 1),
59                 ProgressColor = new Color(0, 0.55f, 1, 1)
60             });
61
62             theme.AddStyleWithoutClone("Tizen.NUI.Wearable.CircularScrollbar", new CircularScrollbarStyle()
63             {
64                 Thickness = 10,
65                 TrackSweepAngle = 60,
66                 TrackColor = new Color(1, 1, 1, 0.15f),
67                 ThumbColor = new Color(0.6f, 0.6f, 0.6f, 1)
68             });
69
70             theme.AddStyleWithoutClone("Tizen.NUI.Wearable.CircularSlider", new CircularSliderStyle()
71             {
72                 Thickness = 6,
73                 MaxValue = 100,
74                 MinValue = 0,
75                 CurrentValue = 0,
76                 TrackColor = new Color(0, 0.16f, 0.3f, 1),
77                 ProgressColor = new Color(0, 0.55f, 1, 1),
78                 ThumbSize = new Size(19, 19),
79                 ThumbColor = new Color(0, 0.55f, 1, 1)
80             });
81
82             return theme;
83         }
84     }
85 }