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
|
@ -46,12 +46,12 @@ pub enum GitStatus {
|
|||
impl GitStatus {
|
||||
pub fn hsla(&self, cx: &WindowContext) -> Hsla {
|
||||
match self {
|
||||
Self::None => cx.theme().styles.system.transparent,
|
||||
Self::Created => cx.theme().styles.git.created,
|
||||
Self::Modified => cx.theme().styles.git.modified,
|
||||
Self::Deleted => cx.theme().styles.git.deleted,
|
||||
Self::Conflict => cx.theme().styles.git.conflict,
|
||||
Self::Renamed => cx.theme().styles.git.renamed,
|
||||
Self::None => cx.theme().system().transparent,
|
||||
Self::Created => cx.theme().status().created,
|
||||
Self::Modified => cx.theme().status().modified,
|
||||
Self::Deleted => cx.theme().status().deleted,
|
||||
Self::Conflict => cx.theme().status().conflict,
|
||||
Self::Renamed => cx.theme().status().renamed,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue