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.

Style tab drop targets for project entries (#3725)

Marshall Bowers547ad7724370
diff --git a/crates/workspace2/src/pane.rs b/crates/workspace2/src/pane.rs
index e1bb006c114..6b498124e37 100644
--- a/crates/workspace2/src/pane.rs
+++ b/crates/workspace2/src/pane.rs
@@ -1511,8 +1511,8 @@ impl Pane {
},
|tab, cx| cx.build_view(|_| tab.clone()),
)
- .drag_over::<DraggedTab>(|tab| tab.bg(cx.theme().colors().tab_active_background))
- .drag_over::<ProjectEntryId>(|tab| tab.bg(gpui::red()))
+ .drag_over::<DraggedTab>(|tab| tab.bg(cx.theme().colors().drop_target_background))
+ .drag_over::<ProjectEntryId>(|tab| tab.bg(cx.theme().colors().drop_target_background))
.on_drop(cx.listener(move |this, dragged_tab: &DraggedTab, cx| {
this.drag_split_direction = None;
this.handle_tab_drop(dragged_tab, ix, cx)
@@ -1664,9 +1664,11 @@ impl Pane {
.h_full()
.flex_grow()
.drag_over::<DraggedTab>(|bar| {
- bar.bg(cx.theme().colors().tab_active_background)
+ bar.bg(cx.theme().colors().drop_target_background)
+ })
+ .drag_over::<ProjectEntryId>(|bar| {
+ bar.bg(cx.theme().colors().drop_target_background)
})
- .drag_over::<ProjectEntryId>(|bar| bar.bg(gpui::red()))
.on_drop(cx.listener(move |this, dragged_tab: &DraggedTab, cx| {
this.drag_split_direction = None;
this.handle_tab_drop(dragged_tab, this.items.len(), cx)