From d8997c3a879bd5cbbfb1554e15af3c5c2a6afc1d Mon Sep 17 00:00:00 2001 From: jem Date: Fri, 14 Jul 2023 17:34:12 +0100 Subject: [PATCH] always dark --- dist/index.html | 6 +++--- ...js => laser-simulator-d645806237deb38f.js} | 2 +- ... laser-simulator-d645806237deb38f_bg.wasm} | Bin 2503317 -> 2503330 bytes src/lib.rs | 3 ++- 4 files changed, 6 insertions(+), 5 deletions(-) rename dist/{laser-simulator-446c3816ce720645.js => laser-simulator-d645806237deb38f.js} (99%) rename dist/{laser-simulator-446c3816ce720645_bg.wasm => laser-simulator-d645806237deb38f_bg.wasm} (99%) diff --git a/dist/index.html b/dist/index.html index b279ad4..90360ea 100644 --- a/dist/index.html +++ b/dist/index.html @@ -8,7 +8,7 @@ Laser Simulator - + @@ -110,8 +110,8 @@ - - + + diff --git a/dist/laser-simulator-446c3816ce720645.js b/dist/laser-simulator-d645806237deb38f.js similarity index 99% rename from dist/laser-simulator-446c3816ce720645.js rename to dist/laser-simulator-d645806237deb38f.js index 4df9d07..9a6d9a4 100644 --- a/dist/laser-simulator-446c3816ce720645.js +++ b/dist/laser-simulator-d645806237deb38f.js @@ -1391,7 +1391,7 @@ async function __wbg_init(input) { if (wasm !== undefined) return wasm; if (typeof input === 'undefined') { - input = new URL('laser-simulator-446c3816ce720645_bg.wasm', import.meta.url); + input = new URL('laser-simulator-d645806237deb38f_bg.wasm', import.meta.url); } const imports = __wbg_get_imports(); diff --git a/dist/laser-simulator-446c3816ce720645_bg.wasm b/dist/laser-simulator-d645806237deb38f_bg.wasm similarity index 99% rename from dist/laser-simulator-446c3816ce720645_bg.wasm rename to dist/laser-simulator-d645806237deb38f_bg.wasm index ab6c7b40528bcf1fd3da5ae3ebc059a1fc722dbd..efc9aecddd3c1a77c59a02106d80b9c9dd401a5c 100644 GIT binary patch delta 241 zcmWN?yH3JT0D$3hsRu->#R^^kJ*CuvnM0Z|@h07Q1~tZ^PhfO3c4A{Yi;H~#XI{X8 zoy8Cm{^85__V*#bu=;WG|Fw2y?IaX50$;nM$u|E@b^NTKnvbcNf9l21jD(fZyRjx( z23FEeTQOF7(z9kRrfRKtt$Z>zFKwyIYG%+t6US)b1g8jb=BwHH_eSo^B8$+*1!7#H dgD$RcjT_vehdu_l!#yk#43T1l%oo{%3lB;`N$das delta 228 zcmWN?I}QOs0D$3{UB>(UelKekBq}2km0P%jI07PyJ%Lb)6KuDQX7>~>ppYn)3V-qC zyT7jT3@^~~a|*Q^Y6$}-B7Uf&v+pFZ&C3U0r7~)7Ei4@YvAnSX}+~X~O?$*hpfFepLqk<}GsH1@`1-< diff --git a/src/lib.rs b/src/lib.rs index cb280f5..685de60 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,7 +4,7 @@ use std::collections::VecDeque; use std::f32::consts::PI; use egui::plot::{Line, Plot, PlotPoints}; -use egui::{Align2, Color32, FontId, Pos2, Rect, RichText, Stroke}; +use egui::{Align2, Color32, FontId, Pos2, Rect, RichText, Stroke, Visuals}; use glam::Vec2; use rand::Rng; @@ -456,6 +456,7 @@ impl App { impl eframe::App for App { fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) { ctx.request_repaint(); + ctx.set_visuals(Visuals::dark()); let dt = self.dt; egui::CentralPanel::default().show(&ctx, |ui| { ui.visuals_mut().override_text_color = Some(Color32::WHITE.linear_multiply(0.5));