From 3796b4a55c079a6bad351b8099920b888c8863f5 Mon Sep 17 00:00:00 2001
From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com>
Date: Fri, 15 Nov 2024 11:48:26 -0300
Subject: [PATCH] project panel: Update decoration icon active color (#20723)
Just so that the icon decoration knockout color matches the background
of a selected/market item.
Release Notes:
- N/A
---
crates/project_panel/src/project_panel.rs | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs
index 0a80728aff..94472f5576 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) -> 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
},