21 lines
697 B
Rust
21 lines
697 B
Rust
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
|
|
use std::path::PathBuf;
|
|
|
|
fn main() -> eframe::Result {
|
|
let args: Vec<PathBuf> = std::env::args_os().skip(1).map(PathBuf::from).collect();
|
|
let options = eframe::NativeOptions {
|
|
viewport: egui::ViewportBuilder::default()
|
|
.with_title(logreadlite::strings::APP_NAME)
|
|
.with_inner_size([1200.0, 800.0])
|
|
.with_min_inner_size([480.0, 320.0])
|
|
.with_drag_and_drop(true),
|
|
..Default::default()
|
|
};
|
|
eframe::run_native(
|
|
logreadlite::strings::APP_NAME,
|
|
options,
|
|
Box::new(move |cc| Ok(Box::new(logreadlite::ui::App::new(cc, args)))),
|
|
)
|
|
}
|