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.
17 using System.ComponentModel;
18 using Tizen.NUI.BaseComponents;
19 using Tizen.NUI.Components.Extension;
21 namespace Tizen.NUI.Components
24 /// Interface that includes styles for all components for a wearable theme
26 [EditorBrowsable(EditorBrowsableState.Never)]
27 internal class WearableTheme : DefaultTheme
29 internal static new Theme Instance { get; } = new WearableTheme();
31 private WearableTheme() : base()
35 protected override ButtonStyle GetButtonStyle()
37 return new ButtonStyle
39 Size = new Size(210, 72),
41 BackgroundColor = new Selector<Color>
43 Normal = new Color(0, 42f/255f, 77f/255f, 0.85f),
44 Pressed = new Color(0, 70f/255f, 128f/255f, 0.85f),
45 Disabled = new Color(61f/255f, 61f/255f, 61f/255f, 0.85f),
47 Text = new TextLabelStyle
49 FontFamily = "SamsungOne 700",
51 TextColor = new Selector<Color>
53 Normal = new Color(56f/255f, 164f/255f, 252f/255f, 1),
54 Pressed = new Color(56f/255f, 164f/255f, 252f/255f, 1),
55 Disabled = new Color(1, 1, 1, 0.35f),
57 Padding = new Extents(20, 20, 0, 0),
58 VerticalAlignment = VerticalAlignment.Center,
59 HorizontalAlignment = HorizontalAlignment.Center,
61 Opacity = new Selector<float?>
69 protected override ButtonStyle GetCheckBoxStyle()
71 return new LottieButtonStyle
73 LottieUrl = StyleManager.GetFrameworkResourcePath("nui_wearable_checkbox_icon.json"),
74 PlayRange = new Selector<LottieFrameInfo>
79 Opacity = new Selector<float?>
88 protected override ButtonStyle GetRadioButtonStyle()
90 return new LottieButtonStyle
92 LottieUrl = StyleManager.GetFrameworkResourcePath("nui_wearable_radiobutton_icon.json"),
93 PlayRange = new Selector<LottieFrameInfo>
98 Opacity = new Selector<float?>
107 protected override SwitchStyle GetSwitchStyle()
109 return new LottieSwitchStyle
111 LottieUrl = StyleManager.GetFrameworkResourcePath("nui_wearable_switch_icon.json"),
112 PlayRange = new Selector<LottieFrameInfo>
117 Opacity = new Selector<float?>
126 protected override LoadingStyle GetLoadingStyle()
128 return new LoadingStyle
130 LoadingSize = new Size(360, 360)