mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-13 19:27:21 +00:00
Changed all icons of AI Studio to Lucide (#1187)
This commit is contained in:
1 parent
9a676101f7
commit
7ef26cd5c8
352 files changed
+6261
-1620
No files matched your search
@@ -102,4 +102,16 @@
|
||||
</MudLayout>
|
||||
</MudPaper>
|
||||
|
||||
<MudMarkdownThemeProvider @ref="@this.themeProvider" Theme="@this.ColorTheme" IsDarkMode="@this.useDarkMode" ObserveSystemDarkModeChange="@this.FollowSystemTheme" />
|
||||
<MudMarkdownThemeProvider @ref="@this.themeProvider" Theme="@this.ColorTheme" IsDarkMode="@this.useDarkMode" ObserveSystemDarkModeChange="@this.FollowSystemTheme" />
|
||||
|
||||
@if (this.useDarkMode)
|
||||
{
|
||||
@*
|
||||
Lucide draws its icons with thin strokes, and on a dark background they almost vanish in the red of errors,
|
||||
such as the trash icons. In dark mode, these icons take the lighter red of the palette, as the heart of the
|
||||
supporters does:
|
||||
*@
|
||||
<style>
|
||||
.mud-error-text .lucide, .lucide.mud-error-text { color: var(--mud-palette-error-lighten) !important; }
|
||||
</style>
|
||||
}
|
||||
@@ -210,7 +210,7 @@ public partial class MainLayout : LayoutComponentBase, IMessageBusReceiver, ILan
|
||||
|
||||
this.Snackbar.Add(message, Severity.Warning, config =>
|
||||
{
|
||||
config.Icon = Icons.Material.Filled.WarningAmber;
|
||||
config.Icon = AppIcons.WARNING;
|
||||
config.IconSize = Size.Large;
|
||||
config.VisibleStateDuration = 32_000;
|
||||
config.HideTransitionDuration = 600;
|
||||
@@ -260,7 +260,7 @@ public partial class MainLayout : LayoutComponentBase, IMessageBusReceiver, ILan
|
||||
var message = string.Format(T("An update to version {0} is available."), updateResponse.NewVersion);
|
||||
this.Snackbar.Add(message, Severity.Info, config =>
|
||||
{
|
||||
config.Icon = Icons.Material.Filled.Update;
|
||||
config.Icon = AppIcons.APP_UPDATE;
|
||||
config.IconSize = Size.Large;
|
||||
config.HideTransitionDuration = 600;
|
||||
config.VisibleStateDuration = 32_000;
|
||||
@@ -500,17 +500,17 @@ public partial class MainLayout : LayoutComponentBase, IMessageBusReceiver, ILan
|
||||
var assistantsLightColor = hasActiveAssistantWork ? activityIndicatorLightColor : defaultLightColor;
|
||||
var assistantsDarkColor = hasActiveAssistantWork ? activityIndicatorDarkColor : defaultDarkColor;
|
||||
|
||||
yield return new(T("Home"), Icons.Material.Filled.Home, defaultLightColor, defaultDarkColor, Routes.HOME, true);
|
||||
yield return new(T("Chat"), Icons.Material.Filled.Chat, chatLightColor, chatDarkColor, Routes.CHAT, false);
|
||||
yield return new(T("Assistants"), Icons.Material.Filled.Apps, assistantsLightColor, assistantsDarkColor, Routes.ASSISTANTS, false);
|
||||
yield return new(T("Home"), AppIcons.HOME, defaultLightColor, defaultDarkColor, Routes.HOME, true);
|
||||
yield return new(T("Chat"), AppIcons.CHAT, chatLightColor, chatDarkColor, Routes.CHAT, false);
|
||||
yield return new(T("Assistants"), AppIcons.ASSISTANTS, assistantsLightColor, assistantsDarkColor, Routes.ASSISTANTS, false);
|
||||
|
||||
if (PreviewFeatures.PRE_WRITER_MODE_2024.IsEnabled(this.SettingsManager))
|
||||
yield return new(T("Writer"), Icons.Material.Filled.Create, defaultLightColor, defaultDarkColor, Routes.WRITER, false);
|
||||
yield return new(T("Writer"), AppIcons.WRITER, defaultLightColor, defaultDarkColor, Routes.WRITER, false);
|
||||
|
||||
yield return new(T("Plugins"), Icons.Material.TwoTone.Extension, defaultLightColor, defaultDarkColor, Routes.PLUGINS, false);
|
||||
yield return new(T("Supporters"), Icons.Material.Filled.Favorite, palette.Error.Value, "#801a00", Routes.SUPPORTERS, false);
|
||||
yield return new(T("Information"), Icons.Material.Filled.Info, defaultLightColor, defaultDarkColor, Routes.ABOUT, false);
|
||||
yield return new(T("Settings"), Icons.Material.Filled.Settings, defaultLightColor, defaultDarkColor, Routes.SETTINGS, false);
|
||||
yield return new(T("Plugins"), AppIcons.PLUGIN, defaultLightColor, defaultDarkColor, Routes.PLUGINS, false);
|
||||
yield return new(T("Supporters"), AppIcons.SUPPORTERS, this.ColorTheme.PaletteLight.Error.Value, this.ColorTheme.PaletteDark.ErrorLighten, Routes.SUPPORTERS, false);
|
||||
yield return new(T("Information"), AppIcons.INFO, defaultLightColor, defaultDarkColor, Routes.ABOUT, false);
|
||||
yield return new(T("Settings"), AppIcons.SETTINGS, defaultLightColor, defaultDarkColor, Routes.SETTINGS, false);
|
||||
}
|
||||
|
||||
private void LoadEmbeddingItem()
|
||||
@@ -532,14 +532,14 @@ public partial class MainLayout : LayoutComponentBase, IMessageBusReceiver, ILan
|
||||
var palette = this.ColorTheme.GetCurrentPalette(this.SettingsManager);
|
||||
(string icon, string lightcolor, string darkcolor) embeddingIcon = this.embeddingOverview.State switch
|
||||
{
|
||||
DataSourceEmbeddingState.QUEUED => (Icons.Material.Filled.Sync, palette.Info.Value, "#1976d2"),
|
||||
DataSourceEmbeddingState.RUNNING => (Icons.Material.Filled.Sync, palette.Warning.Value, "#d29f00"),
|
||||
_ when this.embeddingOverview.Health is DataSourceEmbeddingHealth.ERROR => (Icons.Material.Filled.Error, palette.Error.Value, "#d32f2f"),
|
||||
_ when this.embeddingOverview.Health is DataSourceEmbeddingHealth.WARNING => (Icons.Material.Filled.Warning, palette.Warning.Value, "#d29f00"),
|
||||
DataSourceEmbeddingState.QUEUED => (AppIcons.EMBEDDING_IN_PROGRESS, palette.Info.Value, "#1976d2"),
|
||||
DataSourceEmbeddingState.RUNNING => (AppIcons.EMBEDDING_IN_PROGRESS, palette.Warning.Value, "#d29f00"),
|
||||
_ when this.embeddingOverview.Health is DataSourceEmbeddingHealth.ERROR => (AppIcons.ERROR, palette.Error.Value, "#d32f2f"),
|
||||
_ when this.embeddingOverview.Health is DataSourceEmbeddingHealth.WARNING => (AppIcons.WARNING, palette.Warning.Value, "#d29f00"),
|
||||
|
||||
// Nothing to do: the entry keeps the colors of its neighbors, so a permanently visible
|
||||
// icon does not draw attention while there is nothing to attend to:
|
||||
_ => (Icons.Material.Filled.LibraryAddCheck, palette.DarkLighten, palette.GrayLight),
|
||||
_ => (AppIcons.DATA_SOURCES_UP_TO_DATE, palette.DarkLighten, palette.GrayLight),
|
||||
};
|
||||
this.embeddingItem = new NavBarItem(T("Data sources"), embeddingIcon.icon, embeddingIcon.lightcolor, embeddingIcon.darkcolor, Routes.EMBEDDINGS, false);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user