2025-05-04 14:59:30 +02:00
|
|
|
using AIStudio.Tools.PluginSystem;
|
|
|
|
|
|
2024-09-15 12:30:07 +02:00
|
|
|
namespace AIStudio.Settings.DataModel;
|
|
|
|
|
|
|
|
|
|
public static class ThemesExtensions
|
|
|
|
|
{
|
2025-05-04 14:59:30 +02:00
|
|
|
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(ThemesExtensions).Namespace, nameof(ThemesExtensions));
|
|
|
|
|
|
2025-02-25 19:58:17 +01:00
|
|
|
public static string GetName(this Themes theme) => theme switch
|
2024-09-15 12:30:07 +02:00
|
|
|
{
|
2025-05-04 14:59:30 +02: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 19:58:17 +01:00
|
|
|
|
2025-05-04 14:59:30 +02:00
|
|
|
_ => TB("Unknown setting"),
|
2025-02-25 19:58:17 +01:00
|
|
|
};
|
2024-09-15 12:30:07 +02:00
|
|
|
}
|