Redesign and clean up all icons across Zed (#35856)

- [x] Clean up unused and old icons
- [x] Swap SVG for all in-use icons with the redesigned version
- [x] Document guidelines

Release Notes:

- N/A
This commit is contained in:
Danilo Leal
2025-08-08 15:34:36 -03:00
committed by GitHub
parent 530f5075d0
commit 2cde6da5ff
284 changed files with 535 additions and 791 deletions
+3 -3
View File
@@ -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,
+1 -1
View File
@@ -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);
@@ -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))
@@ -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(
@@ -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({