[NUI] Update theme system
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / Theme / ThemeChangedEventArgs.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 using System;
18 using System.ComponentModel;
19
20 namespace Tizen.NUI
21 {
22     /// <summary>
23     /// The event arguments that hold data for the event <see cref="ThemeManager.ThemeChanged"/>.
24     /// </summary>
25     /// <since_tizen> 9 </since_tizen>
26     public class ThemeChangedEventArgs : EventArgs
27     {
28         /// <summary>
29         /// </summary>
30         [EditorBrowsable(EditorBrowsableState.Never)]
31         public ThemeChangedEventArgs(string themeId, string platformThemeId, bool isPlatformThemeChanged)
32         {
33             ThemeId = themeId;
34             PlatformThemeId = platformThemeId;
35             IsPlatformThemeChanged = isPlatformThemeChanged;
36         }
37
38         /// <summary>
39         /// The new theme's Id.
40         /// </summary>
41         /// <since_tizen> 9 </since_tizen>
42         public string ThemeId { get; }
43
44         /// <summary>
45         /// The platform theme's Id.
46         /// </summary>
47         [EditorBrowsable(EditorBrowsableState.Never)]
48         public string PlatformThemeId { get; }
49
50         /// <summary>
51         /// Whether this event is trigger by platform theme change.
52         /// </summary>
53         /// <seealso cref="NUIApplication.ThemeOptions.PlatformThemeEnabled"/>
54         [EditorBrowsable(EditorBrowsableState.Never)]
55         public bool IsPlatformThemeChanged { get; }
56     }
57 }