Skip to content

Visual Studio Code, rebuilt in Rust

Rust

fix(debug): color the top stack frame column arrow

rokarturb85cb08eb4ba
diff --git a/native/crates/app/src/workbench/breakpoint_widget.rs b/native/crates/app/src/workbench/breakpoint_widget.rs
index 4c2ca6ff43a..ec933480111 100644
--- a/native/crates/app/src/workbench/breakpoint_widget.rs
+++ b/native/crates/app/src/workbench/breakpoint_widget.rs
@@ -387,9 +387,10 @@ impl Workbench {
injections
}
- /// `.debug-top-stack-frame-column`: the codicon 1px up, or `.start-of-line` 17px left of the column, centered.
+ /// `.debug-top-stack-frame-column`: the codicon 1px up, or `.start-of-line` 17px left of the column, centered, in
+ /// `debugIcon.breakpointCurrentStackframeForeground` (breakpointEditorContribution.ts theming participant).
pub(super) fn stack_frame_column_element(&self, start_of_line: bool, left: f32, line_height: f32) -> AnyElement {
- let icon = self.icon("debug-stackframe", 16., 16., self.color("editor.foreground"));
+ let icon = self.icon("debug-stackframe", 16., 16., self.color("debugIcon.breakpointCurrentStackframeForeground"));
let (left, top) = if start_of_line { (left - 17., 0.) } else { (left, -1.) };
div().absolute().top(px(top)).left(px(left)).h(px(line_height)).flex().items_center().child(icon).into_any_element()
}