Skip to content

Move Fill/Stroke paint flow to graphic-list values#4257

Draft
YohYamasaki wants to merge 11 commits into
GraphiteEditor:masterfrom
YohYamasaki:use-graphic-list-in-fill-stroke-nodes
Draft

Move Fill/Stroke paint flow to graphic-list values#4257
YohYamasaki wants to merge 11 commits into
GraphiteEditor:masterfrom
YohYamasaki:use-graphic-list-in-fill-stroke-nodes

Conversation

@YohYamasaki

Copy link
Copy Markdown
Contributor

WIP

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the Fill and Stroke nodes to use a modern value-model, introducing the type-erased AnyGraphicListDyn to accept various renderable list types without monomorphization. It updates properties UI, document migration logic, and tests to align with these changes. Feedback on the changes highlights an issue where setting a gradient fill on a previously node-connected input fails to utilize the new value-model because get_fill_node_id_with_value returns None. To resolve this, it is suggested to explicitly set the FillInput to a literal Gradient value at the start of the Fill::Gradient match arm to disconnect any upstream node.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@YohYamasaki YohYamasaki force-pushed the use-graphic-list-in-fill-stroke-nodes branch from 8fcc653 to 9391c56 Compare June 20, 2026 08:57
@YohYamasaki YohYamasaki force-pushed the use-graphic-list-in-fill-stroke-nodes branch from ab229aa to d84685d Compare June 21, 2026 14:08
@YohYamasaki YohYamasaki force-pushed the use-graphic-list-in-fill-stroke-nodes branch from 235f417 to 93582a3 Compare June 22, 2026 01:00
…crete types

Store fill/stroke paints as List<Graphic> so Color/Gradient transitions
do not hit set_attribute_value_dyn's type-mismatch fallback to default paint.
@YohYamasaki YohYamasaki changed the title Use any graphic List<T> in 'Fill' and 'stroke' nodes Move Fill/Stroke paint flow to graphic-list values Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant