Part of #978: the Color Wheel panel can gray out colors the CMYK space cannot print

The panel menu gains Show Out-of-Gamut Colors. While it is on, the wheel's
square and the box's color field draw gray over the cells of a 16 by 16 grid
whose colors fail the out-of-gamut warning's test (`Cms::out_of_gamut` on the
color a pick there would store). The grid is kept in panel state per channel,
strip value, color settings and loaded profiles, so it is computed again only
when one of them changes, including when a profile is loaded again under the
same name. `ui.colorWheel {gamut?}` sets it, and the setting is kept with the
preferences.
This commit is contained in:
dotCooCoo
2026-11-14 08:03:37 -08:00
parent 22b8c6ce5a
commit 804f844fcf
40 changed files with 443 additions and 36 deletions
+3 -3
View File
@@ -265,9 +265,9 @@ My Themes tab lists the saved themes; every action runs a command (`colorTheme.s
Color Wheel panel (`window.panel {panel: "colorWheel"}`): a hue ring around a saturation and brightness square. A
pick runs the commands the Color panel's sliders run: `paint.setFill` or `paint.setStroke` with `keepModel`,
`paint.editGradient` for a gradient's selected stop, and `paint.freeform.setPoint` for a freeform gradient's selected
point (the first stop or point when none is selected). `ui.colorWheel {view?, channel?}` shows the wheel or the box (a
color field with a channel strip at its right) and picks the box's channel; it returns the settings, and `ui.inspect`
reports them as `ui.color_wheel`.
point (the first stop or point when none is selected). `ui.colorWheel {view?, channel?, gamut?}` shows the wheel or
the box (a color field with a channel strip at its right), picks the box's channel, and with `gamut` grays out the
colors the CMYK space cannot print; it returns the settings, and `ui.inspect` reports them as `ui.color_wheel`.
Edit Colors dialogs: `ui.colorBalanceDialog` opens Adjust Colors (`colorBalance`: fields `mode` `gray`/`rgb`/`cmyk`/
`global`, the channels `r` `g` `b` / `c` `m` `y` `k` / `gray` / `tint` (global mode) from −100 to 100, `convert`, `fill`, `stroke`,