T01: rustfmt
This commit is contained in:
1 file changed
+21
-23
+21
-23
@@ -35,29 +35,27 @@ fn application() -> gpui::Application {
|
|||||||
fn main() {
|
fn main() {
|
||||||
env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("elyterminal=info"))
|
env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("elyterminal=info"))
|
||||||
.init();
|
.init();
|
||||||
application()
|
application().with_assets(Assets).run(|cx: &mut App| {
|
||||||
.with_assets(Assets)
|
ely_gpui_component::init(cx).expect("Ely failed to start");
|
||||||
.run(|cx: &mut App| {
|
Theme::set_mode_now(Mode::Dark, cx);
|
||||||
ely_gpui_component::init(cx).expect("Ely failed to start");
|
let bounds = Bounds::centered(None, size(px(1200.0), px(760.0)), cx);
|
||||||
Theme::set_mode_now(Mode::Dark, cx);
|
let options = WindowOptions {
|
||||||
let bounds = Bounds::centered(None, size(px(1200.0), px(760.0)), cx);
|
window_bounds: Some(WindowBounds::Windowed(bounds)),
|
||||||
let options = WindowOptions {
|
titlebar: Some(TitlebarOptions {
|
||||||
window_bounds: Some(WindowBounds::Windowed(bounds)),
|
title: Some("ELYTerminal".into()),
|
||||||
titlebar: Some(TitlebarOptions {
|
|
||||||
title: Some("ELYTerminal".into()),
|
|
||||||
..Default::default()
|
|
||||||
}),
|
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
}),
|
||||||
cx.open_window(options, |window, cx| {
|
..Default::default()
|
||||||
cx.new(|cx| {
|
};
|
||||||
let focus = cx.focus_handle();
|
cx.open_window(options, |window, cx| {
|
||||||
window.focus(&focus, cx);
|
cx.new(|cx| {
|
||||||
Workspace { focus }
|
let focus = cx.focus_handle();
|
||||||
})
|
window.focus(&focus, cx);
|
||||||
|
Workspace { focus }
|
||||||
})
|
})
|
||||||
.expect("the main window failed to open");
|
})
|
||||||
log::info!("app: main window open");
|
.expect("the main window failed to open");
|
||||||
cx.activate(true);
|
log::info!("app: main window open");
|
||||||
});
|
cx.activate(true);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user