Repository navigation
M3: Color Guide Limit to Library, Edit or Apply without art, Color Themes panel (M3.95, M3.96) - #60
Merged
Merged
Conversation
The Color Guide's library button opens a Limit to Library popup (None, Document Swatches, the colour libraries): every harmony colour and variation snaps to the nearest colour there (CIEDE2000), cached per inputs so the grid isn't re-snapped every frame. `color.harmony` takes `limitTo`, `ui.colorGuideLimit` sets the panel's limit, and Recolor Artwork's Limit to Library also offers the document's swatches (one shared engine helper, swatchlib::limit_palette). Edit or Apply Colors opens Recolor with the harmony colours limited to the same library; with no art selected the colours are the rows and OK saves them as a new colour group. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Window → Color Themes: the Create tab makes a five-colour theme on a
harmony wheel (a harmony rule from the selected colour, colours moving
together; or Custom, each on its own), with a brightness slider, hex
field, current-colour picker and name; the My Themes tab lists saved
themes to edit, add to Swatches as a colour group, or delete. Themes are
kept in the preferences (Prefs::color_themes; no online service).
Commands: colorTheme.list, colorTheme.save {colors | color + rule, name?,
replace?}, colorTheme.delete, colorTheme.addToSwatches. Harmony::theme
and move_on_wheel live in the colour crate; the wheel is now a shared
widget (widgets::harmony_wheel) used by Recolor Artwork's Edit tab too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Part of M3 (Paint & appearance). The Color Guide can be limited to a swatch library, Edit or Apply Colors works without art, and a local Color Themes panel makes, saves and applies five-colour themes. Color Themes has no online service.
PalettethroughGuide::limited, cached per base, rule, options, limit and document revision.color.harmony {limitTo?}takes a library id or name, or"document".ui.colorGuideLimit {library}sets the panel's limit, whichui.inspectreports.swatchlib::limit_paletteandlimit_paramalso serve Recolor, so Recolor's Limit to Library accepts Document Swatches too.ui.recolorDialog {colors}opens on the colours alone and OK saves them as a colour group.colorTheme.list,colorTheme.save {colors | color + rule, name?, replace?},colorTheme.delete, andcolorTheme.addToSwatches(one undo step, throughswatch.newGroup).Prefs::color_themes, written only when there are some, and kept by Reset Preferences.Harmony::themefills a rule out to five colours.widgets::harmony_wheel, used by both.docs/mcp.mdanddocs/control-protocol.mdcover the commands and the panel.Checks
Rebased onto
96a1a02.cargo xtask cipasses all 7 steps (fmt, clippy, test, assets, brands, layers, wasm): 1,886 tests, 0 failed.🤖 Generated with Claude Code