mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 01:27:21 +00:00
25 lines
768 B
C#
25 lines
768 B
C#
using AIStudio.Settings;
|
|
|
|
namespace AIStudio.Tools;
|
|
|
|
public static class MudThemeExtensions
|
|
{
|
|
extension(MudTheme theme)
|
|
{
|
|
public Palette GetCurrentPalette(SettingsManager settingsManager) => settingsManager.IsDarkMode switch
|
|
{
|
|
true => theme.PaletteDark,
|
|
false => theme.PaletteLight,
|
|
};
|
|
|
|
public string GetActivityIndicatorColor(SettingsManager settingsManager) => settingsManager.IsDarkMode switch
|
|
{
|
|
true => theme.ActivityIndicatorDarkColor,
|
|
false => theme.ActivityIndicatorLightColor,
|
|
};
|
|
|
|
public string ActivityIndicatorLightColor => theme.PaletteLight.Info.Value;
|
|
|
|
public string ActivityIndicatorDarkColor => theme.PaletteDark.InfoLighten;
|
|
}
|
|
} |