Changed all icons of AI Studio to Lucide (#1187)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-11 14:20:49 +01:00
1 parent 9a676101f7
commit 7ef26cd5c8
352 files changed
+6261 -1620

No files matched your search

@@ -279,7 +279,7 @@ public partial class AssistantPluginAuditDialog : MSGComponentBase
{
Text = TB("Properties"),
Caption = string.Format(TB("Count: {0}"), props.Count),
Icon = Icons.Material.Filled.Code,
Icon = AppIcons.COMPONENT_PROPERTIES,
Expandable = children.Count > 0,
IsComponent = false,
},
@@ -380,7 +380,7 @@ public partial class AssistantPluginAuditDialog : MSGComponentBase
{
Text = string.IsNullOrWhiteSpace(displayName) ? directoryPath : displayName,
Caption = depth == 0 ? TB("Plugin root") : string.Format(TB("Items: {0}"), children.Count),
Icon = children.Count > 0 ? Icons.Material.Filled.FolderCopy : Icons.Material.Filled.Folder,
Icon = children.Count > 0 ? AppIcons.FOLDERS : AppIcons.FOLDER,
Expandable = children.Count > 0,
IsComponent = false,
},
@@ -407,11 +407,11 @@ public partial class AssistantPluginAuditDialog : MSGComponentBase
var extension = Path.GetExtension(filePath);
return extension.ToLowerInvariant() switch
{
".lua" => Icons.Material.Filled.Code,
".md" => Icons.Material.Filled.Article,
".json" => Icons.Material.Filled.DataObject,
".png" or ".jpg" or ".jpeg" or ".svg" or ".webp" => Icons.Material.Filled.Image,
_ => Icons.Material.Filled.InsertDriveFile,
".lua" => AppIcons.CODE,
".md" => AppIcons.DOCUMENT,
".json" => AppIcons.DATA_OBJECT,
".png" or ".jpg" or ".jpeg" or ".svg" or ".webp" => AppIcons.IMAGE,
_ => AppIcons.FILE,
};
}
@@ -508,14 +508,14 @@ public partial class AssistantPluginAuditDialog : MSGComponentBase
private string GetValueIcon(object? value) => value switch
{
null => Icons.Material.Filled.Block,
bool => Icons.Material.Outlined.ToggleOn,
string => Icons.Material.Outlined.Abc,
int => Icons.Material.Filled.Numbers,
Enum => Icons.Material.Filled.Label,
IDictionary => Icons.Material.Filled.DataObject,
IEnumerable when value is not string => Icons.Material.Filled.FormatListBulleted,
_ => Icons.Material.Filled.DataArray,
null => AppIcons.VALUE_NULL,
bool => AppIcons.SWITCH,
string => AppIcons.VALUE_TEXT,
int => AppIcons.NUMBER,
Enum => AppIcons.ENUM_VALUE,
IDictionary => AppIcons.DATA_OBJECT,
IEnumerable when value is not string => AppIcons.VALUE_LIST,
_ => AppIcons.DATA_VALUE,
};
private string FormatFileTimestamp(DateTime timestamp) => CommonTools.FormatTimestampToGeneral(timestamp, this.currentCultureInfo);