Commit Graph
565 Commits
Author SHA1 Message Date
dotCooCoo 144aec7dfc Merge main into fix/tool-set-option-errors 2026-11-15 20:22:03 -08:00
dotCooCoo b8c03fbe45 Merge main into feat/recolor-edit-base-color-menus 2026-11-15 19:41:18 -08:00
dotCooCoo d7b0bc0e4d Merge main into feat/recolor-group-storage 2026-11-15 18:42:52 -08:00
dotCooCoo 3a2d2eda33 Merge main into feat/recolor-add-remove-color-tools 2026-11-15 18:36:18 -08:00
dotCooCoo 3336c00194 Merge main into feat/recolor-edit-base-color-menus 2026-11-15 16:07:44 -08:00
dotCooCoo 034f9ce9bc Merge main into feat/recolor-add-remove-color-tools 2026-11-15 16:06:06 -08:00
dotCooCoo 501567a704 Merge main into fix/tool-set-option-errors 2026-11-15 13:58:40 -08:00
dotCooCoo a075bfbffd Recolor Artwork: an excluded row keeps its color group swatch
OK on a color group sent an excluded row's new color in groupColors, so
the group's swatch at that place changed (or was removed after Remove
Color) while the row's art kept its colors. The dialog now sends "keep"
for an excluded row with current colors. recolor.apply takes "keep" in
groupColors: the swatch at that place stays as it is, without Global
Adjust, Limit to Library or the document's model, and past the group's
last swatch it adds none.
2026-11-15 13:58:25 -08:00
dotCooCoo 729651e470 Merge main into feat/psd-preserve-text-editability 2026-11-15 13:45:05 -08:00
dotCooCoo 4327c51f57 PSD: Preserve Text Editability writes point type as editable type layers
The PSD Options dialog gets Preserve Text Editability, and document.export
takes preserveText (with layers). Horizontal and vertical point type is
written as a type layer (a TySh block with its EngineData) that a reader
can edit, and keeps its pixels. The layer holds the text, its fonts by
PostScript name, size, leading, tracking, scaling, baseline shift, caps,
underline, strikethrough, fill color, Fractional Widths, paragraph
alignment and orientation.

Type that a type layer would draw differently stays pixels: area type,
type on a path, strokes, non-solid fills, fractional tracking, character
attributes the layer does not carry, paragraphs that set more than their
alignment or run right to left, System Layout, Optical Margin Alignment,
ruby, effects, an appearance of its own and opacity masks. A layer that
holds type becomes a group of its type layers and pixel layers of the art
between them, unless other art in it blends in a mode other than Normal.
2026-11-15 12:07:06 -08:00
dotCooCoo 20413c6c3d Recolor Artwork: new text uses American spelling and a neutral link label 2026-11-15 11:32:12 -08:00
dotCooCoo a1aa6ddc01 Recolor Artwork: an added color whose row is excluded joins no color group 2026-11-15 11:31:36 -08:00
dotCooCoo 2e082dcb22 Merge main into feat/recolor-group-storage 2026-11-15 11:07:12 -08:00
dotCooCoo 6fd1b1dcb1 Merge main into feat/recolor-group-storage 2026-11-15 11:06:13 -08:00
dotCooCoo 71bceccdfd Merge main into feat/recolor-edit-base-color-menus 2026-11-15 10:53:54 -08:00
dotCooCoo 78e56b6d7a Recolor Artwork: an added color whose row is excluded joins no color group 2026-11-15 09:16:17 -08:00
dotCooCoo fdeb3a6ab3 Merge main into fix/tool-set-option-errors
# Conflicts:
#	crates/ui-egui/src/toolbar.rs
2026-11-15 09:11:04 -08:00
dotCooCoo be4dab1e8c Merge main into feat/recolor-add-remove-color-tools 2026-11-15 09:08:28 -08:00
dotCooCoo c0550a00a7 Recolor Artwork: Edit tab right-click menus set the base color, pick a shade and add colors
A right-click on a wheel marker or a color bar offers Set As Base Color,
Select Shade (a 7 by 7 grid of the color's hue), Color Picker and Remove
Color. A right-click elsewhere on the wheel offers Add New Color, and a
color added on a marker's line moves with that marker while the colors
are unlinked. Set Current Color As Base Color makes the selected color
the base.

The base color is stored on its row (`base: true`) instead of being the
first selected row, so the harmony rules build from it whichever color
is selected for the sliders. Merge, Separate, Randomize and Prominent
Colors keep the marks, and the rows sent to `recolor.apply` leave them
out.
2026-11-15 09:07:57 -08:00
dotCooCoo f1f4d629e8 Panels: the double triangle on a panel's tab strip cycles its display sizes
A double triangle at the right end of the tab strip of Align, Attributes,
Character, Color, Flattener Preview, Gradient, Info, Paragraph, Stroke,
Transform and Transparency steps the active panel through its display
sizes. The sizes are the states the panel menu's Show/Hide Options items
set (Transparency: thumbnails and options, thumbnails alone, neither),
largest first, and the smallest goes back to the largest.

window.panel.cycleOptions {panel} does the same and returns
{panel, size, sizes}. An unknown panel or a panel without sizes is an
error and changes nothing.

Docs: docs/mcp.md, docs/control-protocol.md, docs/ui-parity.md.
2026-11-15 08:39:43 -08:00
dotCooCoo 6635cd7748 Recolor Artwork: a Color Groups list selects, saves, adds and deletes color groups
The dialog lists the document's color groups on its right, or under
the tabs in a narrow window, and the Show Color Groups button beside
the tabs shows or hides the list. A click on a group makes it the
group being edited: with art, the art is reduced again to a row per
color of the group, which become the rows' new colors; without art,
the rows are the group's colors. Save Changes rewrites the selected
group with the colors OK would give it and the name in the name
field, New Color Group saves the rows' new colors as a new group, and
Delete removes the selected group. Each is its own undo step, and the
Swatches panel shows it.

When the art has colors of the group, Save Changes keeps the group's
swatches in order: a swatch whose color a row lists takes that row's
new color, and the others keep theirs. After a save with art the rows'
new colors take the Global Adjust, which goes back to 0%, and when the
save recolored linked art the rows are read from the art again.

The dialog fields are group, groupStorage and groupAction (save, new
or delete). A name no group has, a groupAction of another value, and
save or delete with no group selected are refused.

swatch.editGroup given a group's own colors in order and no new name
records no undo step.
2026-11-15 07:43:03 -08:00
dotCooCoo a6b73c467d Merge main into feat/recolor-add-remove-color-tools
Main's New Row and this branch's Add Color tool both make rows with no
current colors. A row made with New Row gives a rewritten color group no
color, and a color the Add Color tool adds joins the group. Rows the Add
Color tool adds now carry `added: true`: recolor.apply's default
groupColors and the dialog's apply_params add only those empty rows'
colors to the group, after the others, and recolor.randomize keeps the
flag.
2026-11-15 07:32:35 -08:00
Mex 6b821c7c50 docs(G6): complete the control method reference
Document the existing resize defaults and parameterless focus method. Keep one complete ui.render row, including traceViews, and record the documentation revision.

Source and rendered table reviewed. No local Rust build or tests ran; cargo/rustc are unavailable and PR CI validation is required.
2026-11-15 14:37:37 +01:00
dotCooCoo 42fab2ea2a Recolor Artwork: the Edit tab's Add Color and Remove Color tools add and remove colors
Two buttons under the display buttons beside the Edit tab's wheel turn on
the Add Color and Remove Color tools. With Add Color, a click on either
wheel adds a color in a new row with no current colors, at the base
color's brightness. With Remove Color, a click on a marker removes that
color; a color bar's right-click menu has Remove Color too. The base
color can't be removed. With art or a color group open, a removed
color's row keeps its current colors with no new color, so the art keeps
its colors and the group's swatch at that place is removed.

recolor.apply's groupColors accepts null, which removes the group's
swatch at that place; the swatches after it keep their colors and names,
and art linked to a removed global swatch keeps its color, unlinked.
2026-11-14 22:12:58 -08:00
dotCooCoo 397adce4c8 Merge main into feat/eraser-tip-variations 2026-11-14 18:55:44 -08:00
BFlat 3e68e4117a Merge pull request #7712 from dotCooCoo/feat/rough-pastels-load-texture
Effects: Rough Pastels loads its texture from an image file
2026-11-15 09:47:09 +07:00
dotCooCoo 4a329e78b5 Merge main into fix/status-notes-copy-cut-trace 2026-11-14 18:42:18 -08:00
BFlat a53891b846 Merge pull request #7291 from dotCooCoo/feat/live-paint-bucket-multi-click
Live Paint: double-click floods across unstroked edges, triple-click paints the same paint
2026-11-15 08:25:35 +07:00
dotCooCoo 6c585de940 Eraser: Angle, Roundness and Size vary with Random, Pressure, Tilt, Bearing or Rotation
Eraser Tool Options gives Angle, Roundness and Size each a variation menu
(Fixed, Random, Pressure, Tilt, Bearing, Rotation) and a Variation field.
path.eraseRegion takes angleMode, roundnessMode and sizeMode with their
variations, sweeps a varying tip as a Calligraphic nib with what the pen
read along the drag, and refuses an unknown mode or a variation out of
range. The Eraser records the pen's pressure, tilt and rotation when a
mode follows them, and its tip outline at the pointer takes the angle,
roundness and size the pen gives while it erases.
2026-11-14 17:08:14 -08:00
dotCooCoo 403023f834 Effects: Rough Pastels loads its texture from an image file
The Rough Pastels dialog has a Load Texture… button, as Glass and
Texturizer have. The image's gray levels become the paper surface,
stored with the effect as `textureImage` and listed as Loaded Texture
in the Texture menu; Scaling, Relief, Light Direction and Invert act on
it as on the built-in surfaces. The dialog's Texture and Light
Direction controls are now menus instead of text fields.

effect.apply and effect.setParams read `textureImage` from a file or
take the stored string and refuse anything else, and a plug-in filter
cannot have the host read a file for it.

In the Effect Gallery's Settings, a file dialog that answers later
(the macOS sheet, the Linux dialog) now gives the texture to the values
that asked: the filter being browsed, or the stack row that asked,
found by a number each row now carries. An answer for a removed row, a
filter no longer browsed or a gallery that closed is dropped.

Params text, docs/mcp.md, docs/control-protocol.md, docs/gaps.md and
the evidence line are updated.
2026-11-14 15:45:59 -08:00
dotCooCoo faa980b724 Merge main into fix/status-notes-copy-cut-trace 2026-11-14 15:34:52 -08:00
dotCooCoo 9d7fb641f7 Merge main into feat/color-wheel-document-colors 2026-11-14 15:06:56 -08:00
dotCooCoo 42415d9a97 Merge main into feat/color-wheel-oklch-sliders-v2 2026-11-14 15:06:11 -08:00
dotCooCoo 517afa8f1b Merge main into feat/color-wheel-gamut 2026-11-14 15:05:51 -08:00
dotCooCoo de31e6a9f7 Merge main into feat/color-wheel-harmony 2026-11-14 15:05:38 -08:00
dotCooCoo 79fdcc14ab Merge main into feat/color-wheel-vision-preview 2026-11-14 15:05:26 -08:00
dotCooCoo e397a3d28d Merge main into feat/color-wheel-box 2026-11-14 15:04:55 -08:00
dotCooCoo df95a67ea7 Tools: tool.setOption reads and sets the tool that lent the Selection tool
When a held Cmd press lends the Selection tool, `tool.setOption` that
names the waiting tool (the Shape Builder) reads its options from that
tool instead of making it again from the saved preferences, and a value
set on it counts as set since the tool last started afresh.

Params that are not an object now give the error the other commands
give, "the params must be an object, not {got}", which the message
catalogs already translate. The params text of tool.setOption in the
MCP catalog, the desktop commands and the headless host says so.
2026-11-14 14:10:16 -08:00
dotCooCoo aec1e2597d Merge main into feat/live-paint-bucket-multi-click 2026-11-14 13:49:49 -08:00
dotCooCoo 140c711cdb Merge main into feat/hpgl-options-dialog 2026-11-14 13:44:22 -08:00
dotCooCoo 056083e824 Merge main into fix/export-selection-doc-save-panel 2026-11-14 13:27:57 -08:00
dotCooCoo 3781af2b8d MCP: docs say document.exportSelection with options and no path still asks for the file
An option given to document.exportSelection skips the options dialog, but
without `path` the save panel still picks the file. docs/mcp.md said any
option writes without a dialog, and docs/control-protocol.md said params
export without the dialog. Both now say that only `path` writes without a
dialog, and a test pins the behavior.
2026-11-14 13:20:41 -08:00
dotCooCoo 72082aee46 Tools: tool.setOption refuses non-object parameters and keeps its target tool
Parameters that are not an object (true, 7, [], "x") are an error
instead of an empty read; no parameters (null) still read the options.
The tool an option is checked against is named before the edit in
progress is finished, so a held Cmd press made by finishing it no longer
sends the value to the selection tool it lends.
2026-11-14 12:27:34 -08:00
dotCooCoo a19646b2f3 Asset Export: Create Sub-folders, Open Location after Export and Format Settings in the panel menu
Create Sub-folders and Open Location after Export are check items that set
the settings the panel shares with Export for Screens, and the panel's
Export follows them. Create Sub-folders is checked as the dialog opens on
it: on for a document without export settings, and on for remembered
folders per row, format or item, which the panel's Export now uses too.
Format Settings... opens Export for Screens on the Assets tab showing the
first row's format settings.

assets.settings.set takes openLocation (kept in document.exportSettings,
not in presets), refuses a subfolders or openLocation value that is not
true, false or null, and with subfolders false given alone also ends a
remembered folder per format or item. Export for Screens reads remembered
empty folders as none, as an export does.
2026-11-14 11:26:20 -08:00
dotCooCoo b83cec1545 Color Wheel: Show Document Colors lists the colors the art uses
The Color Wheel panel menu gets Show Document Colors. It adds a row
under the wheel or the box with the colors of the selection, headed
Selection Colors, or with nothing selected the colors of the art Select
All takes, headed Document Colors, most used first and as many as fit
in one row. A color's tooltip gives its hex value and how many times
the art uses it. A click applies it to the active proxy or to the
selected gradient stop, keeping its color model and its link to a
global swatch, or to the selected freeform point, which takes the
color alone. Alt+click applies it to the other proxy.

The row keeps its colors during a drag. In art with more than 5,000
color uses, it reads them again at most once every half second after
an edit; a change of document or selection reads them at once.

color.used {selection?, limit?} lists the colors recolor.colors lists,
each with the color in its own model and the tint of its swatch to
three decimals. The swatch and tint come from the color's first linked
use in paint order, a plain use before a gradient stop that mixes a
spot ink with process inks; a color that only such stops link has no
swatch there. ui.colorWheel {documentColors} sets the option, which is
kept with the preferences.

Docs: docs/control-protocol.md, docs/mcp.md, docs/target-app-parity.md.
2026-11-14 09:52:09 -08:00
dotCooCoo 9d6d9da79a Color Wheel: a press held on a harmony marker applies its color
A press on a harmony marker that is held past the length of a click
without leaving the marker no longer drags the hue ring under it: the
color stays as it was while the press is held, and releasing it on the
marker applies the marker's color, as a click does. A press that leaves
the marker still moves the ring's hue.

Harmony Rule in the panel menu is gray while the box shows, as Show
Harmony is. The catalog rows for Show Harmony, Harmony Rule and Harmony
color move next to the other Color Wheel rows.

Docs: docs/control-protocol.md lists the harmony and harmonyRule keys of
ui.colorWheel, and the Show Harmony sentence in
docs/target-app-parity.md moves to the Color Wheel panel entry.
2026-11-14 09:00:30 -08:00
dotCooCoo f763b86fdc Color Wheel: OKLCH Sliders edit a color by lightness, chroma and hue
The Color Wheel panel's menu gets OKLCH Sliders: L, C and H rows under the
wheel or the box that edit the color by the OKLCH lightness (0 to 100 %),
chroma (0 to 100 % of 0.4) and hue of its display sRGB, as CSS Color 4
defines them. Each track dims the colors outside sRGB, and a tick on the C
track marks the largest chroma that fits; a color outside sRGB keeps L and H
and takes that chroma. The rows are gray, and the menu item and
ui.colorWheel {sliders: "oklch"} are refused, while the working RGB space is
not sRGB. The choice is kept with the preferences.

- vectorcraft-color: oklab.rs with OKLCH conversions and max_chroma.
- color.convert {to: "oklch"} answers [L %, C, H°].
- ui.colorWheel takes sliders next to view and channel.

Docs: docs/mcp.md, docs/control-protocol.md, docs/target-app-parity.md.
2026-11-14 08:24:33 -08:00
dotCooCoo 804f844fcf 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.
2026-11-14 08:03:37 -08:00
dotCooCoo 7292350010 Color Wheel: Show Color Vision Preview shows the color through four color vision simulations
The Color Wheel panel's menu gains Show Color Vision Preview, which adds
a row of four chips under the wheel or the box: the current color
through the protanopia, deuteranopia and tritanopia simulations that
View > Proof Setup uses (Cms::proof_srgb), and an achromatopsia chip
that shows the gray with the color's CIE L*, a rule of VectorCraft's
own. Each chip takes the keyboard focus, reports its name and its hex
value to screen readers and shows both in its tooltip. A click or a key
on a chip does not apply its color. With no solid color the chips are
empty and keep their names.

ui.colorWheel takes a vision key next to view and channel and returns
all three. A value that is not true, false or null is an error and
changes nothing. The setting is kept with the preferences, and a saved
value the build does not read falls back to the default without losing
the other settings. New strings have rows in the complete catalogs.
Docs: docs/mcp.md, docs/control-protocol.md, docs/target-app-parity.md.
2026-11-14 07:45:12 -08:00
dotCooCoo add87ffe60 Merge main into fix/status-notes-copy-cut-trace 2026-11-14 05:56:28 -08:00