The status bar's Rotation menu and artboard navigator were memoized on the
document's revision, which rises on every frame of a drag, so the memo
missed and both controls were laid out again each frame. The memo now keys
on what the navigator lists: the artboards' names in order, with the
selected artboard, view angle and language as before. Edits that leave the
names alone replay the controls; a rename or a new artboard runs them.
The new test moves an object ten times and counts no navigation runs, then
renames an artboard and checks the navigator shows the new name.
With New Art Has Basic Appearance off, new type took nothing from a
selected object whose fills, strokes and effects matched the document's
redefined Default Graphic Style without a link to it (after Break Link
to Graphic Style, for example), because the check that keeps type plain
for the document's default look also caught a look taken from the
selection. That check now applies only to the look paint.default gives,
so new type takes the selection's fills and effects, and new type made
after paint.default still keeps its characters' color.
A metafile can fill a figure without closing it, for example a GDI path
bracket painted with FILLPATH and no CLOSEFIGURE. The fill draws the
figure closed, but the import kept it as an open path, so the object
reported closed:false and a stroke added later left a gap at its start.
A path the picture only fills now comes in with every open figure
closed. Stroked paths keep their figures as the file draws them. The
same rule covers EMF, WMF and PICT, which share the importer.
Recolor Artwork previews its colors on the art, but its modal layer
dimmed the whole window, canvas included, so the preview could not be
judged. The dialog now keeps the canvas of the window it opened in open
under its modal layer, as the Color Picker and the color adjustment
dialogs do: no scrim over it, and the wheel still scrolls and zooms the
view. Other presses on the canvas stay blocked.
A Color Picker opened from a row's new color also keeps the canvas
undimmed. The picker now registers the canvas, and while it is open over
Recolor Artwork the dialog below draws no scrim of its own, so the
picker's layer is the only one that dims the window.
While the Color Theme Picker is on, its clicks and Shift-drags on the
art now reach the canvas. Before, the modal layer blocked them, so a
click on the art added no pick.
Part of #10590.
A line of type in a font the file carries is kept as outlines when it
uses a different glyph for a character than the rest of the file does in
that font, because the font kept with the document holds one glyph per
character. That line got the warning for scripts whose letters join, so
a Latin document reported Indic-style reshaping. It now gets its own
warning, which is also one of the warnings on outlines that a layered
.ai drops when no outlines are left. Type kept as outlines because it
would reshape keeps the old warning.
A dialog's modal layer dims everything but the canvas the dialog
registers. Blend Options, the envelope and path dialogs, Split Into Grid,
Flare Tool Options, Justification, Proof Setup, Swatch Options, the
Tangent Circle radius dialog, the add-on dialogs and the command dialogs
with a Preview box registered no canvas, so the art they previewed was
shown dimmed and the wheel over it did not scroll the view.
dialogs::host::preview_canvas gives the current window's canvas, and
PreviewsOn::previews_on registers it when the dialog previews. The add-on
dialog host registers it for every add-on dialog. Blend Options with no
blend selected sets the defaults for new blends and previews nothing, so
it still dims the canvas.
Part of #10590.
* Locate both color wells by their reported radio values
The shared swatch pair exposes unnamed radio parts. Drive real clicks on the exposed area of Stroke and Fill and keep the original paint and modifier assertions.
(cherry picked from commit 5b990d637c)
* Use regional decimal marks in UI fixtures
(cherry picked from commit 4208649d63)
* Use ordinary canonical paths in script fixtures
(cherry picked from commit f37b5811ad)
* Restore Animated Zoom for mouse-wheel notches
Restore the glide when Zoom with Scroll Wheel and Animated Zoom are both on, as in 0.24.1. The canvas keeps precision point input and pinches immediate. Tracks #10418.
(cherry picked from commit 1dde4db0f3)
---------
Co-authored-by: Codex <[email protected]>
* Use regional decimals in remaining UI fixtures
(cherry picked from commit d689f09e46)
* Test Divide preserves artwork at complexity limit
(cherry picked from commit cc54974df6)
* Honor an explicit Crop Box when opening editable PDFs
Backport the PDF option handling from 82d4ec4336. Apply it to editable and linked opens while preserving the original file when an alternate box was requested.
(cherry picked from commit 73bbd005f3)
---------
Co-authored-by: Codex <[email protected]>
Hovering a style row of an expanded family in the font list previewed
only the family on the selected type. apply_preview now takes the style
the picker reports with its preview (FontPickerOutput::preview_style and
CharacterControlsOutput::preview_style) and passes it to the font
command, so the type shows the hovered style; a family row still
previews the family in the closest style it has.
Every craft-libs rev moves to storytold/craft-libs#5489's head
(4f3e34d0dd), which adds preview_style, gives style rows a sample in
their own face, and keeps a typed query when a family's disclosure, its
star or a filter is clicked. Cargo.lock changes only the craft-libs
source lines.
A press that begins on the canvas keeps the document hover point while the
pointer is dragged off it, so the thumbnail and count stayed drawn at the
canvas edge. The overlay now also needs the pointer over the canvas. The
test drags a press across the canvas, where the thumbnail stays, and then
off it, where nothing shows.
A graphic style picked with nothing selected and then redefined gave new
art and type the look picked with the new definition's isolate and
knockout, still linked to the style. New art now links to the style only
while its fills, strokes, effects, opacity and blend mode match the
style's current definition; otherwise it keeps the look picked without
the link, isolate or knockout. appearance.newArt reports the style the
same way, and undoing the redefinition links new art again.
New type made with the look paint.default gives in a document whose
Default Graphic Style was redefined took that look and lost its
characters' color, which failed
an_open_document_takes_another_profiles_default_fill_stroke_and_font.
That look is the document's default, so new type made with it keeps its
characters' color, as with the shipped default.
Palette windows hide while the main window shows a popup, and an open flyout
is one. A built-in workspace now opens its panel's flyout when it is
switched to, so a panel floated by a command in Essentials Classic (Color's
flyout) and the other workspaces that open one opened its window hidden, and
a_panel_floated_in_any_built_in_workspace_opens_a_shown_window failed on main.
The command that reveals a floating window now closes the open flyout.
Co-authored-by: FredApps <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Most tool cursors are drawn by the app at its own cursor size, but
Cursor::Move, the four resize cursors, HandGrab, NotAllowed, Text and the
vertical type cursors were handed to the system. On Wayland the compositor
draws those from the desktop's cursor theme at the theme's size, so one
tool switched between a small drawn cursor and a large themed one, for
example the Curvature tool over an anchor, the bounding box handles, or
the Hand while panning.
These cursors are now drawn too: new move, resize, not-allowed and
vertical I-beam glyphs in assets/cursors, the framework's I-beam for Text,
and the framework's hand, which closes while the primary button is down,
for HandGrab. The busy pointer of a long operation stays the system's.
While the Type tool edited text, one Tab press typed a tab character and
also hid the panels, and Shift+Tab hid the panels except the tools. The
framework sends a bare Tab that the text editor keeps to the panels
toggle as well (craft-libs#4783).
The command gate now refuses both panels toggles while the Type tool
edits text, so Tab and Shift+Tab reach only the editor and typing order
is unchanged. Outside an edit Tab hides the panels as before. The rule
is a workaround: the craft-libs pin bump that includes #4783 removes it.
Reported by anselher.