From 70dc7cf536e01cb3a468ca69bdf125c5c831d42d Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Fri, 4 Dec 2026 18:22:25 -0800 Subject: [PATCH] =?UTF-8?q?Concept=20to=20Vector:=20group=20the=20panel's?= =?UTF-8?q?=20commands=20under=20Window=20=E2=80=BA=20Concept=20to=20Vecto?= =?UTF-8?q?r?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Keyboard Shortcuts listed Generate Concept to Vector Styles and Cancel Concept to Vector under "Ui", the capitalized first part of their ids, because no menu holds them and GROUPS had no row for them. They now go under the panel's Window menu item, as other panels' commands do. The panel test checks the first and last offline style labels instead of every entry of the style table. --- crates/ui-egui/src/panels/concept_vector/tests.rs | 7 +++---- crates/ui-egui/src/shortcut_editor.rs | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/ui-egui/src/panels/concept_vector/tests.rs b/crates/ui-egui/src/panels/concept_vector/tests.rs index db8c1313cc..0b4ac9d771 100644 --- a/crates/ui-egui/src/panels/concept_vector/tests.rs +++ b/crates/ui-egui/src/panels/concept_vector/tests.rs @@ -128,12 +128,11 @@ fn properties_and_the_control_bar_offer_it() { fn the_panel_shows_offline_styles_a_disabled_prompt_and_why_it_cannot_run() { let mut app = app(); let text = painted_text(&mut app, show); - for s in ["Offline Image Trace styles, made on this computer", "Offline styles do not use prompts", "Detail", "5 / 8", "Generate"] { + // The provider's first and last styles stand for the check box of each. + let shown = ["Offline Image Trace styles, made on this computer", "Offline styles do not use prompts", "Outline", "Gray Tones", "Detail", "5 / 8", "Generate"]; + for s in shown { assert!(text.contains(s), "{s}: {text}"); } - for s in &offline::STYLES { - assert!(text.contains(s.label), "{}: {text}", s.label); - } app.run("select.none", json!({})).unwrap(); let text = painted_text(&mut app, show); assert!(text.contains("select one image or an unexpanded Image Trace object"), "{text}"); diff --git a/crates/ui-egui/src/shortcut_editor.rs b/crates/ui-egui/src/shortcut_editor.rs index d32575ef9c..4448b28ff8 100644 --- a/crates/ui-egui/src/shortcut_editor.rs +++ b/crates/ui-egui/src/shortcut_editor.rs @@ -534,6 +534,7 @@ const GROUPS: &[(&str, &str)] = &[ ("ui.colorGuideOptions", "Window › Color Guide"), ("ui.colorPicker", "Color"), ("ui.colorRgbPercent", "Window › Color"), + ("ui.conceptVector.", "Window › Concept to Vector"), ("ui.corners", "Window › Transform"), ("ui.dialogReset", "Dialogs"), ("ui.dxfOptionsDialog", "File"), @@ -3061,6 +3062,7 @@ mod tests { assert_eq!(group("ui.recolorDialog").as_deref(), Some("Edit › Edit Colors")); assert_eq!(group("ui.rename").as_deref(), Some("Window › Layers")); assert_eq!(group("ui.justification").as_deref(), Some("Window › Paragraph")); + assert_eq!(group("ui.conceptVector.cancel").as_deref(), Some("Window › Concept to Vector")); assert_eq!(group("addon.pathtools.cornerRemove").as_deref(), Some("Object › Plug-ins › Path Precision Tools")); } }