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 11:53:46 +03:00 committed by GitHub
parent c8709978a1
commit 44c479c50c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 21 additions and 3 deletions

View file

@ -450,6 +450,11 @@ pub struct IndentGuideSettings {
/// Default: 1
#[serde(default = "line_width")]
pub line_width: u32,
/// The width of the active indent guide in pixels, between 1 and 10.
///
/// Default: 1
#[serde(default = "active_line_width")]
pub active_line_width: u32,
/// Determines how indent guides are colored.
///
/// Default: Fixed
@ -466,6 +471,10 @@ fn line_width() -> u32 {
1
}
fn active_line_width() -> u32 {
line_width()
}
/// Determines how indent guides are colored.
#[derive(Default, Debug, Copy, Clone, PartialEq, Eq, Serialize, Deserialize, JsonSchema)]
#[serde(rename_all = "snake_case")]