2 * Copyright(c) 2020 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.
18 using System.Collections.Generic;
19 using Tizen.NUI.BaseComponents;
21 namespace Tizen.NUI.Wearable
23 internal class DefaultThemeCreator : IThemeCreator
25 private DefaultThemeCreator() { }
27 public static IThemeCreator Instance { get; set; } = new DefaultThemeCreator();
31 var theme = new Theme()
33 Id = Tizen.NUI.DefaultThemeCreator.DefaultId,
34 Version = Tizen.NUI.DefaultThemeCreator.DefaultVersion
37 theme.AddStyleWithoutClone("Tizen.NUI.Wearable.CircularPagination", new CircularPaginationStyle()
39 IndicatorSize = new Size(10, 10),
40 IndicatorImageURL = new Selector<string>()
42 Normal = FrameworkInformation.ResourcePath + "nui_component_default_pagination_normal_dot.png",
43 Selected = FrameworkInformation.ResourcePath + "nui_component_default_pagination_focus_dot.png",
45 CenterIndicatorImageURL = new Selector<string>()
47 Normal = FrameworkInformation.ResourcePath + "nui_wearable_circular_pagination_center_normal_dot.png",
48 Selected = FrameworkInformation.ResourcePath + "nui_wearable_circular_pagination_center_focus_dot.png",
52 theme.AddStyleWithoutClone("Tizen.NUI.Wearable.CircularProgress", new CircularProgressStyle()
58 TrackColor = new Color(0, 0.16f, 0.3f, 1),
59 ProgressColor = new Color(0, 0.55f, 1, 1)
62 theme.AddStyleWithoutClone("Tizen.NUI.Wearable.CircularScrollbar", new CircularScrollbarStyle()
66 TrackColor = new Color(1, 1, 1, 0.15f),
67 ThumbColor = new Color(0.6f, 0.6f, 0.6f, 1)
70 theme.AddStyleWithoutClone("Tizen.NUI.Wearable.CircularSlider", new CircularSliderStyle()
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)