refactor: replace shell with root view wrapping app content
Rust / build (macos-latest, stable) (push) Waiting to run
Rust / build (ubuntu-latest, stable) (push) Waiting to run
Rust / build (windows-latest, stable) (push) Waiting to run

This commit is contained in:
2026-11-22 21:45:09 +07:00
parent 531493008e
commit ccaa48a112
17 changed files with 259 additions and 284 deletions
+7 -2
View File
@@ -14,7 +14,12 @@ mod workspace;
pub use app::AppRoot;
pub use app::helpers::apply_appearance_mode;
use gpui::{App, AppContext as _, Entity, Window};
use ui::layout::root::Root;
pub fn root(window: &mut Window, cx: &mut App) -> Entity<AppRoot> {
cx.new(|cx| AppRoot::new(window, cx))
pub fn root(window: &mut Window, cx: &mut App) -> Entity<Root> {
let root = cx.new(|cx| Root::new(window, cx));
let content: Entity<AppRoot> = cx.new(|cx| AppRoot::new(window, cx));
root.update(cx, |root, cx| root.set_content(content, cx));
root
}