2025-05-04 12:59:30 +00:00
|
|
|
using AIStudio.Tools.PluginSystem;
|
|
|
|
|
2024-09-15 10:30:07 +00:00
|
|
|
namespace AIStudio.Settings.DataModel;
|
|
|
|
|
|
|
|
public static class ThemesExtensions
|
|
|
|
{
|
2025-05-04 12:59:30 +00:00
|
|
|
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
|
2024-09-15 10:30:07 +00:00
|
|
|
{
|
2025-05-04 12:59:30 +00:00
|
|
|
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
|
|
|
|
2025-05-04 12:59:30 +00:00
|
|
|
_ => TB("Unknown setting"),
|
2025-02-25 18:58:17 +00:00
|
|
|
};
|
2024-09-15 10:30:07 +00:00
|
|
|
}
|