mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-16 15:24:44 +00:00
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:
1 parent
e0b8e593e3
commit
332dd539b2
2 files changed
+3
-2
No files matched your search
@@ -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"],
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user