Refactor Git panel styling & status colors for consistency (#26951)

Closes #26847

Release Notes:

- Updated Git panel background to use panel_background instead of
ElevationIndex::Surface.bg(cx) for consistency with other panels.
- Removed redundant GitStatusColors struct from status.rs and refactored
to use existing theme colors.
- Adjusted Color enum mappings in color.rs to reference
version_control_* colors instead of status() for better alignment with
the theme system.
- Cleaned up unused or redundant code.
This commit is contained in:
Jakub Čermák 2025-03-19 15:26:36 +01:00 committed by GitHub
parent 2230f3b09d
commit 584a70ca5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 23 additions and 28 deletions

View file

@ -86,15 +86,6 @@ pub struct DiagnosticColors {
pub info: Hsla,
}
pub struct GitStatusColors {
pub created: Hsla,
pub deleted: Hsla,
pub modified: Hsla,
pub renamed: Hsla,
pub conflict: Hsla,
pub ignored: Hsla,
}
impl StatusColors {
pub fn dark() -> Self {
Self {
@ -197,15 +188,4 @@ impl StatusColors {
info: self.info,
}
}
pub fn git(&self) -> GitStatusColors {
GitStatusColors {
created: self.created,
deleted: self.deleted,
modified: self.modified,
renamed: self.renamed,
conflict: self.conflict,
ignored: self.ignored,
}
}
}