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:
Stanislav Alekseev
2024-06-21 10:53:46 +02:00
committed by GitHub
parent c8709978a1
commit 44c479c50c
5 changed files with 21 additions and 3 deletions
+1
View File
@@ -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()
},
}
+6 -1
View File
@@ -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(