feat: rework window layout around panel stack (#36)
Rust / build (macos-latest, stable) (push) Canceled after 0s
Rust / build (ubuntu-latest, stable) (push) Canceled after 0s
Rust / build (windows-latest, stable) (push) Canceled after 0s

Reviewed-on: #36
This commit was merged in pull request #36.
This commit is contained in:
2026-11-24 03:42:54 +00:00
parent 81a46abbe5
commit a2abfb2f27
99 changed files with 6145 additions and 8891 deletions
+8 -4
View File
@@ -9,12 +9,16 @@ mod repo;
mod settings;
mod shared;
mod titlebar;
mod workspace;
pub use app::AppRoot;
pub use app::helpers::{apply_appearance, apply_appearance_mode};
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
}