mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-13 20:02:12 +00:00
22 lines
806 B
C#
22 lines
806 B
C#
using AIStudio.Settings;
|
|
|
|
namespace AIStudio.Tools;
|
|
|
|
public static class MudThemeExtensions
|
|
{
|
|
public static Palette GetCurrentPalette(this MudTheme theme, SettingsManager settingsManager) => settingsManager.IsDarkMode switch
|
|
{
|
|
true => theme.PaletteDark,
|
|
false => theme.PaletteLight,
|
|
};
|
|
|
|
public static string GetActivityIndicatorColor(this MudTheme theme, SettingsManager settingsManager) => settingsManager.IsDarkMode switch
|
|
{
|
|
true => theme.GetActivityIndicatorDarkColor(),
|
|
false => theme.GetActivityIndicatorLightColor(),
|
|
};
|
|
|
|
public static string GetActivityIndicatorLightColor(this MudTheme theme) => theme.PaletteLight.Info.Value;
|
|
|
|
public static string GetActivityIndicatorDarkColor(this MudTheme theme) => theme.PaletteDark.InfoLighten;
|
|
} |