mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-13 14:47: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
@@ -45,7 +45,7 @@ public static class FileExtensionValidation
|
||||
if (string.Equals(Path.GetExtension(filePath), ".doc", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
await MessageBus.INSTANCE.SendWarning(new(
|
||||
Icons.Material.Filled.Description,
|
||||
AppIcons.DOCUMENT,
|
||||
TB("This file format is not supported. Please convert the .doc file to .docx (e.g. with Microsoft Word).")));
|
||||
return false;
|
||||
}
|
||||
@@ -53,7 +53,7 @@ public static class FileExtensionValidation
|
||||
if (FileTypes.IsAllowedPath(filePath, FileTypes.EXECUTABLES))
|
||||
{
|
||||
await MessageBus.INSTANCE.SendError(new(
|
||||
Icons.Material.Filled.AppBlocking,
|
||||
AppIcons.EXECUTABLE_BLOCKED,
|
||||
TB("Executables are not allowed")));
|
||||
return false;
|
||||
}
|
||||
@@ -65,7 +65,7 @@ public static class FileExtensionValidation
|
||||
// In this use case, we cannot guarantee that a provider is selected yet:
|
||||
case UseCase.DIRECTLY_LOADING_CONTENT:
|
||||
await MessageBus.INSTANCE.SendWarning(new(
|
||||
Icons.Material.Filled.ImageNotSupported,
|
||||
AppIcons.IMAGE_NOT_SUPPORTED,
|
||||
TB("Images are not supported at this place")));
|
||||
return false;
|
||||
|
||||
@@ -76,7 +76,7 @@ public static class FileExtensionValidation
|
||||
//
|
||||
case UseCase.ATTACHING_CONTENT when !FileTypes.IsAllowedPath(filePath, FileTypes.MODEL_IMAGE):
|
||||
await MessageBus.INSTANCE.SendWarning(new(
|
||||
Icons.Material.Filled.ImageNotSupported,
|
||||
AppIcons.IMAGE_NOT_SUPPORTED,
|
||||
string.Format(TB("AI Studio cannot give {0} images to an AI model. Please convert the image to JPG or PNG."), Path.GetExtension(filePath).TrimStart('.').ToUpperInvariant())));
|
||||
return false;
|
||||
|
||||
@@ -91,13 +91,13 @@ public static class FileExtensionValidation
|
||||
// We know that images are not supported:
|
||||
case UseCase.ATTACHING_CONTENT:
|
||||
await MessageBus.INSTANCE.SendWarning(new(
|
||||
Icons.Material.Filled.ImageNotSupported,
|
||||
AppIcons.IMAGE_NOT_SUPPORTED,
|
||||
TB("Images are not supported by the selected provider and model")));
|
||||
return false;
|
||||
|
||||
default:
|
||||
await MessageBus.INSTANCE.SendWarning(new(
|
||||
Icons.Material.Filled.ImageNotSupported,
|
||||
AppIcons.IMAGE_NOT_SUPPORTED,
|
||||
TB("Images are not supported yet")));
|
||||
return false;
|
||||
}
|
||||
@@ -106,7 +106,7 @@ public static class FileExtensionValidation
|
||||
if (FileTypes.IsAllowedPath(filePath, FileTypes.VIDEO))
|
||||
{
|
||||
await MessageBus.INSTANCE.SendWarning(new(
|
||||
Icons.Material.Filled.FeaturedVideo,
|
||||
AppIcons.VIDEO,
|
||||
TB("Videos are not supported yet")));
|
||||
return false;
|
||||
}
|
||||
@@ -114,7 +114,7 @@ public static class FileExtensionValidation
|
||||
if (FileTypes.IsAllowedPath(filePath, FileTypes.AUDIO))
|
||||
{
|
||||
await MessageBus.INSTANCE.SendWarning(new(
|
||||
Icons.Material.Filled.AudioFile,
|
||||
AppIcons.AUDIO_FILE,
|
||||
TB("Audio files are not supported yet")));
|
||||
return false;
|
||||
}
|
||||
@@ -123,7 +123,7 @@ public static class FileExtensionValidation
|
||||
return true;
|
||||
|
||||
await MessageBus.INSTANCE.SendWarning(new(
|
||||
Icons.Material.Filled.InsertDriveFile,
|
||||
AppIcons.UNSUPPORTED_FILE_TYPE,
|
||||
TB("Unsupported file type")));
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user