Refactored UI strings into cental location
This commit is contained in:
1 parent
8755fec633
commit
8c6dec9062
14 files changed
+605
-251
No files matched your search
+6
-2
@@ -6,11 +6,15 @@ 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")
|
||||
.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", options, Box::new(move |cc| Ok(Box::new(logreadlite::ui::App::new(cc, args)))))
|
||||
eframe::run_native(
|
||||
logreadlite::strings::APP_NAME,
|
||||
options,
|
||||
Box::new(move |cc| Ok(Box::new(logreadlite::ui::App::new(cc, args)))),
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user