Add PointingHand on tabs
This commit is contained in:
parent
c604a2e34e
commit
d73c54f604
6 changed files with 71 additions and 18 deletions
|
@ -9,8 +9,9 @@ use crate::{
|
|||
use anyhow::Result;
|
||||
use collections::{HashMap, HashSet, VecDeque};
|
||||
use gpui::{
|
||||
AppContext, AsyncWindowContext, Component, Div, EntityId, EventEmitter, FocusHandle, Model,
|
||||
PromptLevel, Render, Task, View, ViewContext, VisualContext, WeakView, WindowContext,
|
||||
AppContext, AsyncWindowContext, Component, CursorStyle, Div, EntityId, EventEmitter,
|
||||
FocusHandle, Model, PromptLevel, Render, Task, View, ViewContext, VisualContext, WeakView,
|
||||
WindowContext,
|
||||
};
|
||||
use parking_lot::Mutex;
|
||||
use project2::{Project, ProjectEntryId, ProjectPath};
|
||||
|
@ -1397,6 +1398,7 @@ impl Pane {
|
|||
div()
|
||||
.group("")
|
||||
.id(item.id())
|
||||
.cursor_pointer()
|
||||
// .on_drag(move |pane, cx| pane.render_tab(ix, item.boxed_clone(), detail, cx))
|
||||
// .drag_over::<DraggedTab>(|d| d.bg(cx.theme().colors().element_drop_target))
|
||||
// .on_drop(|_view, state: View<DraggedTab>, cx| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue