Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

project panel: Update decoration icon active color (#20723)

Danilo Leal3796b4a55c07
diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs
index 0a80728affe..94472f5576d 100644
--- a/crates/project_panel/src/project_panel.rs
+++ b/crates/project_panel/src/project_panel.rs
@@ -248,7 +248,6 @@ struct ItemColors {
default: Hsla,
hover: Hsla,
drag_over: Hsla,
- selected: Hsla,
marked_active: Hsla,
}
@@ -257,9 +256,8 @@ fn get_item_color(cx: &ViewContext<ProjectPanel>) -> ItemColors {
ItemColors {
default: colors.surface_background,
- hover: colors.ghost_element_hover,
+ hover: colors.element_active,
drag_over: colors.drop_target_background,
- selected: colors.surface_background,
marked_active: colors.ghost_element_selected,
}
}
@@ -2626,6 +2624,7 @@ impl ProjectPanel {
active_selection: selection,
marked_selections: selections,
};
+
div()
.id(entry_id.to_proto() as usize)
.when(is_local, |div| {
@@ -2808,7 +2807,7 @@ impl ProjectPanel {
IconDecorationKind::Dot
},
if is_marked || is_active {
- item_colors.selected
+ item_colors.marked_active
} else {
item_colors.default
},