From ab17551913d3acab4893f0e91452a444f5fa17d6 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sat, 31 Oct 2026 10:56:54 -0400 Subject: [PATCH] Follow-ups to #2690 and #2684: app context-menu style; doc comment back on its test Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/header.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/ui-egui/src/header.rs b/crates/ui-egui/src/header.rs index bb233b2cb..df1e61e8d 100644 --- a/crates/ui-egui/src/header.rs +++ b/crates/ui-egui/src/header.rs @@ -434,7 +434,7 @@ fn workspace_tabs(app: &mut EffectcraftApp, ui: &mut egui::Ui, p: &egui::Painter // Right-clicking a workspace opens the same options as the ยป button, which is where After // Effects keeps them (reset, save, save a copy, edit). let target = name.to_string(); - resp.context_menu(|ui| ws_menu(app, ui, &target)); + crate::widgets::context_menu(&resp, |ui| ws_menu(app, ui, &target)); } } @@ -979,10 +979,6 @@ mod tests { assert!(!app.auto.elements.iter().any(|w| w.id == "tools.select.TypeVertical")); } - /// Double-clicking a creation tool in the Tools bar makes an instance of what it draws - /// (#1072): with nothing selected a shape layer whose shape fills the comp, into the selected - /// shape layer's Contents, a mask on a non-shape layer, a text layer from the Type tools. - /// Tools that create nothing stay quiet. /// Alt/Option-click cycles a Tools-bar flyout slot without opening the menu. #[test] fn alt_click_cycles_the_type_slot() { @@ -1051,6 +1047,10 @@ mod tests { assert!(app.session.state.text_edit.is_none()); } + /// Double-clicking a creation tool in the Tools bar makes an instance of what it draws + /// (#1072): with nothing selected a shape layer whose shape fills the comp, into the selected + /// shape layer's Contents, a mask on a non-shape layer, a text layer from the Type tools. + /// Tools that create nothing stay quiet. #[test] fn double_clicking_creation_tools_makes_instances() { let mut s = effectcraft_engine::Session::default();