Add a setting to increase the thickness of the active indent guide (#13210)
Resolves #12312. Release Notes: - Added an option to configure the line width of the active indent guide [#12312](https://github.com/zed-industries/zed/issues/12312)
This commit is contained in:
@@ -11808,6 +11808,7 @@ fn indent_guide(buffer_id: BufferId, start_row: u32, end_row: u32, depth: u32) -
|
||||
settings: IndentGuideSettings {
|
||||
enabled: true,
|
||||
line_width: 1,
|
||||
active_line_width: 1,
|
||||
..Default::default()
|
||||
},
|
||||
}
|
||||
|
||||
@@ -2791,7 +2791,12 @@ impl EditorElement {
|
||||
)),
|
||||
};
|
||||
|
||||
let requested_line_width = settings.line_width.clamp(1, 10);
|
||||
let requested_line_width = if indent_guide.active {
|
||||
settings.active_line_width
|
||||
} else {
|
||||
settings.line_width
|
||||
}
|
||||
.clamp(1, 10);
|
||||
let mut line_indicator_width = 0.;
|
||||
if let Some(color) = line_color {
|
||||
cx.paint_quad(fill(
|
||||
|
||||
Reference in New Issue
Block a user