M3.44: graphic styles keep opacity and blend, capture groups and type, add on Alt-click

Styles now store the object's opacity, blend mode, isolate and knockout and apply them.
New Graphic Style from a group without its own paint captures its topmost object's
appearance, and from type its characters' fill and stroke. Names are made unique.
graphicStyle.apply takes ids and add (Alt-click in the panel adds the style on top of the
existing appearance). graphicStyle.list reports every style. Applying links objects to a
stable style id (Node.graphic_style), which the management commands build on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bflatastic
2026-10-04 23:01:10 +07:00
co-authored by Claude Opus 5.5
parent 6bd27a05da
commit eb83efdb19
6 changed files with 864 additions and 106 deletions
+2
View File
@@ -772,6 +772,8 @@ mod tests_prefs;
#[cfg(test)]
mod tests_strokegeom;
#[cfg(test)]
mod tests_styles;
#[cfg(test)]
mod tests_swatches;
#[cfg(test)]
mod tests_textedit;