window.toolbar.dock and window.toolbar.float were still listed in the
command catalogs, but the move to the framework dock removed their
handlers, so both returned "unknown command".
- window.toolbar.dock docks a toolbar made with New Toolbar as a column
of the left or right edge's dock, at the column `order` asks for.
Without `side` it uses the edge it docks at, else the edge of the
docked panel it left, else the left.
- window.toolbar.float floats it at x, y, or as the dock floats a panel.
- A hidden toolbar that either command shows brings back the groups torn
off it, and both commands end a Tab hide.
- window.toolbar.list reports that same edge for a floating toolbar
instead of always "left".
- place_floating moves an open OS window's record with its rect, as
float_actions does.
Docs: the params text in both catalogs, docs/mcp.md and
docs/control-protocol.md describe dock columns instead of lanes.
The contrast row, its menu rows and its tests move to the craft UI framework,
as main's Color Wheel panel now uses it:
- The row is a Row with a Swatch named Background (a color well whose value is
the background's hex value) and Text for the ratio and the AA and AAA
results, each with the WCAG minimums as its tooltip.
- Show Contrast, Contrast For and Contrast Background are rows of the panel
menu's items (ui.colorWheel.contrast, contrastFor.<id>,
contrastBackground.below and contrastBackground.current), after Show
Opacity. Current Color is gray, and its row answers an error, while the
active proxy has no solid color.
- The kept background and ratio answer are fields of WheelUi instead of panel
state. The answer's key also holds whether the Live Paint Bucket paints,
which changes the proxies' paint without a document revision.
- The row's tests run in the panel's Fixture by accessible name; the drag test
runs an interaction whose previews set the fill, as the Show Document Colors
drag test does.
- The settings lists in the params text, docs/mcp.md and the tests take both
opacity and the contrast keys.
ui.recolorDialog with preset: true and a group opened the preset dialog
and dropped the group, so OK recolored the art without rewriting the
group. That call is now an error. The params text and
docs/control-protocol.md say so.
Edit > Edit Colors > Recolor with Preset (1, 2 and 3 Color Job, Color
Library) now opens a Recolor with Preset dialog with a Limit to Library
menu (None, Document Swatches or a library) before Recolor Artwork
opens; OK opens Recolor Artwork with the preset's colors and that
library, and Cancel opens nothing. The menu items run
ui.recolorDialog {preset: true}.
A 1 Color Job limited to the document's swatches, with a spot or global
ink picked for its row, gives gray art tints of that ink linked to its
swatch, so editing the swatch recolors the art.
Opening either dialog over another dialog now ends that dialog as
Cancel does, so a Recolor Artwork preview is rolled back.
A Cmd press with the Selection tool now selects behind on a group that
holds a selected member, as it does on a selected object, so repeated
Cmd-clicks on grouped art reach the object behind the group. A path's
segments no longer keep the press for Direct Selection, so a Cmd-click
on a selected stroke-only path selects behind it. Select Behind needs
another object under the pointer: on a lone object the press is lent.
The bounding box's handles and rotate zones also lend the press.
- A double-click that follows a Cmd-click selecting behind keeps what
that click selected, without isolating or editing, also when the
press and the double-click come in one frame. After an edit or a
selection change, or after a press that drags or is released away
from where it began, it is an ordinary double-click.
- Whether a press selects behind is kept for the pointer's position
while the document, the selection, the live inputs and the hit-test
settings stay as they are, so the cursor, the canvas marks and the
press do not walk the document again. A layer or group effect that
draws art widens the area checked; raster effects and color
adjustments do not.
- The selected blends' spines are built once per check.
- The status bar and the help bar name the tool a press at the pointer
takes, which is the Selection tool where the press selects behind,
and they are drawn again when it changes. The canvas drops a hover's
decision once the tool, the selection or a preference it depends on
changes.
Docs: docs/mcp.md (pointer_gesture, and Cmd+Alt with Direct
Selection), docs/control-protocol.md, docs/ui-parity.md,
docs/target-app-parity.md.
With the Selection tool chosen, holding Cmd (Ctrl on Windows and Linux)
now lends Direct Selection, or Group Selection when that was chosen
last, for each press; the Selection tool is back on the release. With
Group Selection chosen, Cmd lends the Selection tool, as it already did
with Direct Selection. Selection & Anchor Display > Command Click to
Select Objects Behind keeps a Cmd press on a selected object, away from
its anchors, handles, mesh points and spine, for selecting the object
behind it. A wide stroke's painted area counts as on the object there.
- The double-click or triple-click after Cmd-clicks goes to the tool
the clicks went to.
- Cmd pressed once a drag is under way lends nothing, and the pointer
stays the active tool's.
- While Cmd is held, the status bar's Current Tool and the help bar
name the lent tool, and the canvas shows the lent tool's marks and
widgets (blend, Shaper, mirror, trace divider and repeat handles) for
the pointer's position in the same frame.
- The help bar has hints for Group Selection.
The helper that finds a selected object's editable parts under the
pointer follows the one in pull request 6597 by SofiaAFigueredo.
Docs: docs/ui-parity.md, docs/control-protocol.md (ui.pointer).
Co-authored-by: SofiaAFigueredo <223278896+SofiaAFigueredo@users.noreply.github.com>
- OK and Delete on several width points are refused when a selected
point became, or stopped being, one half of a discontinuous point
since the dialog opened, for example after a point was added at its
place. Before, Delete removed only the selected half and left the
new one, and OK edited only the selected half.
- OK and Delete are refused when `ui.dialog.set` changed `id`,
`index`, `outIndex` or `indices` after the dialog opened. Before, a
changed `id` sent the edit or the removal to another stroke whose
width points matched.
Selecting the Quick Pen tool shows a toolbar on the canvas. Straight
Line, Continuous Arc and Sharp Corner Arc set the tool's action, Flip
Arc flips the last sharp-corner arc as C does, and More Options has
Hide Toolbar, Pin Toolbar Position and Reset Toolbar Position. The
handle at its left end drags it.
While a path is being drawn, the toolbar sits beside the path's last
point, 24 screen points off it on the side the path heads toward, or on
the other side where that side runs off the canvas. With no path being
drawn, it sits at the bottom center of the canvas. A drag's offset
applies in the kind of place it was made in (beside the drawing or
resting), and not where it would cover the path's last point. Pinned,
it stays at its place in the canvas window. It hides while a press
drags on the canvas, and its controls wrap in a canvas pane narrower
than the toolbar. Hide Toolbar hides it until the tool is selected
again; Window › Quick Pen Toolbar also shows or hides it.
- Tool::drawing_end and Session::tool_drawing_end give the point the
path goes on from and the direction it arrives in.
- New desktop commands: window.quickPenToolbar, window.quickPenToolbar.pin,
window.quickPenToolbar.reset and tool.quickPen.flipArc; ui.inspect
reports quickPenToolbar.
- Labels in every catalog.
Docs: docs/mcp.md, docs/control-protocol.md, ROADMAP, docs/ui-parity.md,
docs/target-app-parity.md. Part of #2660.
HP-GL Options stored no document, so OK after `window.nextDocument` or
`file.new` exported the newly active document to the path chosen for
the first one. The dialog now keeps the uid of the document it was
opened for, and OK closes it and writes nothing when another document
is active, as Delete Brush's dialog does.
main added Show Harmony and Harmony Rule to the Color Wheel settings and
Live Paint routing to paint.setFill and paint.setStroke. The resolution
keeps both: ui.colorWheel takes and returns view, channel, harmony,
harmonyRule, opacity and vision, and the paint params text describes the
Live Paint routing and the opacity param together. The paint.proxies text
and the catalog test's doc comment name paint.setStroke {opacity} for the
stroke opacity. Indonesian, now a complete-message language, has rows for
the opacity errors.
- Export Selection to HP-GL checks the selection and starts Pen Table
from its pens, as the export writes it, and `exportSelection` is no
longer remembered for the next whole-document export.
- Pen Table with options or an artboard choice the export refuses keeps
One Pen per Color and shows the error, instead of starting from one
black pen that corrected options would keep. `automatic_pens` returns
that error.
- `automatic_pens` refuses `rect`, as `check` and the export do.
- A save panel shown in line that is canceled keeps the dialog open,
and a canceled save panel keeps the options remembered before.
- OK and Delete on one or several existing points are refused when those
points changed in any way since the dialog opened (place, widths,
stroke weight, or pairing as a discontinuous point), or when another
document is active.
- OK with no width changed checks the selection before it closes.
- An untouched Total Width above 100000 pt no longer blocks OK; a value
set above 100000 pt is still refused.
- A width set into a field that OK refuses stays there when another
field is set afterward, and a negative width typed for several points
is refused at OK instead of becoming 0.
- `ui.widthPointEdit` refuses `index` together with `t`.
- Double-clicking a selected width point passes every selected entry,
so points at nearly one place are all edited.
OK closes the dialog and renames nothing when another document has
become the active one, or when the color group at the group's place in
the list no longer has the name and swatches the dialog opened with.
swatch.renameGroup makes a drag still in progress an undo step of its
own first, so canceling or undoing the drag leaves the rename.
ui.colorGroupOptions without group opens on the color group selected
alone in the Swatches panel, as long as the panel's selection still
belongs to the active document and art.
The panel's selection follows renames in a command.batch only up to the
first step that may switch documents or replace a group. Ungroup Color
Group and Delete Swatch take the names they removed out of the
selection.
The es catalog had the missing `group` and no colour group `{group}`
rows twice after the last merge of main; the duplicates are removed.
- The largest chroma at a hue near a primary color finds the stretch past
the first gamut edge, so pure blue at chroma 0.4 stays blue. The C track
dims the gap between the two stretches.
- Oklab conversions use the signed sRGB transfer curve for channels below 0.
- HSL hues wrap before the channel offsets; Color::to_hsl and from_hsl are
removed, so callers pass the color settings themselves.
- color.convert {to: "oklch"} clips RGB numbers past 0 to 1, as hex does.
- A hue on a gray, or a saturation on black or white, leaves a Gray paint
unchanged and records no undo step.
- Remembered row and wheel components are dropped once the panel shows
another color or target.
- Hiding or switching the rows during a row drag keeps the preview as one
undo step and ends the interaction.
- The L and H tracks keep their colors until the other two components
change, so a frame does not search the gamut for every track color.
- Docs name the document's assigned profile as the RGB space OKLCH Sliders
need, and give color.convert's example its color.
- color.contrast carries out the alpha of an isolated level's own
composite, so an isolating object in a blending group matches the
canvas.
- A selection whose translucent or blending rows lie over different
shown rows below them has no one answer; rows with no paint do not
count.
- The error names `opacity` when giving it settles the difference.
- The Color Wheel reads the background again when a drag moves the
selection.
- RatioKey has named fields.
- docs: graphics has an AA result only.