This commit is contained in:
Simon Gardling
2022-06-12 15:21:10 -04:00
parent 05ca9f5946
commit e40d6be883
3 changed files with 15 additions and 11 deletions

View File

@@ -53,7 +53,11 @@ cfg_if::cfg_if! {
// Used in order to hook into `panic!()` to log in the browser's console
tracing_wasm::set_as_global_default();
eframe::start_web("canvas", Box::new(|cc| Box::new(math_app::MathApp::new(cc))))
eframe::start_web("canvas", eframe::WebOptions {
follow_system_theme: false,
default_theme: eframe::Theme::Dark
},
Box::new(|cc| Box::new(math_app::MathApp::new(cc))))
}
}
}

View File

@@ -547,7 +547,7 @@ impl App for MathApp {
.resizable(false)
.collapsible(false)
.show(ctx, |ui| {
ui.add(egui::Label::new(&*BUILD_INFO));
ui.add(egui::Label::new(BUILD_INFO));
if let Some(ref took) = self.last_info.1 {
ui.label(took);