mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 07:27:21 +00:00
Turned getter-like extension methods into extension properties (#1157)
This commit is contained in:
1 parent
0375318b1b
commit
f649febf88
286 files changed
+1379
-1109
No files matched your search
@@ -14,12 +14,12 @@ public static class MudThemeExtensions
|
||||
|
||||
public string GetActivityIndicatorColor(SettingsManager settingsManager) => settingsManager.IsDarkMode switch
|
||||
{
|
||||
true => theme.GetActivityIndicatorDarkColor(),
|
||||
false => theme.GetActivityIndicatorLightColor(),
|
||||
true => theme.ActivityIndicatorDarkColor,
|
||||
false => theme.ActivityIndicatorLightColor,
|
||||
};
|
||||
|
||||
public string GetActivityIndicatorLightColor() => theme.PaletteLight.Info.Value;
|
||||
public string ActivityIndicatorLightColor => theme.PaletteLight.Info.Value;
|
||||
|
||||
public string GetActivityIndicatorDarkColor() => theme.PaletteDark.InfoLighten;
|
||||
public string ActivityIndicatorDarkColor => theme.PaletteDark.InfoLighten;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user