Revert gutter stripes as indicator of hunk staged status (#25089)

We've decided to go in a different direction on indicating the staged
status of hunks, so go back for now to a world where we don't display
staged and unstaged hunks differently outside the (still gated) project
diff editor.

cc @iamnbutler 

This reverts commit 8c202b3b09.

Release Notes:

- N/A
This commit is contained in:
Cole Miller
2025-02-18 13:20:39 -05:00
committed by GitHub
parent 737b177ab5
commit 529c65276e
6 changed files with 65 additions and 167 deletions
-19
View File
@@ -607,25 +607,6 @@ impl Default for Background {
}
}
impl Background {
/// Gets the color of the background if there is one.
pub fn color(&self) -> Option<Hsla> {
match self.tag {
BackgroundTag::Solid => Some(self.solid),
BackgroundTag::LinearGradient => None,
BackgroundTag::PatternSlash => Some(self.solid),
}
}
}
/// Creates a background with a solid color
pub fn solid_color(color: impl Into<Hsla>) -> Background {
Background {
solid: color.into(),
..Default::default()
}
}
/// Creates a hash pattern background
pub fn pattern_slash(color: Hsla, thickness: f32) -> Background {
Background {