Files
signed/crates/signed_app/src/lib.rs
T
reya bef96c614b
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
refactor: merge workspace state into app root
2026-11-23 03:26:11 +07:00

25 lines
609 B
Rust

mod app;
mod explore;
mod identity;
#[allow(dead_code)] // temporarily unlinked while the shell migrates
mod inbox;
mod issues;
mod pull_requests;
mod repo;
mod settings;
mod shared;
mod titlebar;
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<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
}