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")),
45 AutoScrollLoopCount = 2,
46 AutoScrollGap = 50.0f,
51 theme.AddStyleWithoutClone("Tizen.NUI.BaseComponents.TextField", new TextFieldStyle()
53 FontFamily = "TizenSans",
55 TextColor = new Color(0.04f, 0.05f, 0.13f, 1),
56 PlaceholderTextColor = new Vector4(0.79f, 0.79f, 0.79f, 1),
57 FontStyle = new PropertyMap().Add("weight", new PropertyValue("regular")),
58 PrimaryCursorColor = new Vector4(0.04f, 0.05f, 0.13f, 1),
59 SecondaryCursorColor = new Vector4(0.04f, 0.05f, 0.13f, 1),
61 SelectionHighlightColor = new Vector4(1.00f, 0.38f, 0.00f, 0.30f),
62 GrabHandleColor = new Color(1.00f, 1.00f, 1.00f, 1),
63 GrabHandleImage = FrameworkInformation.ResourcePath + "IoT_handler_center_downW.png",
64 SelectionHandleImageLeft = new PropertyMap().Add("filename", new PropertyValue(FrameworkInformation.ResourcePath + "IoT_handler_downleftW.png")),
65 SelectionHandleImageRight = new PropertyMap().Add("filename", new PropertyValue(FrameworkInformation.ResourcePath + "IoT_handler_downrightW.png")),
66 SelectionPopupStyle = new PropertyMap()
67 .Add(SelectionPopupStyleProperty.MaxSize, new PropertyValue(new Vector2(1200.0f, 40.0f)))
68 .Add(SelectionPopupStyleProperty.DividerSize, new PropertyValue(new Vector2(0.0f, 0.0f)))
69 .Add(SelectionPopupStyleProperty.DividerPadding, new PropertyValue(new Vector4(0.0f, 0.0f, 0.0f, 0.0f)))
70 .Add(SelectionPopupStyleProperty.Background, new PropertyValue(new PropertyMap().Add(ImageVisualProperty.URL, new PropertyValue(FrameworkInformation.ResourcePath + "IoT-selection-popup-background.9.png"))))
71 .Add(SelectionPopupStyleProperty.BackgroundBorder, new PropertyValue(new PropertyMap().Add(ImageVisualProperty.URL, new PropertyValue(FrameworkInformation.ResourcePath + "IoT-selection-popup-border.9.png"))))
72 .Add(SelectionPopupStyleProperty.PressedColor, new PropertyValue(new Vector4(1.0f, 0.39f, 0.0f, 0.16f)))
73 .Add(SelectionPopupStyleProperty.PressedCornerRadius, new PropertyValue(12.0f))
74 .Add(SelectionPopupStyleProperty.FadeInDuration, new PropertyValue(0.25f))
75 .Add(SelectionPopupStyleProperty.FadeOutDuration, new PropertyValue(0.25f))
76 .Add(SelectionPopupStyleProperty.EnableScrollBar, new PropertyValue(false))
77 .Add(SelectionPopupStyleProperty.LabelMinimumSize, new PropertyValue(new Vector2(0, 40.0f)))
78 .Add(SelectionPopupStyleProperty.LabelPadding, new PropertyValue(new Vector4(-4.0f, -4.0f, 0.0f, 0.0f)))
79 .Add(SelectionPopupStyleProperty.LabelTextVisual, new PropertyValue(new PropertyMap()
80 .Add(TextVisualProperty.PointSize, new PropertyValue(6.0f))
81 .Add(TextVisualProperty.TextColor, new PropertyValue(new Vector4(1.00f, 0.38f, 0.00f, 1)))
82 .Add(TextVisualProperty.FontFamily, new PropertyValue("TizenSans"))
83 .Add(TextVisualProperty.FontStyle, new PropertyValue(new PropertyMap().Add("weight", new PropertyValue("regular")))))),
87 theme.AddStyleWithoutClone("Tizen.NUI.BaseComponents.TextEditor", new TextEditorStyle()
89 FontFamily = "TizenSans",
91 TextColor = new Color(0.04f, 0.05f, 0.13f, 1),
92 PlaceholderTextColor = new Color(0.79f, 0.79f, 0.79f, 1),
93 FontStyle = new PropertyMap().Add("weight", new PropertyValue("regular")),
94 PrimaryCursorColor = new Vector4(0.04f, 0.05f, 0.13f, 1),
95 SecondaryCursorColor = new Vector4(0.04f, 0.05f, 0.13f, 1),
97 SelectionHighlightColor = new Vector4(1.00f, 0.38f, 0.00f, 0.30f),
98 GrabHandleColor = new Color(1.00f, 1.00f, 1.00f, 1),
99 GrabHandleImage = FrameworkInformation.ResourcePath + "IoT_handler_center_downW.png",
100 SelectionHandleImageLeft = new PropertyMap().Add("filename", new PropertyValue(FrameworkInformation.ResourcePath + "IoT_handler_downleftW.png")),
101 SelectionHandleImageRight = new PropertyMap().Add("filename", new PropertyValue(FrameworkInformation.ResourcePath + "IoT_handler_downrightW.png")),
102 SelectionPopupStyle = new PropertyMap()
103 .Add(SelectionPopupStyleProperty.MaxSize, new PropertyValue(new Vector2(1200.0f, 40.0f)))
104 .Add(SelectionPopupStyleProperty.DividerSize, new PropertyValue(new Vector2(0.0f, 0.0f)))
105 .Add(SelectionPopupStyleProperty.DividerPadding, new PropertyValue(new Vector4(0.0f, 0.0f, 0.0f, 0.0f)))
106 .Add(SelectionPopupStyleProperty.Background, new PropertyValue(new PropertyMap().Add(ImageVisualProperty.URL, new PropertyValue(FrameworkInformation.ResourcePath + "IoT-selection-popup-background.9.png"))))
107 .Add(SelectionPopupStyleProperty.BackgroundBorder, new PropertyValue(new PropertyMap().Add(ImageVisualProperty.URL, new PropertyValue(FrameworkInformation.ResourcePath + "IoT-selection-popup-border.9.png"))))
108 .Add(SelectionPopupStyleProperty.PressedColor, new PropertyValue(new Vector4(1.0f, 0.39f, 0.0f, 0.16f)))
109 .Add(SelectionPopupStyleProperty.PressedCornerRadius, new PropertyValue(12.0f))
110 .Add(SelectionPopupStyleProperty.FadeInDuration, new PropertyValue(0.25f))
111 .Add(SelectionPopupStyleProperty.FadeOutDuration, new PropertyValue(0.25f))
112 .Add(SelectionPopupStyleProperty.EnableScrollBar, new PropertyValue(false))
113 .Add(SelectionPopupStyleProperty.LabelMinimumSize, new PropertyValue(new Vector2(0, 40.0f)))
114 .Add(SelectionPopupStyleProperty.LabelPadding, new PropertyValue(new Vector4(-4.0f, -4.0f, 0.0f, 0.0f)))
115 .Add(SelectionPopupStyleProperty.LabelTextVisual, new PropertyValue(new PropertyMap()
116 .Add(TextVisualProperty.PointSize, new PropertyValue(6.0f))
117 .Add(TextVisualProperty.TextColor, new PropertyValue(new Vector4(1.00f, 0.38f, 0.00f, 1)))
118 .Add(TextVisualProperty.FontFamily, new PropertyValue("TizenSans"))
119 .Add(TextVisualProperty.FontStyle, new PropertyValue(new PropertyMap().Add("weight", new PropertyValue("regular")))))),
127 #endif // !PROFILE_TV