AI-Studio/app/MindWork AI Studio/Settings/DataModel/ThemesExtensions.cs

17 lines
560 B
C#
Raw Normal View History

using AIStudio.Tools.PluginSystem;
namespace AIStudio.Settings.DataModel;
public static class ThemesExtensions
{
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(ThemesExtensions).Namespace, nameof(ThemesExtensions));
2025-02-25 18:58:17 +00:00
public static string GetName(this Themes theme) => theme switch
{
Themes.SYSTEM => TB("Synchronized with the operating system settings"),
Themes.LIGHT => TB("Always use light theme"),
Themes.DARK => TB("Always use dark theme"),
2025-02-25 18:58:17 +00:00
_ => TB("Unknown setting"),
2025-02-25 18:58:17 +00:00
};
}