Skip to content

Commit

Permalink
Fix modal sizing & Remove unnecessary spaces in rotation info
Browse files Browse the repository at this point in the history
  • Loading branch information
KonaeAkira committed Dec 31, 2024
1 parent dfd5a2a commit 5f8ce5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/saved_rotations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5f8ce5a

Please sign in to comment.