mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 11:51:05 +01:00
Part of #978: Show Opacity in the Color Wheel panel sets the opacity of the fill or stroke
The Color Wheel panel menu gets Show Opacity, kept with the preferences
(`ui.colorWheel {opacity}`). It adds a row under the wheel or the box with
a slider and a percent field. The row sets the opacity of the fill or
stroke item, the selected gradient stop or the selected freeform point
(the first stop or point when none is selected, as for a color pick), and
a drag is one undo step. The row is gray with nothing selected, for an
object selected in a symbol instance, and when the fill or stroke item it
would set is on type characters or missing.
- paint.setFill and paint.setStroke take `opacity` (a percentage, 0 to
100), with or without a new paint. An opacity that no target takes is
an error and leaves the paint undone too. paint.proxies answers
`fillOpacity` and `strokeOpacity` from the first row the command would
edit. A graph series keeps the opacity on regeneration.
- The opacity slider and the swatch chips draw the same checkerboard.
- New error and menu strings have rows in the catalogs.
Docs: docs/mcp.md, docs/control-protocol.md, docs/target-app-parity.md.
This commit is contained in:
1 parent
22b8c6ce5a
commit
4f065ccbbf
46 files changed
+1227
-110
No files matched your search
@@ -265,9 +265,10 @@ 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?, opacity?}` shows the wheel or
|
||||
the box (a color field with a channel strip at its right), picks the box's channel and checks or unchecks Show Opacity
|
||||
(an opacity row under the wheel or the box); 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`,
|
||||
|
||||
Reference in new issue
Block a user