update egui
This commit is contained in:
12
Cargo.lock
generated
12
Cargo.lock
generated
@@ -658,7 +658,7 @@ checksum = "453440c271cf5577fd2a40e4942540cb7d0d2f85e27c8d07dd0023c925a67541"
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "eframe"
|
name = "eframe"
|
||||||
version = "0.18.0"
|
version = "0.18.0"
|
||||||
source = "git+https://github.com/Titaniumtown/egui.git#781eab1f563f17b3e20588184ce50ef85a6e6893"
|
source = "git+https://github.com/Titaniumtown/egui.git#2481889aadfab5622212f10a40035dab4af2e8f6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytemuck",
|
"bytemuck",
|
||||||
"egui",
|
"egui",
|
||||||
@@ -678,7 +678,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "egui"
|
name = "egui"
|
||||||
version = "0.18.1"
|
version = "0.18.1"
|
||||||
source = "git+https://github.com/Titaniumtown/egui.git#781eab1f563f17b3e20588184ce50ef85a6e6893"
|
source = "git+https://github.com/Titaniumtown/egui.git#2481889aadfab5622212f10a40035dab4af2e8f6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ahash",
|
"ahash",
|
||||||
"epaint",
|
"epaint",
|
||||||
@@ -690,7 +690,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "egui-winit"
|
name = "egui-winit"
|
||||||
version = "0.18.0"
|
version = "0.18.0"
|
||||||
source = "git+https://github.com/Titaniumtown/egui.git#781eab1f563f17b3e20588184ce50ef85a6e6893"
|
source = "git+https://github.com/Titaniumtown/egui.git#2481889aadfab5622212f10a40035dab4af2e8f6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arboard",
|
"arboard",
|
||||||
"egui",
|
"egui",
|
||||||
@@ -704,7 +704,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "egui_glow"
|
name = "egui_glow"
|
||||||
version = "0.18.1"
|
version = "0.18.1"
|
||||||
source = "git+https://github.com/Titaniumtown/egui.git#781eab1f563f17b3e20588184ce50ef85a6e6893"
|
source = "git+https://github.com/Titaniumtown/egui.git#2481889aadfab5622212f10a40035dab4af2e8f6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytemuck",
|
"bytemuck",
|
||||||
"egui",
|
"egui",
|
||||||
@@ -724,7 +724,7 @@ checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "emath"
|
name = "emath"
|
||||||
version = "0.18.0"
|
version = "0.18.0"
|
||||||
source = "git+https://github.com/Titaniumtown/egui.git#781eab1f563f17b3e20588184ce50ef85a6e6893"
|
source = "git+https://github.com/Titaniumtown/egui.git#2481889aadfab5622212f10a40035dab4af2e8f6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytemuck",
|
"bytemuck",
|
||||||
"serde",
|
"serde",
|
||||||
@@ -733,7 +733,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "epaint"
|
name = "epaint"
|
||||||
version = "0.18.1"
|
version = "0.18.1"
|
||||||
source = "git+https://github.com/Titaniumtown/egui.git#781eab1f563f17b3e20588184ce50ef85a6e6893"
|
source = "git+https://github.com/Titaniumtown/egui.git#2481889aadfab5622212f10a40035dab4af2e8f6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ab_glyph",
|
"ab_glyph",
|
||||||
"ahash",
|
"ahash",
|
||||||
|
|||||||
@@ -633,8 +633,19 @@ impl App for MathApp {
|
|||||||
self.last_info.1 = start.map(|a| format!("Took: {:?}", a.elapsed()));
|
self.last_info.1 = start.map(|a| format!("Took: {:?}", a.elapsed()));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_arch = "wasm32")]
|
|
||||||
fn save(&mut self, _: &mut dyn eframe::Storage) {
|
fn save(&mut self, _: &mut dyn eframe::Storage) {
|
||||||
|
#[cfg(target_arch = "wasm32")]
|
||||||
|
self.save_functions();
|
||||||
|
}
|
||||||
|
|
||||||
|
fn clear_color(&self, _visuals: &egui::Visuals) -> egui::Rgba {
|
||||||
|
crate::style::STYLE.window_fill().into()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl MathApp {
|
||||||
|
#[cfg(target_arch = "wasm32")]
|
||||||
|
fn save_functions(&self) {
|
||||||
tracing::info!("Saving function data");
|
tracing::info!("Saving function data");
|
||||||
let hash: crate::misc::HashBytes =
|
let hash: crate::misc::HashBytes =
|
||||||
unsafe { std::mem::transmute::<&str, crate::misc::HashBytes>(build::SHORT_COMMIT) };
|
unsafe { std::mem::transmute::<&str, crate::misc::HashBytes>(build::SHORT_COMMIT) };
|
||||||
@@ -647,8 +658,4 @@ impl App for MathApp {
|
|||||||
.set_item(FUNC_NAME, saved_data)
|
.set_item(FUNC_NAME, saved_data)
|
||||||
.expect("failed to set local function storage");
|
.expect("failed to set local function storage");
|
||||||
}
|
}
|
||||||
|
|
||||||
fn clear_color(&self, _visuals: &egui::Visuals) -> egui::Rgba {
|
|
||||||
crate::style::STYLE.window_fill().into()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user