project panel: Update decoration icon active color (#20723)
Just so that the icon decoration knockout color matches the background of a selected/market item. <img width="600" alt="Screenshot 2024-11-15 at 10 50 24" src="https://github.com/user-attachments/assets/0037fe5a-f42d-47e8-8559-97ca11ff2d97"> Release Notes: - N/A
This commit is contained in:
parent
8c02929710
commit
3796b4a55c
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue