Object Styles: an icon group of its own after the paragraph and character styles

The styles group stays Character and Paragraph Styles, as the floating
styles group and its tests expect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
moppeeerandClaude Opus 5.5 committed 2026-10-30 18:04:24 +01:00
1 parent e0b8e593e3
commit 332dd539b2
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -114,7 +114,8 @@ impl Placed {
const ICON_GROUPS: &[&[&str]] = &[
&["stroke", "color", "swatches", "gradient"],
&["effects"],
&["characterStyles", "paragraphStyles", "objectStyles"],
&["characterStyles", "paragraphStyles"],
&["objectStyles"],
&["character", "paragraph", "typography"],
&["glyphs", "story"],
&["table"],
+1 -1
View File
@@ -881,7 +881,7 @@ fn placed_panels_leave_their_icon_groups() {
let column = icon_column(None, &mut placed).unwrap();
let groups: Vec<Vec<&str>> = column.groups.iter().map(|g| g.panels.iter().map(String::as_str).collect()).collect();
assert_eq!(groups.first().unwrap(), &["stroke", "color", "gradient"]);
assert_eq!(groups.get(1).unwrap(), &["characterStyles", "paragraphStyles", "objectStyles"]);
assert_eq!(groups.get(1).unwrap(), &["characterStyles", "paragraphStyles"]);
assert_eq!(groups.len(), ICON_GROUPS.len() - 1);
}