WIP: Use List<Graphic> to render Color & Gradient

This commit is contained in:
YohYamasaki
2026-05-20 11:17:28 +09:00
parent 746d78364c
commit 1adeb4cedd
5 changed files with 116 additions and 32 deletions
@@ -2393,6 +2393,7 @@ impl DocumentMessageHandler {
let has_fill = !matches!(style.fill, Fill::None);
// `style.stroke` is `Some` whenever a `Stroke` node is in the chain, even with weight 0 or a transparent color.
// So `is_some()` would treat invisibly-stroked fill-only layers as having a stroke.
// FIXME: Consider if we need to check ATTR_STROKE_PAINT_GRAPHIC
let has_stroke = style.stroke.as_ref().is_some_and(|s| s.has_renderable_stroke());
// No stroke means there's nothing to solidify. Fill-only layers are already in the desired form, so skip.