From aaa46003d515698573cae2e9c5c2416e49e534dc Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 8 Oct 2026 18:34:35 +0000 Subject: [PATCH] Fix #316: the header keeps its hover shade while the pointer is on the eye Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01912WaK6Rmew3wxZuPyX7E8 --- crates/ui-egui/src/widgets.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-egui/src/widgets.rs b/crates/ui-egui/src/widgets.rs index 907bae10..e5d890d7 100644 --- a/crates/ui-egui/src/widgets.rs +++ b/crates/ui-egui/src/widgets.rs @@ -263,7 +263,7 @@ pub fn section_header(ui: &mut Ui, id: &str, title: &str, open: bool, enabled: O resp.widget_info(|| egui::WidgetInfo::selected(egui::WidgetType::CollapsingHeader, true, open, title)); register(ui.ctx(), format!("section:{id}"), r); let p = ui.painter(); - if resp.hovered() { + if ui.rect_contains_pointer(r) { p.rect_filled(r, 0.0, t.chrome.gamma_multiply(1.06)); } let chev = Rect::from_center_size(pos2(r.left() + 30.0, r.center().y), vec2(14.0, 14.0));