09082b7c2971543c36087ea1b957c4b6024ba0fe
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / Theme / DefaultThemeCommon.cs
1 /*
2  * Copyright(c) 2021 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 #if !PROFILE_TV
18
19 using System.Diagnostics.CodeAnalysis;
20 using Tizen.NUI.BaseComponents;
21
22 namespace Tizen.NUI
23 {
24     internal partial class DefaultThemeCreator
25     {
26         [SuppressMessage("Microsoft.Reliability", "CA2000: Dispose objects before losing scope", Justification = "The responsibility to dispose the object is transferred to the theme object.")]
27         public Theme Create()
28         {
29             Theme theme = new Theme()
30             {
31                 Id = DefaultId,
32                 Version = DefaultVersion,
33             };
34
35             // // TODO Add a TextLabelStyle style to the theme if need.
36             // // This is an example of text label style.
37             // theme.AddStyleWithoutClone("Tizen.NUI.BaseComponents.TextLabel", new TextLabelStyle()
38             // {
39             //     PixelSize = 10,
40             //     TextColor = Color.Red,
41             // });
42
43             // // TODO Add a TextFieldStyle to the theme if need.
44             // // This is an example of text filed style.
45             // theme.AddStyleWithoutClone("Tizen.NUI.BaseComponents.TextField", new TextFieldStyle()
46             // {
47             //     //...
48             // });
49
50             // // TODO Add a TextEditorStyle to the theme if need.
51             // // This is an example of text filed style.
52             // theme.AddStyleWithoutClone("Tizen.NUI.BaseComponents.TextEditor", new TextEditorStyle()
53             // {
54             //     //...
55             // });
56
57             return theme;
58         }
59     }
60 }
61 #endif