SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.
Parameters: outline the Delete button only on hover (#1178) (#1241)
DuBeartec008addae215
diff --git a/crates/ui-egui/src/params_dialog.rs b/crates/ui-egui/src/params_dialog.rsindex 408304c3a5..906d102b8b 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 {