update
This commit is contained in:
@@ -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))))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user