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

@@ -31,6 +31,6 @@ public static class ToolCallingMessages
/// </remarks>
/// <param name="statusCode">The status code the provider answered with.</param>
public static async Task SendToolCallingRequestFailedAsync(int statusCode) => await MessageBus.INSTANCE.SendError(new(
Icons.Material.Filled.Build,
AppIcons.TOOL,
string.Format(TB("The tool calling request failed with status code {0}. See the logs for details."), statusCode)));
}
@@ -65,7 +65,7 @@ public interface IToolImplementation
public ValueTask<string> ResolveSystemPromptInstructionsAsync(ToolDefinition definition, ToolResolutionContext context, CancellationToken token = default) =>
ValueTask.FromResult(definition.SystemPromptInstructions);
public string Icon => Icons.Material.Filled.Build;
public string Icon => AppIcons.TOOL;
/// <summary>
/// Whether this tool exists in this installation right now.
@@ -108,7 +108,7 @@ public sealed class CountMailsTool(SettingsManager settingsManager, MailboxRetri
.OptionalEnum(GROUP_BY_ARGUMENT, $"Optional: break the number of each mailbox down by the folders the mails lie in, or by their senders. Shows the {MAX_GROUPS} largest groups. Leave it out for the totals only.", GROUP_BY_VALUES)
.Build();
public string Icon => Icons.Material.Filled.Numbers;
public string Icon => AppIcons.MAIL_COUNT;
// Only while both previews are switched on, the one for local RAG and the one for mailboxes:
public bool IsAvailable => retrievalService.AreMailboxesEnabled;
@@ -25,7 +25,7 @@ public sealed class MailboxToolCollection : IToolCollection
DescriptionForLLM = "Search, read, and count the mails in the mailboxes of the user, including their attachments. AI Studio keeps the mailboxes in a local index; nothing in a mailbox changes.",
};
public string Icon => Icons.Material.Filled.Mail;
public string Icon => AppIcons.MAILBOX;
public string GetDisplayName() => TB("Mailboxes");
@@ -92,7 +92,7 @@ public sealed class ReadMailTool(SettingsManager settingsManager, MailboxRetriev
public ValueTask<ToolFunctionDefinition?> ResolveFunctionAsync(ToolDefinition definition, ToolResolutionContext context, CancellationToken token = default) =>
ValueTask.FromResult(retrievalService.GetReadableMailboxes(context.ProviderConfidence).Count == 0 ? null : definition.Function);
public string Icon => Icons.Material.Filled.MarkEmailRead;
public string Icon => AppIcons.MAIL_READ;
// Only while both previews are switched on, the one for local RAG and the one for mailboxes:
public bool IsAvailable => retrievalService.AreMailboxesEnabled;
@@ -167,7 +167,7 @@ public sealed class SearchMailsTool(SettingsManager settingsManager, MailboxRetr
.Where(mailbox => mailbox.MaxMatches > 0)
.ToList();
public string Icon => Icons.Material.Filled.Mail;
public string Icon => AppIcons.MAIL_SEARCH;
// Only while both previews are switched on, the one for local RAG and the one for mailboxes:
public bool IsAvailable => retrievalService.AreMailboxesEnabled;
@@ -65,7 +65,7 @@ public sealed class CalculateTool(SettingsManager settingsManager, MathComputati
},
};
public string Icon => Icons.Material.Filled.Calculate;
public string Icon => AppIcons.MATHEMATICS;
public bool IsAvailable => PreviewFeatures.PRE_MATHEMATICS_2026.IsEnabled(settingsManager);
@@ -111,7 +111,7 @@ public sealed class ComputeSymbolicallyTool(SettingsManager settingsManager, Mat
},
};
public string Icon => Icons.Material.Filled.Functions;
public string Icon => AppIcons.TOOL_SYMBOLIC_MATH;
public bool IsAvailable => PreviewFeatures.PRE_MATHEMATICS_2026.IsEnabled(settingsManager);
@@ -26,7 +26,7 @@ public sealed class MathematicsToolCollection : IToolCollection
DescriptionForLLM = "Calculate exactly or to a stated number of digits, and work with formulas: simplify, factor, differentiate, integrate, take limits, and solve equations. Everything is computed locally, and each result is checked numerically where possible.",
};
public string Icon => Icons.Material.Filled.Calculate;
public string Icon => AppIcons.MATHEMATICS;
public string GetDisplayName() => TB("Mathematics");
@@ -95,7 +95,7 @@ public sealed class ReadWebPageTool(WebPageRetrievalService webPageRetrievalServ
},
};
public string Icon => Icons.Material.Filled.Article;
public string Icon => AppIcons.READ_WEB_PAGE;
public bool ReturnsUntrustedExternalContent => true;
@@ -724,7 +724,7 @@ public sealed class ReadWebPageTool(WebPageRetrievalService webPageRetrievalServ
providerConfidence);
await MessageBus.INSTANCE.SendError(new DataErrorMessage(
Icons.Material.Filled.Security,
AppIcons.PROVIDER_CONFIDENCE,
TB("The web page was not loaded because private or VPN web pages require a High-confidence provider.")));
}
@@ -326,7 +326,7 @@ public sealed class SemanticSearchTool(SettingsManager settingsManager, DataSour
_ => "data source",
};
public string Icon => Icons.Material.Filled.ManageSearch;
public string Icon => AppIcons.SEMANTIC_SEARCH;
// An ERI data source is a server somebody else runs, and even a local document may hold text
// written to steer a model:
@@ -174,7 +174,7 @@ public sealed class WebSearchTool(IEnumerable<IWebSearchBackend> backends, WebPa
.Build();
}
public string Icon => Icons.Material.Filled.Language;
public string Icon => AppIcons.WEB;
public bool ReturnsUntrustedExternalContent => true;
@@ -11,7 +11,7 @@ public sealed class ToolInvocationTrace
public string ToolName { get; set; } = string.Empty;
public string ToolIcon { get; set; } = Icons.Material.Filled.Build;
public string ToolIcon { get; set; } = AppIcons.TOOL;
public string ToolCallId { get; set; } = string.Empty;
@@ -12,4 +12,4 @@ namespace AIStudio.Tools.ToolCallingSystem;
/// <param name="Label">What the user reads on the button.</param>
/// <param name="Url">Where the button leads. It opens in the browser, not in AI Studio.</param>
/// <param name="Icon">The icon shown before the label.</param>
public sealed record ToolSettingsGroupLink(string Label, string Url, string Icon = Icons.Material.Filled.OpenInBrowser);
public sealed record ToolSettingsGroupLink(string Label, string Url, string Icon = AppIcons.OPEN_EXTERNAL);