From 6c1360725fe001c896e5651397ee8c4bbbc2b818 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 6 Sep 2026 19:52:34 +0200 Subject: [PATCH] Use the storage icon for data sources --- .../Components/DataSourceSelection.razor | 4 ++-- .../Components/DirectChatLauncherForm.razor | 2 +- .../Settings/SettingsDialogDataSources.razor | 2 +- app/MindWork AI Studio/Tools/AppIcons.cs | 20 +++++++++++++++++++ 4 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 app/MindWork AI Studio/Tools/AppIcons.cs diff --git a/app/MindWork AI Studio/Components/DataSourceSelection.razor b/app/MindWork AI Studio/Components/DataSourceSelection.razor index c1ef70f1..42d365c0 100644 --- a/app/MindWork AI Studio/Components/DataSourceSelection.razor +++ b/app/MindWork AI Studio/Components/DataSourceSelection.razor @@ -7,11 +7,11 @@ @if (this.PopoverTriggerMode is PopoverTriggerMode.ICON) { - + } else { - + @T("Select data") } diff --git a/app/MindWork AI Studio/Components/DirectChatLauncherForm.razor b/app/MindWork AI Studio/Components/DirectChatLauncherForm.razor index 9bce35fb..e1c432cf 100644 --- a/app/MindWork AI Studio/Components/DirectChatLauncherForm.razor +++ b/app/MindWork AI Studio/Components/DirectChatLauncherForm.razor @@ -36,7 +36,7 @@ @chatTemplate.GetSafeName() } - + @foreach (var dataSource in this.SettingsManager.ConfigurationData.DataSources) { @dataSource.Name diff --git a/app/MindWork AI Studio/Dialogs/Settings/SettingsDialogDataSources.razor b/app/MindWork AI Studio/Dialogs/Settings/SettingsDialogDataSources.razor index 0722d7f1..f0c2eba3 100644 --- a/app/MindWork AI Studio/Dialogs/Settings/SettingsDialogDataSources.razor +++ b/app/MindWork AI Studio/Dialogs/Settings/SettingsDialogDataSources.razor @@ -6,7 +6,7 @@ - + @T("Configured Data Sources") diff --git a/app/MindWork AI Studio/Tools/AppIcons.cs b/app/MindWork AI Studio/Tools/AppIcons.cs new file mode 100644 index 00000000..4c3f3de4 --- /dev/null +++ b/app/MindWork AI Studio/Tools/AppIcons.cs @@ -0,0 +1,20 @@ +namespace AIStudio.Tools; + +/// +/// Icons we draw ourselves, because the Material icon set MudBlazor ships does not contain them. +/// +/// +/// The strings follow the same convention as the MudBlazor icons: they contain the SVG child +/// elements only, drawn on a 24 by 24 canvas. MudIcon and every component taking an icon wrap them +/// into the svg element themselves, which is why there must be no svg root element here. +/// +public static class AppIcons +{ + /// + /// The classic database symbol: a cylinder made of three stacked discs. + /// + public const string DATABASE = + """ + + """; +} \ No newline at end of file