28 lines
602 B
Rust
28 lines
602 B
Rust
#![windows_subsystem = "windows"]
|
|
|
|
mod app;
|
|
mod book;
|
|
mod font;
|
|
mod persistence;
|
|
mod reader;
|
|
mod style;
|
|
mod texture;
|
|
mod theme;
|
|
|
|
fn main() -> eframe::Result {
|
|
let native_options = eframe::NativeOptions {
|
|
viewport: eframe::egui::ViewportBuilder::default()
|
|
.with_inner_size([900.0, 700.0])
|
|
.with_min_inner_size([600.0, 400.0]),
|
|
..Default::default()
|
|
};
|
|
eframe::run_native(
|
|
"ePub Reader",
|
|
native_options,
|
|
Box::new(|cc| {
|
|
font::setup_fonts(&cc.egui_ctx);
|
|
Ok(Box::new(app::App::new(cc)))
|
|
}),
|
|
)
|
|
}
|