Concept to Vector: group the panel's commands under Window › Concept to Vector

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.
This commit is contained in:
dotCooCoo committed 2026-12-04 18:22:25 -08:00
1 parent 6a84088dc8
commit 70dc7cf536
2 files changed
+5 -4

No files matched your search

@@ -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}");
+2
View File
@@ -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"));
}
}