Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
debugger: Improve step icons (#44017)
Danilo Lealb1af02ca7100
diff --git a/assets/icons/debug_step_back.svg b/assets/icons/debug_step_back.svgdeleted file mode 100644index 61d45866f61..00000000000--- a/assets/icons/debug_step_back.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" d="M14 11.333A6 6 0 0 0 4 6.867l-1 .9"/><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.333" d="M2 4.667v4h4"/><path fill="#000" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" d="M8 12a.667.667 0 1 0 0-1.333A.667.667 0 0 0 8 12Z"/></svg>diff --git a/assets/icons/debug_step_into.svg b/assets/icons/debug_step_into.svgindex 9a517fc7ca0..0a588235438 100644--- a/assets/icons/debug_step_into.svg+++ b/assets/icons/debug_step_into.svg@@ -1 +1,5 @@-<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" d="M3.333 10 8 14.667 12.667 10M8 5.333v9.334"/><path fill="#000" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" d="M8 2.667a.667.667 0 1 0 0-1.334.667.667 0 0 0 0 1.334Z"/></svg>+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M2 13H5" stroke="#C6CAD0" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>+<path d="M11 13H14" stroke="#C6CAD0" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>+<path d="M11.5 8.5L8 12M8 12L4.5 8.5M8 12L8 3" stroke="#C6CAD0" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>+</svg>diff --git a/assets/icons/debug_step_out.svg b/assets/icons/debug_step_out.svgindex 147a44f930f..c128f56111f 100644--- a/assets/icons/debug_step_out.svg+++ b/assets/icons/debug_step_out.svg@@ -1 +1,5 @@-<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" d="M3.333 6 8 1.333 12.667 6M8 10.667V1.333"/><path fill="#000" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" d="M8 13.333a.667.667 0 1 1 0 1.334.667.667 0 0 1 0-1.334Z"/></svg>+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M4.5 6.5L8 3M8 3L11.5 6.5M8 3V12" stroke="#C6CAD0" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>+<path d="M2 13H5" stroke="#C6CAD0" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>+<path d="M11 13H14" stroke="#C6CAD0" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>+</svg>diff --git a/assets/icons/debug_step_over.svg b/assets/icons/debug_step_over.svgindex 336abc11deb..5d8ccd5b7a2 100644--- a/assets/icons/debug_step_over.svg+++ b/assets/icons/debug_step_over.svg@@ -1 +1,5 @@-<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" d="M2 11.333a6 6 0 0 1 10-4.466l1 .9"/><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.333" d="M14 4.667v4h-4"/><path fill="#000" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" d="M8 12a.667.667 0 1 1 0-1.333A.667.667 0 0 1 8 12Z"/></svg>+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M2 11.333C2.00118 10.1752 2.33729 9.04258 2.96777 8.07159C3.59826 7.10059 4.49621 6.33274 5.55331 5.86064C6.61041 5.38853 7.78152 5.23235 8.9254 5.41091C10.0693 5.58947 11.1371 6.09516 12 6.86698L13 7.76698" stroke="#C6CAD0" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>+<path d="M14 4.66699V8.66699H10" stroke="#C6CAD0" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>+<path d="M7 13H10" stroke="#C6CAD0" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>+</svg>diff --git a/crates/debugger_ui/src/debugger_panel.rs b/crates/debugger_ui/src/debugger_panel.rsindex 3890fa63263..ffdd4a22e3d 100644--- a/crates/debugger_ui/src/debugger_panel.rs+++ b/crates/debugger_ui/src/debugger_panel.rs@@ -740,7 +740,7 @@ impl DebugPanel {}}).child(- IconButton::new("debug-step-over", IconName::ArrowRight)+ IconButton::new("step-over", IconName::DebugStepOver).icon_size(IconSize::Small).on_click(window.listener_for(running_state,@@ -762,32 +762,29 @@ impl DebugPanel {}),).child(- IconButton::new(- "debug-step-into",- IconName::ArrowDownRight,- )- .icon_size(IconSize::Small)- .on_click(window.listener_for(- running_state,- |this, _, _window, cx| {- this.step_in(cx);- },- ))- .disabled(thread_status != ThreadStatus::Stopped)- .tooltip({- let focus_handle = focus_handle.clone();- move |_window, cx| {- Tooltip::for_action_in(- "Step In",- &StepInto,- &focus_handle,- cx,- )- }- }),+ IconButton::new("step-into", IconName::DebugStepInto)+ .icon_size(IconSize::Small)+ .on_click(window.listener_for(+ running_state,+ |this, _, _window, cx| {+ this.step_in(cx);+ },+ ))+ .disabled(thread_status != ThreadStatus::Stopped)+ .tooltip({+ let focus_handle = focus_handle.clone();+ move |_window, cx| {+ Tooltip::for_action_in(+ "Step In",+ &StepInto,+ &focus_handle,+ cx,+ )+ }+ }),).child(- IconButton::new("debug-step-out", IconName::ArrowUpRight)+ IconButton::new("step-out", IconName::DebugStepOut).icon_size(IconSize::Small).on_click(window.listener_for(running_state,diff --git a/crates/icons/src/icons.rs b/crates/icons/src/icons.rsindex da3b298751d..d28e2c1030c 100644--- a/crates/icons/src/icons.rs+++ b/crates/icons/src/icons.rs@@ -86,7 +86,6 @@ pub enum IconName {DebugIgnoreBreakpoints,DebugLogBreakpoint,DebugPause,- DebugStepBack,DebugStepInto,DebugStepOut,DebugStepOver,