update deps
This commit is contained in:
@@ -14,7 +14,7 @@ use gpui::{
|
||||
pub use gpui_base::dock::{DockArea, DockLayout, DockPlacement};
|
||||
use gpui_base::dock::{
|
||||
DockAreaRenderer, DockContext, DragPanel, DropIndicator, InsertTarget, NodeId, PaneNode,
|
||||
PaneRef, PanelId, TabGroupContext, TabGroupRenderer, TileContext, TilesRenderer,
|
||||
PaneRef, PanelId, TabGroupContext, TabGroupRenderer,
|
||||
};
|
||||
use gpui_base::{Placement, ResizeHandleContext, Side};
|
||||
use theme::{ActiveTheme, TABBAR_HEIGHT};
|
||||
@@ -167,7 +167,6 @@ fn left_top_group(node: &PaneNode) -> Option<NodeId> {
|
||||
match node.kind() {
|
||||
PaneRef::Tabs { .. } => Some(node.id()),
|
||||
PaneRef::Split { children, .. } => children.first().and_then(left_top_group),
|
||||
PaneRef::Tiles { .. } => None,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -182,7 +181,6 @@ fn right_top_group(node: &PaneNode) -> Option<NodeId> {
|
||||
};
|
||||
child.and_then(right_top_group)
|
||||
}
|
||||
PaneRef::Tiles { .. } => None,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -263,18 +261,6 @@ impl DockAreaRenderer for DockSkin {
|
||||
fn tab_group_renderer(&self) -> Rc<dyn TabGroupRenderer> {
|
||||
Rc::new(TabGroupSkin::new(self.shared.clone()))
|
||||
}
|
||||
|
||||
fn tiles_renderer(&self) -> Rc<dyn TilesRenderer> {
|
||||
Rc::new(NoTiles)
|
||||
}
|
||||
}
|
||||
|
||||
struct NoTiles;
|
||||
|
||||
impl TilesRenderer for NoTiles {
|
||||
fn render_drag_bar(&self, _: &TileContext, _: &mut Window, _: &mut App) -> AnyElement {
|
||||
Empty.into_any_element()
|
||||
}
|
||||
}
|
||||
|
||||
/// The payload a dock's resize handle drags; the handle is the affordance.
|
||||
|
||||
Reference in New Issue
Block a user