Replace GitStatusColors
with StatusColors
(#3268)
This PR removes `GitStatusColors` in favor of just using `StatusColors` instead. Release Notes: - N/A
This commit is contained in:
parent
9e5a4ea6c4
commit
b6766ba39a
9 changed files with 30 additions and 75 deletions
|
@ -2,8 +2,8 @@ use std::fmt::{self, Debug};
|
|||
|
||||
use gpui::{Hsla, Rgba};
|
||||
use theme::{
|
||||
Appearance, GitStatusColors, PlayerColor, PlayerColors, StatusColors, SyntaxTheme,
|
||||
SystemColors, ThemeColorsRefinement, UserTheme, UserThemeFamily, UserThemeStylesRefinement,
|
||||
Appearance, PlayerColor, PlayerColors, StatusColors, SyntaxTheme, SystemColors,
|
||||
ThemeColorsRefinement, UserTheme, UserThemeFamily, UserThemeStylesRefinement,
|
||||
};
|
||||
|
||||
struct RawSyntaxPrinter<'a>(&'a str);
|
||||
|
@ -270,21 +270,6 @@ impl<'a> Debug for StatusColorsPrinter<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
pub struct GitStatusColorsPrinter<'a>(&'a GitStatusColors);
|
||||
|
||||
impl<'a> Debug for GitStatusColorsPrinter<'a> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.debug_struct("GitStatusColors")
|
||||
.field("conflict", &HslaPrinter(self.0.conflict))
|
||||
.field("created", &HslaPrinter(self.0.created))
|
||||
.field("deleted", &HslaPrinter(self.0.deleted))
|
||||
.field("ignored", &HslaPrinter(self.0.ignored))
|
||||
.field("modified", &HslaPrinter(self.0.modified))
|
||||
.field("renamed", &HslaPrinter(self.0.renamed))
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
pub struct PlayerColorsPrinter<'a>(&'a PlayerColors);
|
||||
|
||||
impl<'a> Debug for PlayerColorsPrinter<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue