T01: rustfmt
CI / platforms (windows-latest) (push) Failing after 8s
CI / macos (push) Successful in 9m28s
CI / platforms (ubuntu-24.04) (push) Canceled after 0s

This commit is contained in:
ZacharyZhang-NY committed 2026-10-14 11:20:46 -04:00
1 parent 9c0c06764d
commit f8857fe1c8
1 file changed
+21 -23
+21 -23
View File
@@ -35,29 +35,27 @@ fn application() -> gpui::Application {
fn main() {
env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("elyterminal=info"))
.init();
application()
.with_assets(Assets)
.run(|cx: &mut App| {
ely_gpui_component::init(cx).expect("Ely failed to start");
Theme::set_mode_now(Mode::Dark, cx);
let bounds = Bounds::centered(None, size(px(1200.0), px(760.0)), cx);
let options = WindowOptions {
window_bounds: Some(WindowBounds::Windowed(bounds)),
titlebar: Some(TitlebarOptions {
title: Some("ELYTerminal".into()),
..Default::default()
}),
application().with_assets(Assets).run(|cx: &mut App| {
ely_gpui_component::init(cx).expect("Ely failed to start");
Theme::set_mode_now(Mode::Dark, cx);
let bounds = Bounds::centered(None, size(px(1200.0), px(760.0)), cx);
let options = WindowOptions {
window_bounds: Some(WindowBounds::Windowed(bounds)),
titlebar: Some(TitlebarOptions {
title: Some("ELYTerminal".into()),
..Default::default()
};
cx.open_window(options, |window, cx| {
cx.new(|cx| {
let focus = cx.focus_handle();
window.focus(&focus, cx);
Workspace { focus }
})
}),
..Default::default()
};
cx.open_window(options, |window, cx| {
cx.new(|cx| {
let focus = cx.focus_handle();
window.focus(&focus, cx);
Workspace { focus }
})
.expect("the main window failed to open");
log::info!("app: main window open");
cx.activate(true);
});
})
.expect("the main window failed to open");
log::info!("app: main window open");
cx.activate(true);
});
}