WIP: Allow panels to be moved
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
45df09245b
commit
8f12489937
6 changed files with 157 additions and 92 deletions
|
@ -311,19 +311,12 @@ pub fn initialize_workspace(
|
|||
cx.add_view(|cx| CollabTitlebarItem::new(workspace, &workspace_handle, cx));
|
||||
workspace.set_titlebar_item(collab_titlebar_item.into_any(), cx);
|
||||
|
||||
let project_panel = ProjectPanel::new(workspace, cx);
|
||||
workspace.left_dock().update(cx, |dock, cx| {
|
||||
dock.add_item(
|
||||
"icons/folder_tree_16.svg",
|
||||
"Project Panel".to_string(),
|
||||
project_panel,
|
||||
cx,
|
||||
);
|
||||
});
|
||||
let project_panel = cx.add_view(|cx| ProjectPanel::new(workspace, cx));
|
||||
workspace.add_panel(panel, cx);
|
||||
|
||||
let terminal_panel = cx.add_view(|cx| TerminalPanel::new(workspace, cx));
|
||||
workspace.bottom_dock().update(cx, |dock, cx| {
|
||||
dock.add_item(
|
||||
dock.add_panel(
|
||||
"icons/terminal_12.svg",
|
||||
"Terminals".to_string(),
|
||||
terminal_panel,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue