forked from stride3d/stride
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ThemesSettings.cs
29 lines (25 loc) · 941 Bytes
/
ThemesSettings.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) Stride contributors (https://stride3d.net)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
using Stride.Core.Assets.Editor.Settings;
using Stride.Core.Settings;
using Stride.Core.Translation;
namespace Stride.Core.Presentation.Themes
{
public static class ThemesSettings
{
// Categories
public static readonly string Themes = Tr._p("Settings", "Themes");
static ThemesSettings()
{
ThemeName = new SettingsKey<ThemeType>("Themes/ThemeName", EditorSettings.SettingsContainer, ThemeType.ExpressionDark)
{
DisplayName = $"{Themes}/{Tr._p("Settings", "Theme Name")}"
};
}
public static SettingsKey<ThemeType> ThemeName { get; }
public static void Initialize()
{
ThemeController.CurrentTheme = ThemeName.GetValue();
}
}
}