mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-11 10:27:21 +00:00
Moved all extension methods into extension blocks (#1155)
This commit is contained in:
1 parent
acc7d09fa2
commit
c0a75f39ac
138 files changed
+5884
-4954
No files matched your search
@@ -6,12 +6,15 @@ public static class ThemesExtensions
|
||||
{
|
||||
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(ThemesExtensions).Namespace, nameof(ThemesExtensions));
|
||||
|
||||
public static string GetName(this Themes theme) => theme switch
|
||||
extension(Themes theme)
|
||||
{
|
||||
Themes.SYSTEM => TB("Synchronized with the operating system settings"),
|
||||
Themes.LIGHT => TB("Always use light theme"),
|
||||
Themes.DARK => TB("Always use dark theme"),
|
||||
public string GetName() => 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"),
|
||||
|
||||
_ => TB("Unknown setting"),
|
||||
};
|
||||
_ => TB("Unknown setting"),
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user