From 5f8ce5abf65d40177d628df16a873359da767959 Mon Sep 17 00:00:00 2001 From: KonaeAkira Date: Tue, 31 Dec 2024 03:29:40 +0100 Subject: [PATCH] Fix modal sizing & Remove unnecessary spaces in rotation info --- src/app.rs | 3 ++- src/widgets/saved_rotations.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app.rs b/src/app.rs index 0f304a4..a490563 100644 --- a/src/app.rs +++ b/src/app.rs @@ -165,6 +165,7 @@ impl eframe::App for MacroSolverApp { if self.solver_pending { egui::Modal::new(egui::Id::new("solver_busy")).show(ctx, |ui| { ui.style_mut().spacing.item_spacing = egui::vec2(8.0, 3.0); + ui.set_width(180.0); ui.horizontal(|ui| { ui.spinner(); ui.vertical(|ui| { @@ -182,7 +183,7 @@ impl eframe::App for MacroSolverApp { )); }); if self.solver_progress == 0 { - ui.label("initializing solver"); + ui.label("computing dp tables"); } else { // format with thousands separator let num = self diff --git a/src/widgets/saved_rotations.rs b/src/widgets/saved_rotations.rs index 53629c0..a8055a6 100644 --- a/src/widgets/saved_rotations.rs +++ b/src/widgets/saved_rotations.rs @@ -32,7 +32,7 @@ impl Rotation { solver_config: &SolverConfig, ) -> Self { let solver_params = format!( - "Raphael v{} {} {} {}", + "Raphael v{}{}{}{}", env!("CARGO_PKG_VERSION"), match solver_config.backload_progress { true => " +backload",