Compare commits
2 Commits
68d2080030
...
0960021ec3
Author | SHA1 | Date | |
---|---|---|---|
0960021ec3 | |||
282a27ced6 |
@ -6,6 +6,6 @@ edition = "2021"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
egui = "0.22.0"
|
||||
eframe = "0.22.0"
|
||||
egui = "0.28.1"
|
||||
eframe = "0.28.1"
|
||||
tracing-subscriber = "0.3.16"
|
||||
|
10
src/main.rs
10
src/main.rs
@ -1,7 +1,8 @@
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release
|
||||
mod theme;
|
||||
mod app;
|
||||
mod theme;
|
||||
use app::App;
|
||||
use egui::ViewportBuilder;
|
||||
|
||||
fn main() -> Result<(), eframe::Error> {
|
||||
// Log to stdout (if you run with `RUST_LOG=debug`).
|
||||
@ -9,8 +10,7 @@ fn main() -> Result<(), eframe::Error> {
|
||||
|
||||
// Setup the options for the default window
|
||||
let options = eframe::NativeOptions {
|
||||
initial_window_size: Some(egui::vec2(300.0, 200.0)),
|
||||
resizable: true,
|
||||
viewport: ViewportBuilder::default().with_inner_size(egui::vec2(300.0, 200.0)),
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
@ -18,6 +18,6 @@ fn main() -> Result<(), eframe::Error> {
|
||||
eframe::run_native(
|
||||
"egui-template",
|
||||
options,
|
||||
Box::new(|_cc| Box::new(App::default())),
|
||||
Box::new(|_cc| Ok(Box::new(App::default()))),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user