debugger: Reorder step icons to be consistent with other editors (#33330)
Closes #33303 Release Notes: - debugger: Swap step in/out icon positions in debug panel to be consistent with other editors
This commit is contained in:
parent
fc1fc264ec
commit
3c0475d182
1 changed files with 24 additions and 24 deletions
|
@ -695,30 +695,6 @@ impl DebugPanel {
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.child(
|
|
||||||
IconButton::new("debug-step-out", IconName::ArrowUpRight)
|
|
||||||
.icon_size(IconSize::XSmall)
|
|
||||||
.shape(ui::IconButtonShape::Square)
|
|
||||||
.on_click(window.listener_for(
|
|
||||||
&running_state,
|
|
||||||
|this, _, _window, cx| {
|
|
||||||
this.step_out(cx);
|
|
||||||
},
|
|
||||||
))
|
|
||||||
.disabled(thread_status != ThreadStatus::Stopped)
|
|
||||||
.tooltip({
|
|
||||||
let focus_handle = focus_handle.clone();
|
|
||||||
move |window, cx| {
|
|
||||||
Tooltip::for_action_in(
|
|
||||||
"Step out",
|
|
||||||
&StepOut,
|
|
||||||
&focus_handle,
|
|
||||||
window,
|
|
||||||
cx,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
)
|
|
||||||
.child(
|
.child(
|
||||||
IconButton::new(
|
IconButton::new(
|
||||||
"debug-step-into",
|
"debug-step-into",
|
||||||
|
@ -746,6 +722,30 @@ impl DebugPanel {
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
.child(
|
||||||
|
IconButton::new("debug-step-out", IconName::ArrowUpRight)
|
||||||
|
.icon_size(IconSize::XSmall)
|
||||||
|
.shape(ui::IconButtonShape::Square)
|
||||||
|
.on_click(window.listener_for(
|
||||||
|
&running_state,
|
||||||
|
|this, _, _window, cx| {
|
||||||
|
this.step_out(cx);
|
||||||
|
},
|
||||||
|
))
|
||||||
|
.disabled(thread_status != ThreadStatus::Stopped)
|
||||||
|
.tooltip({
|
||||||
|
let focus_handle = focus_handle.clone();
|
||||||
|
move |window, cx| {
|
||||||
|
Tooltip::for_action_in(
|
||||||
|
"Step out",
|
||||||
|
&StepOut,
|
||||||
|
&focus_handle,
|
||||||
|
window,
|
||||||
|
cx,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
)
|
||||||
.child(Divider::vertical())
|
.child(Divider::vertical())
|
||||||
.child(
|
.child(
|
||||||
IconButton::new("debug-restart", IconName::DebugRestart)
|
IconButton::new("debug-restart", IconName::DebugRestart)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue