From c008addae21532acfa0f3407a3f5eec9ed3b7831 Mon Sep 17 00:00:00 2001 From: DuBearte <130190089+DuBearte@users.noreply.github.com> Date: Wed, 14 Oct 2026 21:45:09 -0400 Subject: [PATCH] Parameters: outline the Delete button only on hover (#1178) (#1241) The Delete button in each parameter row shows its outline on hover, like the fields beside it; the redundant tooltip is gone. Fixes #1178. --- crates/ui-egui/src/params_dialog.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/ui-egui/src/params_dialog.rs b/crates/ui-egui/src/params_dialog.rs index 408304c3..906d102b 100644 --- a/crates/ui-egui/src/params_dialog.rs +++ b/crates/ui-egui/src/params_dialog.rs @@ -327,11 +327,8 @@ fn table(app: &mut SolveApp, ui: &mut egui::Ui, d: &mut ParamsDialog, rows: &[&R } // Delete (user parameters; refused while used, the message says by what). if r.source == "user" { - if ui - .add(egui::Button::new(RichText::new("Delete").small().color(t.text_dim)).frame(false)) - .on_hover_text(crate::i18n::tr_label("Delete this parameter")) - .clicked() - { + // Outlined on hover like the expression and comment fields; the label says what it does. + if ui.add(egui::Button::new(RichText::new("Delete").small().color(t.text_dim)).frame_when_inactive(false)).clicked() { d.error = app.run("parameters.delete", json!({"name": r.name})).err(); } } else {