2 * Copyright(c) 2021 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;
24 internal partial class DefaultThemeCreator
27 /// The base theme description.
29 [SuppressMessage("Microsoft.Reliability", "CA2000: Dispose objects before losing scope", Justification = "The responsibility to dispose the object is transferred to the theme object.")]
32 Theme theme = new Theme()
35 Version = DefaultVersion,
39 theme.AddStyleWithoutClone("Tizen.NUI.BaseComponents.TextLabel", new TextLabelStyle()
41 FontFamily = "TizenSans",
43 TextColor = new Color(0.04f, 0.05f, 0.13f, 1),
44 FontStyle = new PropertyMap().Add("weight", new PropertyValue("regular")),
48 theme.AddStyleWithoutClone("Tizen.NUI.BaseComponents.TextField", new TextFieldStyle()
50 FontFamily = "TizenSans",
52 TextColor = new Color(0.04f, 0.05f, 0.13f, 1),
53 PlaceholderTextColor = new Vector4(0.79f, 0.79f, 0.79f, 1),
54 FontStyle = new PropertyMap().Add("weight", new PropertyValue("regular")),
55 PrimaryCursorColor = new Vector4(0.04f, 0.05f, 0.13f, 1),
56 SecondaryCursorColor = new Vector4(0.04f, 0.05f, 0.13f, 1),
58 SelectionHighlightColor = new Vector4(1.00f, 0.38f, 0.00f, 0.30f),
59 GrabHandleColor = new Color(1.00f, 1.00f, 1.00f, 1),
60 GrabHandleImage = FrameworkInformation.ResourcePath + "IoT_handler_center_downW.png",
61 SelectionHandleImageLeft = new PropertyMap().Add("filename", new PropertyValue(FrameworkInformation.ResourcePath + "IoT_handler_downleftW.png")),
62 SelectionHandleImageRight = new PropertyMap().Add("filename", new PropertyValue(FrameworkInformation.ResourcePath + "IoT_handler_downrightW.png")),
66 theme.AddStyleWithoutClone("Tizen.NUI.BaseComponents.TextEditor", new TextEditorStyle()
68 FontFamily = "TizenSans",
70 TextColor = new Color(0.04f, 0.05f, 0.13f, 1),
71 PlaceholderTextColor = new Color(0.79f, 0.79f, 0.79f, 1),
72 FontStyle = new PropertyMap().Add("weight", new PropertyValue("regular")),
73 PrimaryCursorColor = new Vector4(0.04f, 0.05f, 0.13f, 1),
74 SecondaryCursorColor = new Vector4(0.04f, 0.05f, 0.13f, 1),
76 SelectionHighlightColor = new Vector4(1.00f, 0.38f, 0.00f, 0.30f),
77 GrabHandleColor = new Color(1.00f, 1.00f, 1.00f, 1),
78 GrabHandleImage = FrameworkInformation.ResourcePath + "IoT_handler_center_downW.png",
79 SelectionHandleImageLeft = new PropertyMap().Add("filename", new PropertyValue(FrameworkInformation.ResourcePath + "IoT_handler_downleftW.png")),
80 SelectionHandleImageRight = new PropertyMap().Add("filename", new PropertyValue(FrameworkInformation.ResourcePath + "IoT_handler_downrightW.png")),