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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user