Fixed contrast in project panel and scrollbar

co-authored-by: nate <nate@zed.dev>
This commit is contained in:
Mikayla Maki
2023-05-22 15:51:31 -07:00
co-authored by nate
parent fb2f17e5c9
commit 5c31c84c90
7 changed files with 97 additions and 81 deletions
+22 -1
View File
@@ -446,7 +446,20 @@ pub struct ProjectPanelEntry {
pub icon_color: Color,
pub icon_size: f32,
pub icon_spacing: f32,
}
pub status: EntryStatus,
}
#[derive(Clone, Debug, Deserialize, Default)]
pub struct EntryStatus {
pub git: GitProjectStatus,
}
#[derive(Clone, Debug, Deserialize, Default)]
pub struct GitProjectStatus {
pub modified: Color,
pub inserted: Color,
pub conflict: Color,
}
#[derive(Clone, Debug, Deserialize, Default)]
pub struct ContextMenu {
@@ -670,6 +683,14 @@ pub struct Scrollbar {
pub thumb: ContainerStyle,
pub width: f32,
pub min_height_factor: f32,
pub git: GitDiffColors,
}
#[derive(Clone, Deserialize, Default)]
pub struct GitDiffColors {
pub inserted: Color,
pub modified: Color,
pub deleted: Color,
}
#[derive(Clone, Deserialize, Default)]