-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.rs
44 lines (40 loc) · 1020 Bytes
/
main.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
#[macro_use]
extern crate serde_derive;
use anyhow::Result;
use constants::APP_ICON;
use eframe::egui;
// use eframe::egui::{Style, Visuals};
mod app;
mod constants;
mod df_binary;
mod dict_metadata;
mod hook_metadata;
mod localization;
mod logic;
mod persistent;
mod thread_pool;
mod utils;
fn main() -> Result<(), eframe::Error> {
env_logger::init();
let options = eframe::NativeOptions {
viewport: egui::ViewportBuilder::default()
.with_inner_size([720., 450.])
.with_resizable(false)
.with_icon(eframe::icon_data::from_png_bytes(APP_ICON).unwrap()),
..Default::default()
};
eframe::run_native(
"DF localization installer",
options,
Box::new(|cc| {
// let style = Style {
// visuals: Visuals::light(),
// ..Style::default()
// };
// cc.egui_ctx.set_style(style);
egui_extras::install_image_loaders(&cc.egui_ctx);
Box::<app::App>::default()
}),
)
}