Repository navigation
feat(extensions): honor normalized fill pattern background colors - #11167
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 29d15e97a1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
[Medium impact] The PR appears safe to merge. SummaryAdds support for normalized fill-pattern background colors while keeping byte storage and the transparent default.
Reviews (2) · Last reviewed commit: "fix(extensions): preserve color trigger ..." · Reviewed by Greptile |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 29d15e9. Configure here.
chrisgervang
left a comment
There was a problem hiding this comment.
Reviewed 9744c45 after merge; follow-ups below. No P1s. The background is converted once: top-level primitives pack it through semanticType: 'color', composites convert it in getSubLayerProps, and children skip it.
Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.
Generated by Claude Code
| behind the pattern unfilled. With Deck’s [`normalizedColors`](../core/deck.md#normalizedcolors) | ||
| option, plain arrays use 0–1 channels. Omitted alpha is opaque. Use 0–255 channels in | ||
| legacy mode or with byte typed arrays. |
There was a problem hiding this comment.
Non-blocking: These sentences restate the rule from the Normalized colors guide. Could one sentence link there?
| behind the pattern unfilled. With Deck’s [`normalizedColors`](../core/deck.md#normalizedcolors) | |
| option, plain arrays use 0–1 channels. Omitted alpha is opaque. Use 0–255 channels in | |
| legacy mode or with byte typed arrays. | |
| behind the pattern unfilled. Channels are 0–255, or 0–1 with Deck's | |
| [`normalizedColors`](../../developer-guide/using-layers.md#normalized-colors). |
Generated by Claude Code

For #11146. Apply the Deck plain-array color convention to FillStyleExtension backgrounds on primitive layers and when forwarded through a composite. Preserve the transparent default and byte attribute storage.
Validation
Note
Low Risk
Low risk; scoped to
FillStyleExtensionbackground color handling and preserves legacy behavior whennormalizedColorsis not enabled.Overview
Adds support for Deck's
normalizedColorsmode toFillStyleExtension'sgetFillPatternBackgroundColoraccessor.The extension now marks
fillPatternBackgroundColorswithsemanticType: 'color'for primitive layers and implementsgetSubLayerPropsto convert normalized[0, 1]color values into byte arrays for sublayers while maintaining update trigger tracking. Default fully transparent backgrounds and byte typed arrays continue to be handled without conversion.Reviewed by Cursor Bugbot for commit 9744c45. Bugbot is set up for automated code reviews on this repo. Configure here.