Repository navigation
Visual Editor: Share color and opacity editing controls - #13729
Merged
Merged
Conversation
NigelBreslaw
marked this pull request as ready for review
September 30, 2026 08:04
Member
|
@claude review. Among the usual things, also check if the RefCell is really needed there (my guess is that it isn't) |
|
Claude finished @tronical's task in 1m 6s —— View job Review of #13729I read the whole diff. I did not build it or run the UI tests. Is the
|
NigelBreslaw
force-pushed
the
nigel/visual-editor-color-fields
branch
from
September 30, 2026 15:41
ff562f5 to
5f7f862
Compare
ChangeLog: Unify color and opacity editing across Visual Editor fill controls.
Delete unused conversion callbacks and color data. Share draft edit and scrub handlers through the color value field while retaining the inspector's transaction overrides. Use the shared opacity width for gradient headings and format RGB display text directly in uppercase.
Reuse the previous stop-index model when the sorted sequence is unchanged. Returning a fresh model recreated the rows after each preview and dropped pointer capture. Cover continuous opacity scrubbing, reversal, cancellation, and atomic source history through pointer-driven UI tests.
…crubs Capture the color before the first text edit so intermediate RGBA prefixes cannot replace the alpha preserved by subsequent RGB input. Capture the complete color when an opacity scrub begins and restore it on cancellation instead of reconstructing alpha from a rounded percentage. Add keyboard and pointer regressions for solid pickers, stop pickers, and inline gradient rows, including new edits after acceptance or focus loss.
Use Cell to retain the sorted index model without a runtime borrow. Cover partial hex input and Escape cancellation in inline gradient rows. Check unchanged source and restored color and opacity after reopening.
Use retrying assertions and replace the removed label lookup helper. Keep a fixed scrubber handle to detect destroyed rows during pointer capture.
NigelBreslaw
force-pushed
the
nigel/visual-editor-color-fields
branch
from
October 2, 2026 13:43
5f7f862 to
03e90c8
Compare
tronical
approved these changes
Oct 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


The Visual Editor's inspector, picker, gradient-stop rows, and gallery use separate color controls with different editing behavior. They also all look different.
Share one
InspectorColorValueFieldfor RGB and opacity editing across these surfaces.Gradient-stop rows now support inline color and opacity edits.
Source expressions and gradient fields retain their existing display and picker behavior.
Give drop-shadow and inner-shadow colors a full-width row above the angle control so the hex value stays readable.
Keep parsing, alpha preservation, and canonical formatting in Rust.
Remove unused conversion APIs, duplicate callback forwarding, and obsolete gradient-row styling.
The inspector retains its explicit commit and cancellation handlers.
Reuse the sorted stop-index model when its sequence is unchanged.
Color previews and selection changes therefore preserve gradient row controls and pointer capture.