,
) -> Option {
let icon = if token_usage_ratio == TokenUsageRatio::Exceeded {
- Icon::new(IconName::X)
+ Icon::new(IconName::Close)
.color(Color::Error)
.size(IconSize::XSmall)
} else {
diff --git a/crates/agent_ui/src/slash_command_picker.rs b/crates/agent_ui/src/slash_command_picker.rs
index a757a2f50a1dc03fdd3af6dec341e6c837fa8aac..678562e0594b69f43524155c70bb176727f57b46 100644
--- a/crates/agent_ui/src/slash_command_picker.rs
+++ b/crates/agent_ui/src/slash_command_picker.rs
@@ -306,7 +306,7 @@ where
)
.child(
Icon::new(IconName::ArrowUpRight)
- .size(IconSize::XSmall)
+ .size(IconSize::Small)
.color(Color::Muted),
),
)
diff --git a/crates/agent_ui/src/text_thread_editor.rs b/crates/agent_ui/src/text_thread_editor.rs
index 4836a95c8efd1dafcd7654802e55c54694280a87..49a37002f76873aaebbd3bcf32a3e7f7608ffa35 100644
--- a/crates/agent_ui/src/text_thread_editor.rs
+++ b/crates/agent_ui/src/text_thread_editor.rs
@@ -2233,7 +2233,7 @@ fn render_thought_process_fold_icon_button(
let button = match status {
ThoughtProcessStatus::Pending => button
.child(
- Icon::new(IconName::LightBulb)
+ Icon::new(IconName::ToolThink)
.size(IconSize::Small)
.color(Color::Muted),
)
@@ -2248,7 +2248,7 @@ fn render_thought_process_fold_icon_button(
),
ThoughtProcessStatus::Completed => button
.style(ButtonStyle::Filled)
- .child(Icon::new(IconName::LightBulb).size(IconSize::Small))
+ .child(Icon::new(IconName::ToolThink).size(IconSize::Small))
.child(Label::new("Thought Process").single_line()),
};
diff --git a/crates/agent_ui/src/ui/onboarding_modal.rs b/crates/agent_ui/src/ui/onboarding_modal.rs
index 9e04171ec985c009cd9e0d58314dee017c666eff..b8b038bdfca334ba048aed0a59cecd0f3da285b0 100644
--- a/crates/agent_ui/src/ui/onboarding_modal.rs
+++ b/crates/agent_ui/src/ui/onboarding_modal.rs
@@ -139,7 +139,7 @@ impl Render for AgentOnboardingModal {
.child(Headline::new("Agentic Editing in Zed").size(HeadlineSize::Large)),
)
.child(h_flex().absolute().top_2().right_2().child(
- IconButton::new("cancel", IconName::X).on_click(cx.listener(
+ IconButton::new("cancel", IconName::Close).on_click(cx.listener(
|_, _: &ClickEvent, _window, cx| {
agent_onboarding_event!("Cancelled", trigger = "X click");
cx.emit(DismissEvent);
diff --git a/crates/agent_ui/src/ui/preview/usage_callouts.rs b/crates/agent_ui/src/ui/preview/usage_callouts.rs
index 64869a6ec71cdbe8e3532983c48784136b3dcb36..eef878a9d1b9cac72cb13cde0c8fbd92c1519afc 100644
--- a/crates/agent_ui/src/ui/preview/usage_callouts.rs
+++ b/crates/agent_ui/src/ui/preview/usage_callouts.rs
@@ -81,7 +81,7 @@ impl RenderOnce for UsageCallout {
};
let icon = if is_limit_reached {
- Icon::new(IconName::X)
+ Icon::new(IconName::Close)
.color(Color::Error)
.size(IconSize::XSmall)
} else {
diff --git a/crates/ai_onboarding/src/ai_onboarding.rs b/crates/ai_onboarding/src/ai_onboarding.rs
index b9a1e49a4acdfb3f4a94b6313d1e6fb3ef969adc..75177d4bd2bf22b203cf9f50134bb821438a433f 100644
--- a/crates/ai_onboarding/src/ai_onboarding.rs
+++ b/crates/ai_onboarding/src/ai_onboarding.rs
@@ -110,7 +110,7 @@ impl ZedAiOnboarding {
.style(ButtonStyle::Outlined)
.icon(IconName::ArrowUpRight)
.icon_color(Color::Muted)
- .icon_size(IconSize::XSmall)
+ .icon_size(IconSize::Small)
.on_click(move |_, _window, cx| {
telemetry::event!("Review Terms of Service Clicked");
cx.open_url(&zed_urls::terms_of_service(cx))
diff --git a/crates/assistant_slash_commands/src/fetch_command.rs b/crates/assistant_slash_commands/src/fetch_command.rs
index 5e586d4f23aba71a23c9c550cb63bf26059ffa6e..4e0bb3d05a7f3c2828206a6c4deeaee8c505ed7e 100644
--- a/crates/assistant_slash_commands/src/fetch_command.rs
+++ b/crates/assistant_slash_commands/src/fetch_command.rs
@@ -112,7 +112,7 @@ impl SlashCommand for FetchSlashCommand {
}
fn icon(&self) -> IconName {
- IconName::Globe
+ IconName::ToolWeb
}
fn menu_text(&self) -> String {
@@ -171,7 +171,7 @@ impl SlashCommand for FetchSlashCommand {
text,
sections: vec![SlashCommandOutputSection {
range,
- icon: IconName::Globe,
+ icon: IconName::ToolWeb,
label: format!("fetch {}", url).into(),
metadata: None,
}],
diff --git a/crates/assistant_tools/src/edit_file_tool.rs b/crates/assistant_tools/src/edit_file_tool.rs
index dce9f49abdde7e0ea00d976a4d9f029f98f7a067..54431ee1d7367087460af0476492737e8e4090de 100644
--- a/crates/assistant_tools/src/edit_file_tool.rs
+++ b/crates/assistant_tools/src/edit_file_tool.rs
@@ -857,7 +857,7 @@ impl ToolCard for EditFileToolCard {
)
.child(
Icon::new(IconName::ArrowUpRight)
- .size(IconSize::XSmall)
+ .size(IconSize::Small)
.color(Color::Ignored),
),
)
diff --git a/crates/assistant_tools/src/find_path_tool.rs b/crates/assistant_tools/src/find_path_tool.rs
index affc01941735e5e97b3c3a509cacbce5fd3c7264..6cdf58eac8bd5ff7f3c1c55414c2a79e55aadc95 100644
--- a/crates/assistant_tools/src/find_path_tool.rs
+++ b/crates/assistant_tools/src/find_path_tool.rs
@@ -257,7 +257,7 @@ impl ToolCard for FindPathToolCard {
Button::new(("path", index), button_label)
.icon(IconName::ArrowUpRight)
- .icon_size(IconSize::XSmall)
+ .icon_size(IconSize::Small)
.icon_position(IconPosition::End)
.label_size(LabelSize::Small)
.color(Color::Muted)
diff --git a/crates/assistant_tools/src/web_search_tool.rs b/crates/assistant_tools/src/web_search_tool.rs
index d4a12f22c56796c5dfbb2f1935e2ad7646ce7c5a..c6c37de472f6a6fdd6b4bb9407d52f5357a4e683 100644
--- a/crates/assistant_tools/src/web_search_tool.rs
+++ b/crates/assistant_tools/src/web_search_tool.rs
@@ -45,7 +45,7 @@ impl Tool for WebSearchTool {
}
fn icon(&self) -> IconName {
- IconName::Globe
+ IconName::ToolWeb
}
fn input_schema(&self, format: LanguageModelToolSchemaFormat) -> Result {
@@ -177,7 +177,7 @@ impl ToolCard for WebSearchToolCard {
.label_size(LabelSize::Small)
.color(Color::Muted)
.icon(IconName::ArrowUpRight)
- .icon_size(IconSize::XSmall)
+ .icon_size(IconSize::Small)
.icon_position(IconPosition::End)
.truncate(true)
.tooltip({
diff --git a/crates/collab_ui/src/collab_panel.rs b/crates/collab_ui/src/collab_panel.rs
index 51e4ff8965ee253f2d6bcb858ec6881b8a1cadc4..430b447580ed385f5b483f8d9fff8a6492c005d7 100644
--- a/crates/collab_ui/src/collab_panel.rs
+++ b/crates/collab_ui/src/collab_panel.rs
@@ -2931,7 +2931,7 @@ impl CollabPanel {
.visible_on_hover(""),
)
.child(
- IconButton::new("channel_notes", IconName::FileText)
+ IconButton::new("channel_notes", IconName::Reader)
.style(ButtonStyle::Filled)
.shape(ui::IconButtonShape::Square)
.icon_size(IconSize::Small)
diff --git a/crates/debugger_ui/src/debugger_panel.rs b/crates/debugger_ui/src/debugger_panel.rs
index 0ac419580bd7db2d17b07b002b133163497a1e9d..91382c74ae34f6747959497d139de1d928b73d11 100644
--- a/crates/debugger_ui/src/debugger_panel.rs
+++ b/crates/debugger_ui/src/debugger_panel.rs
@@ -649,7 +649,7 @@ impl DebugPanel {
.tooltip(Tooltip::text("Open Documentation"))
};
let logs_button = || {
- IconButton::new("debug-open-logs", IconName::ScrollText)
+ IconButton::new("debug-open-logs", IconName::Notepad)
.icon_size(IconSize::Small)
.on_click(move |_, window, cx| {
window.dispatch_action(debugger_tools::OpenDebugAdapterLogs.boxed_clone(), cx)
@@ -788,7 +788,7 @@ impl DebugPanel {
)
.child(
IconButton::new("debug-step-out", IconName::ArrowUpRight)
- .icon_size(IconSize::XSmall)
+ .icon_size(IconSize::Small)
.shape(ui::IconButtonShape::Square)
.on_click(window.listener_for(
&running_state,
@@ -812,7 +812,7 @@ impl DebugPanel {
)
.child(Divider::vertical())
.child(
- IconButton::new("debug-restart", IconName::DebugRestart)
+ IconButton::new("debug-restart", IconName::RotateCcw)
.icon_size(IconSize::XSmall)
.on_click(window.listener_for(
&running_state,
diff --git a/crates/debugger_ui/src/onboarding_modal.rs b/crates/debugger_ui/src/onboarding_modal.rs
index c9fa0099406ebbee1cd48a54e4ece483c74406d8..2a9f68d0c9e584e9674fce228c9597c3d8fe8dec 100644
--- a/crates/debugger_ui/src/onboarding_modal.rs
+++ b/crates/debugger_ui/src/onboarding_modal.rs
@@ -131,7 +131,7 @@ impl Render for DebuggerOnboardingModal {
.child(Headline::new("Zed's Debugger").size(HeadlineSize::Large)),
)
.child(h_flex().absolute().top_2().right_2().child(
- IconButton::new("cancel", IconName::X).on_click(cx.listener(
+ IconButton::new("cancel", IconName::Close).on_click(cx.listener(
|_, _: &ClickEvent, _window, cx| {
debugger_onboarding_event!("Cancelled", trigger = "X click");
cx.emit(DismissEvent);
diff --git a/crates/debugger_ui/src/session/running/breakpoint_list.rs b/crates/debugger_ui/src/session/running/breakpoint_list.rs
index a6defbbf35cc103025c286b9875285b924032ed0..326fb84e208971688d9db25e298359b6d64a88e6 100644
--- a/crates/debugger_ui/src/session/running/breakpoint_list.rs
+++ b/crates/debugger_ui/src/session/running/breakpoint_list.rs
@@ -681,7 +681,7 @@ impl BreakpointList {
}),
)
.child(
- IconButton::new("remove-breakpoint-breakpoint-list", IconName::X)
+ IconButton::new("remove-breakpoint-breakpoint-list", IconName::Close)
.icon_size(IconSize::XSmall)
.icon_color(ui::Color::Error)
.when_some(remove_breakpoint_tooltip, |this, tooltip| {
@@ -1439,7 +1439,7 @@ impl RenderOnce for BreakpointOptionsStrip {
.child(
IconButton::new(
SharedString::from(format!("{id}-log-toggle")),
- IconName::ScrollText,
+ IconName::Notepad,
)
.icon_size(IconSize::XSmall)
.style(style_for_toggle(ActiveBreakpointStripMode::Log, has_logs))
diff --git a/crates/debugger_ui/src/session/running/console.rs b/crates/debugger_ui/src/session/running/console.rs
index 1385bec54ef77222485cd642174d50aa60fa289a..daf4486f81b53e0d83a28a940a78be01758e17d5 100644
--- a/crates/debugger_ui/src/session/running/console.rs
+++ b/crates/debugger_ui/src/session/running/console.rs
@@ -352,7 +352,7 @@ impl Console {
.child(
div()
.px_1()
- .child(Icon::new(IconName::ChevronDownSmall).size(IconSize::XSmall)),
+ .child(Icon::new(IconName::ChevronDown).size(IconSize::XSmall)),
),
)
.when(
diff --git a/crates/debugger_ui/src/session/running/stack_frame_list.rs b/crates/debugger_ui/src/session/running/stack_frame_list.rs
index 2149502f4a5774478555ef66139f163a85a37b3d..8b44c231c37dfe9bc3deb9905699e2c80df8897f 100644
--- a/crates/debugger_ui/src/session/running/stack_frame_list.rs
+++ b/crates/debugger_ui/src/session/running/stack_frame_list.rs
@@ -493,7 +493,7 @@ impl StackFrameList {
.child(
IconButton::new(
("restart-stack-frame", stack_frame.id),
- IconName::DebugRestart,
+ IconName::RotateCcw,
)
.icon_size(IconSize::Small)
.on_click(cx.listener({
diff --git a/crates/diagnostics/src/toolbar_controls.rs b/crates/diagnostics/src/toolbar_controls.rs
index 9a7dcbe62fe302aa14bb9338bcab2301775a370c..e77b80115f2ffe6de512743d3eb00311052d7937 100644
--- a/crates/diagnostics/src/toolbar_controls.rs
+++ b/crates/diagnostics/src/toolbar_controls.rs
@@ -54,7 +54,7 @@ impl Render for ToolbarControls {
.map(|div| {
if is_updating {
div.child(
- IconButton::new("stop-updating", IconName::StopFilled)
+ IconButton::new("stop-updating", IconName::Stop)
.icon_color(Color::Info)
.shape(IconButtonShape::Square)
.tooltip(Tooltip::for_action_title(
@@ -73,7 +73,7 @@ impl Render for ToolbarControls {
)
} else {
div.child(
- IconButton::new("refresh-diagnostics", IconName::Update)
+ IconButton::new("refresh-diagnostics", IconName::ArrowCircle)
.icon_color(Color::Info)
.shape(IconButtonShape::Square)
.disabled(!has_stale_excerpts && !fetch_cargo_diagnostics)
diff --git a/crates/editor/src/items.rs b/crates/editor/src/items.rs
index ca635a2132790e809258c8bd63fbd3a1c3edcdb3..231aaa1d0033b9e61e3ac128f7e89e9889049ea4 100644
--- a/crates/editor/src/items.rs
+++ b/crates/editor/src/items.rs
@@ -1825,7 +1825,7 @@ pub fn entry_diagnostic_aware_icon_name_and_color(
diagnostic_severity: Option,
) -> Option<(IconName, Color)> {
match diagnostic_severity {
- Some(DiagnosticSeverity::ERROR) => Some((IconName::X, Color::Error)),
+ Some(DiagnosticSeverity::ERROR) => Some((IconName::Close, Color::Error)),
Some(DiagnosticSeverity::WARNING) => Some((IconName::Triangle, Color::Warning)),
_ => None,
}
diff --git a/crates/extensions_ui/src/components/feature_upsell.rs b/crates/extensions_ui/src/components/feature_upsell.rs
index e2e65f1598ad1a22a3fe854425a32013115616d6..573b0b992d343e04b74531ffeb8579f28c92620c 100644
--- a/crates/extensions_ui/src/components/feature_upsell.rs
+++ b/crates/extensions_ui/src/components/feature_upsell.rs
@@ -58,7 +58,7 @@ impl RenderOnce for FeatureUpsell {
el.child(
Button::new("open_docs", "View Documentation")
.icon(IconName::ArrowUpRight)
- .icon_size(IconSize::XSmall)
+ .icon_size(IconSize::Small)
.icon_position(IconPosition::End)
.on_click({
let docs_url = docs_url.clone();
diff --git a/crates/git_ui/src/branch_picker.rs b/crates/git_ui/src/branch_picker.rs
index b74fa649b04ddc2ee5643965f3e0cdf0eb27e235..6bb84db834ff0c04ff733d00b888aa28f0d70bd6 100644
--- a/crates/git_ui/src/branch_picker.rs
+++ b/crates/git_ui/src/branch_picker.rs
@@ -473,7 +473,7 @@ impl PickerDelegate for BranchListDelegate {
&& entry.is_new
{
Some(
- IconButton::new("branch-from-default", IconName::GitBranchSmall)
+ IconButton::new("branch-from-default", IconName::GitBranchAlt)
.on_click(cx.listener(move |this, _, window, cx| {
this.delegate.set_selected_index(ix, window, cx);
this.delegate.confirm(true, window, cx);
diff --git a/crates/git_ui/src/commit_modal.rs b/crates/git_ui/src/commit_modal.rs
index 5dfa800ae59e5a5b5cc804a417d0d13400a13ba9..5e7430ebc693458e6df9a41513138ae993b9097c 100644
--- a/crates/git_ui/src/commit_modal.rs
+++ b/crates/git_ui/src/commit_modal.rs
@@ -272,7 +272,7 @@ impl CommitModal {
.child(
div()
.px_1()
- .child(Icon::new(IconName::ChevronDownSmall).size(IconSize::XSmall)),
+ .child(Icon::new(IconName::ChevronDown).size(IconSize::XSmall)),
),
)
.menu({
diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs
index 44222b829917cc7d3160dd618dbb6bd16ad1fe98..e4f445858dfc2cd168fb5dbfca6360e331ec590c 100644
--- a/crates/git_ui/src/git_panel.rs
+++ b/crates/git_ui/src/git_panel.rs
@@ -2900,10 +2900,10 @@ impl GitPanel {
use remote_output::SuccessStyle::*;
match style {
Toast { .. } => {
- this.icon(ToastIcon::new(IconName::GitBranchSmall).color(Color::Muted))
+ this.icon(ToastIcon::new(IconName::GitBranchAlt).color(Color::Muted))
}
ToastWithLog { output } => this
- .icon(ToastIcon::new(IconName::GitBranchSmall).color(Color::Muted))
+ .icon(ToastIcon::new(IconName::GitBranchAlt).color(Color::Muted))
.action("View Log", move |window, cx| {
let output = output.clone();
let output =
@@ -2915,7 +2915,7 @@ impl GitPanel {
.ok();
}),
PushPrLink { text, link } => this
- .icon(ToastIcon::new(IconName::GitBranchSmall).color(Color::Muted))
+ .icon(ToastIcon::new(IconName::GitBranchAlt).color(Color::Muted))
.action(text, move |_, cx| cx.open_url(&link)),
}
});
@@ -3109,7 +3109,7 @@ impl GitPanel {
.justify_center()
.border_l_1()
.border_color(cx.theme().colors().border)
- .child(Icon::new(IconName::ChevronDownSmall).size(IconSize::XSmall)),
+ .child(Icon::new(IconName::ChevronDown).size(IconSize::XSmall)),
),
)
.menu({
@@ -4561,7 +4561,7 @@ impl Panel for GitPanel {
}
fn icon(&self, _: &Window, cx: &App) -> Option {
- Some(ui::IconName::GitBranchSmall).filter(|_| GitPanelSettings::get_global(cx).button)
+ Some(ui::IconName::GitBranchAlt).filter(|_| GitPanelSettings::get_global(cx).button)
}
fn icon_tooltip(&self, _window: &Window, _cx: &App) -> Option<&'static str> {
@@ -4808,7 +4808,7 @@ impl RenderOnce for PanelRepoFooter {
.items_center()
.child(
div().child(
- Icon::new(IconName::GitBranchSmall)
+ Icon::new(IconName::GitBranchAlt)
.size(IconSize::Small)
.color(if single_repo {
Color::Disabled
diff --git a/crates/git_ui/src/git_ui.rs b/crates/git_ui/src/git_ui.rs
index 0163175eda0e8135e9aa77d80e8eb4bce0184cf0..bde867bcd2ba3a65ec5d94e94b68ccdec1582deb 100644
--- a/crates/git_ui/src/git_ui.rs
+++ b/crates/git_ui/src/git_ui.rs
@@ -356,7 +356,7 @@ mod remote_button {
"Publish",
0,
0,
- Some(IconName::ArrowUpFromLine),
+ Some(IconName::ExpandUp),
keybinding_target.clone(),
move |_, window, cx| {
window.dispatch_action(Box::new(git::Push), cx);
@@ -383,7 +383,7 @@ mod remote_button {
"Republish",
0,
0,
- Some(IconName::ArrowUpFromLine),
+ Some(IconName::ExpandUp),
keybinding_target.clone(),
move |_, window, cx| {
window.dispatch_action(Box::new(git::Push), cx);
@@ -438,7 +438,7 @@ mod remote_button {
.child(
div()
.px_1()
- .child(Icon::new(IconName::ChevronDownSmall).size(IconSize::XSmall)),
+ .child(Icon::new(IconName::ChevronDown).size(IconSize::XSmall)),
),
)
.menu(move |window, cx| {
diff --git a/crates/git_ui/src/onboarding.rs b/crates/git_ui/src/onboarding.rs
index d721b21a2aca2d70f8177ca8df87b9025feebfb3..d1709e043b92216e974c1a4f451db5c28b98f773 100644
--- a/crates/git_ui/src/onboarding.rs
+++ b/crates/git_ui/src/onboarding.rs
@@ -110,7 +110,7 @@ impl Render for GitOnboardingModal {
.child(Headline::new("Native Git Support").size(HeadlineSize::Large)),
)
.child(h_flex().absolute().top_2().right_2().child(
- IconButton::new("cancel", IconName::X).on_click(cx.listener(
+ IconButton::new("cancel", IconName::Close).on_click(cx.listener(
|_, _: &ClickEvent, _window, cx| {
git_onboarding_event!("Cancelled", trigger = "X click");
cx.emit(DismissEvent);
diff --git a/crates/icons/README.md b/crates/icons/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..5fbd6d494831214ca810926d8ff873850e5a3cf4
--- /dev/null
+++ b/crates/icons/README.md
@@ -0,0 +1,29 @@
+# Zed Icons
+
+## Guidelines
+
+Icons are a big part of Zed, and they're how we convey hundreds of actions without relying on labeled buttons.
+When introducing a new icon to the set, it's important to ensure it is consistent with the whole set, which follows a few guidelines:
+
+1. The SVG view box should be 16x16.
+2. For outlined icons, use a 1.5px stroke width.
+3. Not all icons are mathematically aligned; there's quite a bit of optical adjustment. But try to keep the icon within an internal 12x12 bounding box as much as possible while ensuring proper visibility.
+4. Use the `filled` and `outlined` terminology when introducing icons that will have the two variants.
+5. Icons that are deeply contextual may have the feature context as their name prefix. For example, `ToolWeb`, `ReplPlay`, `DebugStepInto`, etc.
+6. Avoid complex layer structure in the icon SVG, like clipping masks and whatnot. When the shape ends up too complex, we recommend running the SVG in [SVGOMG](https://jakearchibald.github.io/svgomg/) to clean it up a bit.
+
+## Sourcing
+
+Most icons are created by sourcing them from [Lucide](https://lucide.dev/).
+Then, they're modified, adjusted, cleaned up, and simplified depending on their use and overall fit with Zed.
+
+Sometimes, we may use other sources like [Phosphor](https://phosphoricons.com/), but we also design many of them completely from scratch.
+
+## Contributing
+
+To introduce a new icon, add the `.svg` file in the `assets/icon` directory and then add its corresponding item in the `icons.rs` file within the `crates` directory.
+
+- SVG files in the assets folder follow a snake case name format.
+- Icons in the `icons.rs` file follow the pascal case name format.
+
+Ensure you tag a member of Zed's design team so we can adjust and double-check any newly introduced icon.
diff --git a/crates/icons/src/icons.rs b/crates/icons/src/icons.rs
index 12805e62e061ccd7e91dc0210e68b87752f7ed6c..f5c2a83fec36fcf67647011bb1b123d8df3f8d02 100644
--- a/crates/icons/src/icons.rs
+++ b/crates/icons/src/icons.rs
@@ -28,16 +28,12 @@ pub enum IconName {
ArrowCircle,
ArrowDown,
ArrowDown10,
- ArrowDownFromLine,
ArrowDownRight,
ArrowLeft,
ArrowRight,
ArrowRightLeft,
ArrowUp,
- ArrowUpAlt,
- ArrowUpFromLine,
ArrowUpRight,
- ArrowUpRightAlt,
AudioOff,
AudioOn,
Backspace,
@@ -51,28 +47,22 @@ pub enum IconName {
BoltFilled,
Book,
BookCopy,
- BugOff,
CaseSensitive,
Chat,
Check,
CheckDouble,
ChevronDown,
- /// This chevron indicates a popover menu.
- ChevronDownSmall,
ChevronLeft,
ChevronRight,
ChevronUp,
ChevronUpDown,
Circle,
- CircleOff,
CircleHelp,
Close,
- Cloud,
CloudDownload,
Code,
Cog,
Command,
- Context,
Control,
Copilot,
CopilotDisabled,
@@ -93,16 +83,12 @@ pub enum IconName {
DebugIgnoreBreakpoints,
DebugLogBreakpoint,
DebugPause,
- DebugRestart,
DebugStepBack,
DebugStepInto,
DebugStepOut,
DebugStepOver,
- DebugStop,
- Delete,
Diff,
Disconnected,
- DocumentText,
Download,
EditorAtom,
EditorCursor,
@@ -113,59 +99,50 @@ pub enum IconName {
Ellipsis,
EllipsisVertical,
Envelope,
- Equal,
Eraser,
Escape,
Exit,
ExpandDown,
ExpandUp,
ExpandVertical,
- ExternalLink,
Eye,
File,
FileCode,
- FileCreate,
FileDiff,
FileDoc,
FileGeneric,
FileGit,
FileLock,
+ FileMarkdown,
FileRust,
- FileSearch,
- FileText,
+ FileTextFilled,
+ FileTextOutlined,
FileToml,
FileTree,
Filter,
Flame,
Folder,
FolderOpen,
- FolderX,
+ FolderSearch,
Font,
FontSize,
FontWeight,
ForwardArrow,
- Function,
GenericClose,
GenericMaximize,
GenericMinimize,
GenericRestore,
GitBranch,
- GitBranchSmall,
+ GitBranchAlt,
Github,
- Globe,
- Hammer,
Hash,
HistoryRerun,
Image,
Indicator,
Info,
- InlayHint,
Keyboard,
- Layout,
Library,
- LightBulb,
LineHeight,
- Link,
ListCollapse,
ListTodo,
ListTree,
@@ -173,35 +150,28 @@ pub enum IconName {
LoadCircle,
LocationEdit,
LockOutlined,
- LspDebug,
- LspRestart,
- LspStop,
MagnifyingGlass,
- MailOpen,
Maximize,
Menu,
MenuAlt,
Mic,
MicMute,
Minimize,
+ Notepad,
Option,
PageDown,
PageUp,
- PanelLeft,
- PanelRight,
Pencil,
Person,
- PersonCircle,
- PhoneIncoming,
Pin,
PlayOutlined,
PlayFilled,
Plus,
- PocketKnife,
Power,
Public,
PullRequest,
Quote,
+ Reader,
RefreshTitle,
Regex,
ReplNeutral,
@@ -213,28 +183,18 @@ pub enum IconName {
Return,
RotateCcw,
RotateCw,
- Route,
- Save,
Scissors,
Screen,
- ScrollText,
- SearchSelection,
SelectAll,
Send,
Server,
Settings,
- SettingsAlt,
ShieldCheck,
Shift,
Slash,
- SlashSquare,
Sliders,
- SlidersVertical,
- Snip,
Space,
Sparkle,
- SparkleAlt,
- SparkleFilled,
Split,
SplitAlt,
SquareDot,
@@ -243,7 +203,6 @@ pub enum IconName {
Star,
StarFilled,
Stop,
- StopFilled,
Supermaven,
SupermavenDisabled,
SupermavenError,
@@ -279,18 +238,13 @@ pub enum IconName {
TriangleRight,
Undo,
Unpin,
- Update,
UserCheck,
UserGroup,
UserRoundPen,
- Visible,
- Wand,
Warning,
WholeWord,
- X,
XCircle,
ZedAssistant,
- ZedAssistantFilled,
ZedBurnMode,
ZedBurnModeOn,
ZedMcpCustom,
diff --git a/crates/language_models/src/provider/cloud.rs b/crates/language_models/src/provider/cloud.rs
index 40dd12076113ade6cff3563795472482573faf16..ba110be9c5d2fdaed6cf5f46984df2fb2c775066 100644
--- a/crates/language_models/src/provider/cloud.rs
+++ b/crates/language_models/src/provider/cloud.rs
@@ -437,7 +437,7 @@ fn render_accept_terms(
.style(ButtonStyle::Subtle)
.icon(IconName::ArrowUpRight)
.icon_color(Color::Muted)
- .icon_size(IconSize::XSmall)
+ .icon_size(IconSize::Small)
.when(thread_empty_state, |this| this.label_size(LabelSize::Small))
.on_click(move |_, _window, cx| cx.open_url("https://zed.dev/terms-of-service"));
diff --git a/crates/language_models/src/provider/lmstudio.rs b/crates/language_models/src/provider/lmstudio.rs
index 9792b4f27b9990c1c9c64fbda971f7e45490fc49..36a32ab941ec65eb790a59ba3a7ed4fe3e6eb575 100644
--- a/crates/language_models/src/provider/lmstudio.rs
+++ b/crates/language_models/src/provider/lmstudio.rs
@@ -690,7 +690,7 @@ impl Render for ConfigurationView {
Button::new("lmstudio-site", "LM Studio")
.style(ButtonStyle::Subtle)
.icon(IconName::ArrowUpRight)
- .icon_size(IconSize::XSmall)
+ .icon_size(IconSize::Small)
.icon_color(Color::Muted)
.on_click(move |_, _window, cx| {
cx.open_url(LMSTUDIO_SITE)
@@ -705,7 +705,7 @@ impl Render for ConfigurationView {
)
.style(ButtonStyle::Subtle)
.icon(IconName::ArrowUpRight)
- .icon_size(IconSize::XSmall)
+ .icon_size(IconSize::Small)
.icon_color(Color::Muted)
.on_click(move |_, _window, cx| {
cx.open_url(LMSTUDIO_DOWNLOAD_URL)
@@ -718,7 +718,7 @@ impl Render for ConfigurationView {
Button::new("view-models", "Model Catalog")
.style(ButtonStyle::Subtle)
.icon(IconName::ArrowUpRight)
- .icon_size(IconSize::XSmall)
+ .icon_size(IconSize::Small)
.icon_color(Color::Muted)
.on_click(move |_, _window, cx| {
cx.open_url(LMSTUDIO_CATALOG_URL)
@@ -744,7 +744,7 @@ impl Render for ConfigurationView {
Button::new("retry_lmstudio_models", "Connect")
.icon_position(IconPosition::Start)
.icon_size(IconSize::XSmall)
- .icon(IconName::PlayOutlined)
+ .icon(IconName::PlayFilled)
.on_click(cx.listener(move |this, _, _window, cx| {
this.retry_connection(cx)
})),
diff --git a/crates/language_models/src/provider/ollama.rs b/crates/language_models/src/provider/ollama.rs
index c845c97b09c5f7ca7205a43b889065de06c39550..0c2b1107b18cf72f70e46c195e7c61bfae607285 100644
--- a/crates/language_models/src/provider/ollama.rs
+++ b/crates/language_models/src/provider/ollama.rs
@@ -608,7 +608,7 @@ impl Render for ConfigurationView {
Button::new("ollama-site", "Ollama")
.style(ButtonStyle::Subtle)
.icon(IconName::ArrowUpRight)
- .icon_size(IconSize::XSmall)
+ .icon_size(IconSize::Small)
.icon_color(Color::Muted)
.on_click(move |_, _, cx| cx.open_url(OLLAMA_SITE))
.into_any_element(),
@@ -621,7 +621,7 @@ impl Render for ConfigurationView {
)
.style(ButtonStyle::Subtle)
.icon(IconName::ArrowUpRight)
- .icon_size(IconSize::XSmall)
+ .icon_size(IconSize::Small)
.icon_color(Color::Muted)
.on_click(move |_, _, cx| {
cx.open_url(OLLAMA_DOWNLOAD_URL)
@@ -634,7 +634,7 @@ impl Render for ConfigurationView {
Button::new("view-models", "View All Models")
.style(ButtonStyle::Subtle)
.icon(IconName::ArrowUpRight)
- .icon_size(IconSize::XSmall)
+ .icon_size(IconSize::Small)
.icon_color(Color::Muted)
.on_click(move |_, _, cx| cx.open_url(OLLAMA_LIBRARY_URL)),
),
@@ -658,7 +658,7 @@ impl Render for ConfigurationView {
Button::new("retry_ollama_models", "Connect")
.icon_position(IconPosition::Start)
.icon_size(IconSize::XSmall)
- .icon(IconName::PlayOutlined)
+ .icon(IconName::PlayFilled)
.on_click(cx.listener(move |this, _, _, cx| {
this.retry_connection(cx)
})),
diff --git a/crates/language_models/src/provider/open_ai.rs b/crates/language_models/src/provider/open_ai.rs
index ee74562687b5de4258328a1f7ffae082d5dc4931..7a6c8e09ed445ae4dfeec840e9e6df4a9ed81ed6 100644
--- a/crates/language_models/src/provider/open_ai.rs
+++ b/crates/language_models/src/provider/open_ai.rs
@@ -869,7 +869,7 @@ impl Render for ConfigurationView {
.child(
Button::new("docs", "Learn More")
.icon(IconName::ArrowUpRight)
- .icon_size(IconSize::XSmall)
+ .icon_size(IconSize::Small)
.icon_color(Color::Muted)
.on_click(move |_, _window, cx| {
cx.open_url("https://zed.dev/docs/ai/llm-providers#openai-api-compatible")
diff --git a/crates/language_models/src/ui/instruction_list_item.rs b/crates/language_models/src/ui/instruction_list_item.rs
index 794a85b400aca3d7dadd201ac76a3f07fd0a97f0..3dee97aff6ca78f97f0e4386e9518f5a5d1f29e0 100644
--- a/crates/language_models/src/ui/instruction_list_item.rs
+++ b/crates/language_models/src/ui/instruction_list_item.rs
@@ -47,7 +47,7 @@ impl IntoElement for InstructionListItem {
Button::new(unique_id, button_label)
.style(ButtonStyle::Subtle)
.icon(IconName::ArrowUpRight)
- .icon_size(IconSize::XSmall)
+ .icon_size(IconSize::Small)
.icon_color(Color::Muted)
.on_click(move |_, _window, cx| cx.open_url(&link)),
)
diff --git a/crates/notifications/src/status_toast.rs b/crates/notifications/src/status_toast.rs
index ffd87e0b8b8c4b797d3ecbbe489b0678fc64a812..7affa93f5a496bd0e436c74e5ff32f8aa871d026 100644
--- a/crates/notifications/src/status_toast.rs
+++ b/crates/notifications/src/status_toast.rs
@@ -205,7 +205,7 @@ impl Component for StatusToast {
let pr_example =
StatusToast::new("`zed/new-notification-system` created!", cx, |this, _cx| {
- this.icon(ToastIcon::new(IconName::GitBranchSmall).color(Color::Muted))
+ this.icon(ToastIcon::new(IconName::GitBranchAlt).color(Color::Muted))
.action("Open Pull Request", |_, cx| {
cx.open_url("https://github.com/")
})
diff --git a/crates/onboarding/src/ai_setup_page.rs b/crates/onboarding/src/ai_setup_page.rs
index 00f2d5fc8ba8ed904da4ecae5555792e9b54bf49..0397bcbd9b7c111fc86b10baaf183e811edd351a 100644
--- a/crates/onboarding/src/ai_setup_page.rs
+++ b/crates/onboarding/src/ai_setup_page.rs
@@ -95,7 +95,7 @@ fn render_privacy_card(tab_index: &mut isize, disabled: bool, cx: &mut App) -> i
.style(ButtonStyle::Outlined)
.label_size(LabelSize::Small)
.icon(IconName::ArrowUpRight)
- .icon_size(IconSize::XSmall)
+ .icon_size(IconSize::Small)
.icon_color(Color::Muted)
.on_click(|_, _, cx| {
cx.open_url("https://zed.dev/docs/ai/privacy-and-security");
diff --git a/crates/onboarding/src/onboarding.rs b/crates/onboarding/src/onboarding.rs
index 342b52bdda82ea19c5ec0c1abdb98a01f8c69da1..145cb07a1cdbc056b9d089f3bdd742a5c7817505 100644
--- a/crates/onboarding/src/onboarding.rs
+++ b/crates/onboarding/src/onboarding.rs
@@ -694,7 +694,7 @@ pub async fn handle_import_vscode_settings(
"Failed to import settings. See log for details",
cx,
|this, _| {
- this.icon(ToastIcon::new(IconName::X).color(Color::Error))
+ this.icon(ToastIcon::new(IconName::Close).color(Color::Error))
.action("Open Log", |window, cx| {
window.dispatch_action(workspace::OpenLog.boxed_clone(), cx)
})
diff --git a/crates/recent_projects/src/ssh_connections.rs b/crates/recent_projects/src/ssh_connections.rs
index 5a38e1aadb00e75f9139eb4eccdacacb5e967593..7b58792178f5ecc705857bedec5e6707a97db52b 100644
--- a/crates/recent_projects/src/ssh_connections.rs
+++ b/crates/recent_projects/src/ssh_connections.rs
@@ -357,7 +357,7 @@ impl RenderOnce for SshConnectionHeader {
.rounded_t_sm()
.w_full()
.gap_1p5()
- .child(Icon::new(IconName::Server).size(IconSize::XSmall))
+ .child(Icon::new(IconName::Server).size(IconSize::Small))
.child(
h_flex()
.gap_1()
diff --git a/crates/repl/src/components/kernel_options.rs b/crates/repl/src/components/kernel_options.rs
index 0623fd7ea51842d705ae0b491afa13c3e39348fd..cd73783b4c6b7008c5b7bc35ddb7d639892cefde 100644
--- a/crates/repl/src/components/kernel_options.rs
+++ b/crates/repl/src/components/kernel_options.rs
@@ -235,8 +235,8 @@ impl PickerDelegate for KernelPickerDelegate {
.gap_4()
.child(
Button::new("kernel-docs", "Kernel Docs")
- .icon(IconName::ExternalLink)
- .icon_size(IconSize::XSmall)
+ .icon(IconName::ArrowUpRight)
+ .icon_size(IconSize::Small)
.icon_color(Color::Muted)
.icon_position(IconPosition::End)
.on_click(move |_, _, cx| cx.open_url(KERNEL_DOCS_URL)),
diff --git a/crates/repl/src/notebook/cell.rs b/crates/repl/src/notebook/cell.rs
index 18851417c0b4fd8206df8b52076b2c47044a79ff..15179a632c04c5feb82724e1bc9ab2193332120b 100644
--- a/crates/repl/src/notebook/cell.rs
+++ b/crates/repl/src/notebook/cell.rs
@@ -38,7 +38,7 @@ pub enum CellControlType {
impl CellControlType {
fn icon_name(&self) -> IconName {
match self {
- CellControlType::RunCell => IconName::PlayOutlined,
+ CellControlType::RunCell => IconName::PlayFilled,
CellControlType::RerunCell => IconName::ArrowCircle,
CellControlType::ClearCell => IconName::ListX,
CellControlType::CellOptions => IconName::Ellipsis,
diff --git a/crates/repl/src/notebook/notebook_ui.rs b/crates/repl/src/notebook/notebook_ui.rs
index 2efa51e0cc0f63510231109d3eafd6090e208222..b53809dff0aadfe75d331151de4bafb07e52ed31 100644
--- a/crates/repl/src/notebook/notebook_ui.rs
+++ b/crates/repl/src/notebook/notebook_ui.rs
@@ -321,7 +321,7 @@ impl NotebookEditor {
.child(
Self::render_notebook_control(
"run-all-cells",
- IconName::PlayOutlined,
+ IconName::PlayFilled,
window,
cx,
)
diff --git a/crates/repl/src/outputs.rs b/crates/repl/src/outputs.rs
index e13e569c2a68f56bb46c59e31c1afef923c698bd..ed252b239f61ba6726d25f2223d4cca3e981e865 100644
--- a/crates/repl/src/outputs.rs
+++ b/crates/repl/src/outputs.rs
@@ -163,7 +163,7 @@ impl Output {
el.child(
IconButton::new(
ElementId::Name("open-in-buffer".into()),
- IconName::FileText,
+ IconName::FileTextOutlined,
)
.style(ButtonStyle::Transparent)
.tooltip(Tooltip::text("Open in Buffer"))
diff --git a/crates/search/src/buffer_search.rs b/crates/search/src/buffer_search.rs
index 5d77a95027a6cae193ec293ce7e9254a0fa0363c..14703be7a22b5e6580202553976343e8e6a2c970 100644
--- a/crates/search/src/buffer_search.rs
+++ b/crates/search/src/buffer_search.rs
@@ -336,7 +336,7 @@ impl Render for BufferSearchBar {
this.child(
IconButton::new(
"buffer-search-bar-toggle-search-selection-button",
- IconName::SearchSelection,
+ IconName::Quote,
)
.style(ButtonStyle::Subtle)
.shape(IconButtonShape::Square)
diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rs
index 15c1099aec1ecb0e6e6873f465474dad706a3657..96194cdad2d5f42146c28dfdd2730f2c848cd9a2 100644
--- a/crates/search/src/project_search.rs
+++ b/crates/search/src/project_search.rs
@@ -2268,7 +2268,7 @@ impl Render for ProjectSearchBar {
.min_w_64()
.gap_1()
.child(
- IconButton::new("project-search-opened-only", IconName::FileSearch)
+ IconButton::new("project-search-opened-only", IconName::FolderSearch)
.shape(IconButtonShape::Square)
.toggle_state(self.is_opened_only_enabled(cx))
.tooltip(Tooltip::text("Only Search Open Files"))
diff --git a/crates/settings_ui/src/keybindings.rs b/crates/settings_ui/src/keybindings.rs
index 599bb0b18f523f64647ed5dba6113daa0a04b04d..a62c669488415daa689b755d3d970d6364da6dc0 100644
--- a/crates/settings_ui/src/keybindings.rs
+++ b/crates/settings_ui/src/keybindings.rs
@@ -2473,7 +2473,7 @@ impl Render for KeybindingEditorModal {
.label_size(LabelSize::Small)
.icon(IconName::ArrowUpRight)
.icon_color(Color::Muted)
- .icon_size(IconSize::XSmall)
+ .icon_size(IconSize::Small)
.on_click(cx.listener(
|this, _, window, cx| {
this.show_matching_bindings(
diff --git a/crates/settings_ui/src/ui_components/keystroke_input.rs b/crates/settings_ui/src/ui_components/keystroke_input.rs
index ee5c4036eae585f3702ecd9b590f22a367e49e0f..f23d80931c4e3e509731836bd1230df1f64e4423 100644
--- a/crates/settings_ui/src/ui_components/keystroke_input.rs
+++ b/crates/settings_ui/src/ui_components/keystroke_input.rs
@@ -590,7 +590,7 @@ impl Render for KeystrokeInput {
.map(|this| {
if is_recording {
this.child(
- IconButton::new("stop-record-btn", IconName::StopFilled)
+ IconButton::new("stop-record-btn", IconName::Stop)
.shape(IconButtonShape::Square)
.map(|this| {
this.tooltip(Tooltip::for_action_title(
@@ -629,7 +629,7 @@ impl Render for KeystrokeInput {
}
})
.child(
- IconButton::new("clear-btn", IconName::Delete)
+ IconButton::new("clear-btn", IconName::Backspace)
.shape(IconButtonShape::Square)
.tooltip(Tooltip::for_action_title(
"Clear Keystrokes",
diff --git a/crates/snippets_ui/src/snippets_ui.rs b/crates/snippets_ui/src/snippets_ui.rs
index a8710d1672c16964545a454362fd0eeb431714a2..bf0ef63bffde0586b889c41bdadd161529fdf636 100644
--- a/crates/snippets_ui/src/snippets_ui.rs
+++ b/crates/snippets_ui/src/snippets_ui.rs
@@ -330,7 +330,7 @@ impl PickerDelegate for ScopeSelectorDelegate {
.and_then(|available_language| self.scope_icon(available_language.matcher(), cx))
.or_else(|| {
Some(
- Icon::from_path(IconName::Globe.path())
+ Icon::from_path(IconName::ToolWeb.path())
.map(|icon| icon.color(Color::Muted)),
)
})
diff --git a/crates/terminal_view/src/terminal_view.rs b/crates/terminal_view/src/terminal_view.rs
index 361cdd0b1cccf4f91756a277681f8f1d3a5ccdea..0c05aec85e0792b660e93b2b8c742456a791834a 100644
--- a/crates/terminal_view/src/terminal_view.rs
+++ b/crates/terminal_view/src/terminal_view.rs
@@ -1591,7 +1591,7 @@ impl Item for TerminalView {
let (icon, icon_color, rerun_button) = match terminal.task() {
Some(terminal_task) => match &terminal_task.status {
TaskStatus::Running => (
- IconName::PlayOutlined,
+ IconName::PlayFilled,
Color::Disabled,
TerminalView::rerun_button(&terminal_task),
),
diff --git a/crates/theme_selector/src/icon_theme_selector.rs b/crates/theme_selector/src/icon_theme_selector.rs
index 2d0b9480d58ee5e163674cb0da9cea083ddf54fd..af7abdee62b7d0d86b8f7e22b91c28185e27b86c 100644
--- a/crates/theme_selector/src/icon_theme_selector.rs
+++ b/crates/theme_selector/src/icon_theme_selector.rs
@@ -318,7 +318,7 @@ impl PickerDelegate for IconThemeSelectorDelegate {
Button::new("docs", "View Icon Theme Docs")
.icon(IconName::ArrowUpRight)
.icon_position(IconPosition::End)
- .icon_size(IconSize::XSmall)
+ .icon_size(IconSize::Small)
.icon_color(Color::Muted)
.on_click(|_event, _window, cx| {
cx.open_url("https://zed.dev/docs/icon-themes");
diff --git a/crates/theme_selector/src/theme_selector.rs b/crates/theme_selector/src/theme_selector.rs
index ba8bde243ba7b1b02b2ae2a67af5709cc5c94b7e..8c48f295ddc282718331657cff0c9cf106e1b623 100644
--- a/crates/theme_selector/src/theme_selector.rs
+++ b/crates/theme_selector/src/theme_selector.rs
@@ -376,7 +376,7 @@ impl PickerDelegate for ThemeSelectorDelegate {
Button::new("docs", "View Theme Docs")
.icon(IconName::ArrowUpRight)
.icon_position(IconPosition::End)
- .icon_size(IconSize::XSmall)
+ .icon_size(IconSize::Small)
.icon_color(Color::Muted)
.on_click(cx.listener(|_, _, _, cx| {
cx.open_url("https://zed.dev/docs/themes");
diff --git a/crates/title_bar/src/collab.rs b/crates/title_bar/src/collab.rs
index d026b4de14263f442c1ede308da0fe467fe69bba..74d60a6d66b774692c2d6128783c9df24f358b93 100644
--- a/crates/title_bar/src/collab.rs
+++ b/crates/title_bar/src/collab.rs
@@ -518,7 +518,7 @@ impl TitleBar {
.mx_neg_0p5()
.h_full()
.justify_center()
- .child(Icon::new(IconName::ChevronDownSmall).size(IconSize::XSmall)),
+ .child(Icon::new(IconName::ChevronDown).size(IconSize::XSmall)),
)
.toggle_state(self.screen_share_popover_handle.is_deployed()),
)
diff --git a/crates/title_bar/src/title_bar.rs b/crates/title_bar/src/title_bar.rs
index a8b16d881f42e6d3185987b1d036193f505f1d5c..d11d3b70812bd5e502ad2a2b757f4817139ea201 100644
--- a/crates/title_bar/src/title_bar.rs
+++ b/crates/title_bar/src/title_bar.rs
@@ -344,7 +344,7 @@ impl TitleBar {
.child(
IconWithIndicator::new(
Icon::new(IconName::Server)
- .size(IconSize::XSmall)
+ .size(IconSize::Small)
.color(icon_color),
Some(Indicator::dot().color(indicator_color)),
)
diff --git a/crates/ui/src/components/banner.rs b/crates/ui/src/components/banner.rs
index d88905d4664f83ff985cb6b4226ae9c6b43ebe91..d493e8a0d3842ab39f1c5da426585cc5577cedde 100644
--- a/crates/ui/src/components/banner.rs
+++ b/crates/ui/src/components/banner.rs
@@ -24,7 +24,7 @@ pub enum Severity {
/// .action_slot(
/// Button::new("learn-more", "Learn More")
/// .icon(IconName::ArrowUpRight)
-/// .icon_size(IconSize::XSmall)
+/// .icon_size(IconSize::Small)
/// .icon_position(IconPosition::End),
/// )
/// ```
@@ -150,7 +150,7 @@ impl Component for Banner {
.action_slot(
Button::new("learn-more", "Learn More")
.icon(IconName::ArrowUpRight)
- .icon_size(IconSize::XSmall)
+ .icon_size(IconSize::Small)
.icon_position(IconPosition::End),
)
.into_any_element(),
diff --git a/crates/ui/src/components/callout.rs b/crates/ui/src/components/callout.rs
index 9c1c9fb1a9d7b5b603bd3c55b64b19375b6b521e..abb03198ab1a4ad59e30dfbe2f34e627744f5249 100644
--- a/crates/ui/src/components/callout.rs
+++ b/crates/ui/src/components/callout.rs
@@ -207,7 +207,7 @@ impl Component for Callout {
"Error with Multiple Actions",
Callout::new()
.icon(
- Icon::new(IconName::X)
+ Icon::new(IconName::Close)
.color(Color::Error)
.size(IconSize::Small),
)
diff --git a/crates/ui/src/components/context_menu.rs b/crates/ui/src/components/context_menu.rs
index 21ab283d883eb631e1fa2fd5ec3ca571ba0f898c..25575c4f1e1b16092d5305577099240dd58ecc5a 100644
--- a/crates/ui/src/components/context_menu.rs
+++ b/crates/ui/src/components/context_menu.rs
@@ -561,7 +561,7 @@ impl ContextMenu {
action: Some(action.boxed_clone()),
handler: Rc::new(move |_, window, cx| window.dispatch_action(action.boxed_clone(), cx)),
icon: Some(IconName::ArrowUpRight),
- icon_size: IconSize::XSmall,
+ icon_size: IconSize::Small,
icon_position: IconPosition::End,
icon_color: None,
disabled: false,
diff --git a/crates/ui/src/components/indicator.rs b/crates/ui/src/components/indicator.rs
index d319547bed1f3bbb90af1a84a0a4fc4b1ce11519..59d69a068b3955c6218950b69ab2e8db88e48a04 100644
--- a/crates/ui/src/components/indicator.rs
+++ b/crates/ui/src/components/indicator.rs
@@ -164,7 +164,7 @@ impl Component for Indicator {
),
single_example(
"Error",
- Indicator::icon(Icon::new(IconName::X))
+ Indicator::icon(Icon::new(IconName::Close))
.color(Color::Error)
.into_any_element(),
),
diff --git a/crates/ui/src/components/keybinding.rs b/crates/ui/src/components/keybinding.rs
index 5779093ccc63845a8f8b5c151680b584f2b201bd..56be867796aaa7e8628e478414947cedb9943baa 100644
--- a/crates/ui/src/components/keybinding.rs
+++ b/crates/ui/src/components/keybinding.rs
@@ -188,7 +188,7 @@ fn icon_for_key(keystroke: &Keystroke, platform_style: PlatformStyle) -> Option<
"up" => Some(IconName::ArrowUp),
"down" => Some(IconName::ArrowDown),
"backspace" => Some(IconName::Backspace),
- "delete" => Some(IconName::Delete),
+ "delete" => Some(IconName::Backspace),
"return" => Some(IconName::Return),
"enter" => Some(IconName::Return),
"tab" => Some(IconName::Tab),
diff --git a/crates/ui/src/components/stories/icon_button.rs b/crates/ui/src/components/stories/icon_button.rs
index ad6886252d9beeabb64696dbb12292bfd841eb19..166297eabc389ca5cc4dea5070c21cb9efa00133 100644
--- a/crates/ui/src/components/stories/icon_button.rs
+++ b/crates/ui/src/components/stories/icon_button.rs
@@ -90,7 +90,7 @@ impl Render for IconButtonStory {
let selected_with_tooltip_button = StoryItem::new(
"Selected with `tooltip`",
- IconButton::new("selected_with_tooltip_button", IconName::InlayHint)
+ IconButton::new("selected_with_tooltip_button", IconName::CaseSensitive)
.toggle_state(true)
.tooltip(Tooltip::text("Toggle inlay hints")),
)
diff --git a/crates/welcome/src/multibuffer_hint.rs b/crates/welcome/src/multibuffer_hint.rs
index ea64cab9df3de0a7e0f1969afe86c64d34be678a..3a20cbb6bd4443356db3a9fc1402b1102558ea02 100644
--- a/crates/welcome/src/multibuffer_hint.rs
+++ b/crates/welcome/src/multibuffer_hint.rs
@@ -159,7 +159,7 @@ impl Render for MultibufferHint {
.child(
Button::new("open_docs", "Learn More")
.icon(IconName::ArrowUpRight)
- .icon_size(IconSize::XSmall)
+ .icon_size(IconSize::Small)
.icon_color(Color::Muted)
.icon_position(IconPosition::End)
.on_click(move |_event, _, cx| {
diff --git a/crates/zed/src/zed/component_preview.rs b/crates/zed/src/zed/component_preview.rs
index db75b544f611589377031b22aff5682875bb62dd..ac889a7ad95126e2e63d0c6d6017766e65fe69e3 100644
--- a/crates/zed/src/zed/component_preview.rs
+++ b/crates/zed/src/zed/component_preview.rs
@@ -697,7 +697,7 @@ impl ComponentPreview {
workspace.update(cx, |workspace, cx| {
let status_toast =
StatusToast::new("`zed/new-notification-system` created!", cx, |this, _cx| {
- this.icon(ToastIcon::new(IconName::GitBranchSmall).color(Color::Muted))
+ this.icon(ToastIcon::new(IconName::GitBranchAlt).color(Color::Muted))
.action("Open Pull Request", |_, cx| {
cx.open_url("https://github.com/")
})
diff --git a/crates/zed/src/zed/quick_action_bar/repl_menu.rs b/crates/zed/src/zed/quick_action_bar/repl_menu.rs
index 12e5cf1b769e1c23dccae1540c8325d5d0c8090b..5d1a6c8887038c7a477d6605e720251d6041ec37 100644
--- a/crates/zed/src/zed/quick_action_bar/repl_menu.rs
+++ b/crates/zed/src/zed/quick_action_bar/repl_menu.rs
@@ -212,7 +212,7 @@ impl QuickActionBar {
.trigger_with_tooltip(
ButtonLike::new_rounded_right(element_id("dropdown"))
.child(
- Icon::new(IconName::ChevronDownSmall)
+ Icon::new(IconName::ChevronDown)
.size(IconSize::XSmall)
.color(Color::Muted),
)
diff --git a/crates/zeta/src/onboarding_modal.rs b/crates/zeta/src/onboarding_modal.rs
index 1d59f36b0532429f8cc24f3fc6adcdd468279d33..c2886f2864502618eb3b51208d0749e9bbc3b48b 100644
--- a/crates/zeta/src/onboarding_modal.rs
+++ b/crates/zeta/src/onboarding_modal.rs
@@ -141,7 +141,7 @@ impl Render for ZedPredictModal {
)),
)
.child(h_flex().absolute().top_2().right_2().child(
- IconButton::new("cancel", IconName::X).on_click(cx.listener(
+ IconButton::new("cancel", IconName::Close).on_click(cx.listener(
|_, _: &ClickEvent, _window, cx| {
onboarding_event!("Cancelled", trigger = "X click");
cx.emit(DismissEvent);