From 7135a377f8e5eb55304cf81b8c0f638cf418fd7c Mon Sep 17 00:00:00 2001 From: Fabian Grajales Date: Wed, 14 Oct 2026 19:12:41 -0500 Subject: [PATCH] Panel menus light up under the pointer, like the menu bar's MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Panel (≡) menu rows, and the Control bar's image menu, had no frame at all, so nothing showed which row the pointer was on. They now draw the hover frame the menu bar's items draw. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/widgets.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/widgets.rs b/crates/ui-egui/src/widgets.rs index 5a7341473..82b33f42c 100644 --- a/crates/ui-egui/src/widgets.rs +++ b/crates/ui-egui/src/widgets.rs @@ -1566,9 +1566,10 @@ pub fn menu_item(ui: &mut Ui, label: &str, enabled: bool, checked: bool) -> bool } /// [`menu_item`] for a name that is user or file data (a library, a recent URL), never translated. +/// Like the menu bar's items, the row lights up under the pointer. pub fn menu_item_name(ui: &mut Ui, label: &str, enabled: bool, checked: bool) -> bool { let text = if checked { format!("✓ {label}") } else { format!(" {label}") }; - ui.add_enabled(enabled, egui::Button::new(egui::RichText::new(text).size(12.5)).frame(false)).clicked() + ui.add_enabled(enabled, egui::Button::new(egui::RichText::new(text).size(12.5)).frame_when_inactive(false)).clicked() } /// A number field that may be empty (Stroke dash/gap): `value` (points) shows in `unit` without