A content-sized UnitSelect shows its number field one number cell wide
and its select as wide as its longest unit; a unit select of any other
sizing keeps a field's width and gives the select the room after it.
Image Size's and Canvas Size's Width, Height and Resolution rows are
content-sized, as their fields were before the port.
A content-sized stack runs its rows twice in one measuring run: a second
sweep at the width the first found. A row inside a row of the group
(Image Size's Width and Height beside their link) reads the label column
in the first sweep only; the second takes its measure without reading the
column, so its group found nothing unsettled there and overwrote what the
first sweep found. The rows then kept the measure taken at the narrower
column, while the real run read the group's widest and stacked each label
above a field sized for one beside it: the field was cut to a strip.
The group now runs its rows again whenever any sweep found a row that read
a narrower column. Trials: a stack of labelled unit selects in a row of a
content-sized form, and Image Size and Canvas Size on a host, at 1x and
1.25x (photocraft#15483).
The Crop tool claimed I, X, O and Shift+O as soon as it showed its
untouched default frame (on picking the tool, after a commit, or on a
selection's bounds), so O cycled the overlay instead of picking the
Dodge group, I switched to Front Image instead of the Eyedropper, and X
swapped the frame instead of the colours. As in the reference application, the crop
now takes its keys only while a crop is pending, the way H and P
already were.
The key trial gave the canvas no keyboard before its first press, so
its untouched-frame half passed whatever the tool did; the rig now
focuses the canvas first.
Part of storytold/photocraft#6536.
The new frame over a card's picture also drew on flat thumbnails, which
have no sunken well to restore: the New Document preset cards gained a
second outline around their page, and
form_dialogs::new_document::recent_preset_cards_paint_one_small_page_at_its_aspect
failed on every leg. Frame only where the sunken well was painted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Removes the paired measure (Component::PAIRED_MEASURE, measure_pair and its
six adopters, MeasureCx::least_width) and the prepared-leaf path
(PreparedLeaf, PreparedStep, run_with, show_leaf_prepared,
measure_under_prepared, child_with_prepared): every leaf is measured by
measure alone, and the recursive run frames carry only what they read after
their children again.
Keeps the text layout memo and the lazy layout runs, with three fixes: a Line
run keys its width as infinity, entries unused for 60 passes go instead of
first in first out, and a 32 MiB budget bounds what the memo retains.
TextLayout's full and runs are private behind full() and runs().
The canvas settles the view it is given to whole device pixels, so a
thumb drag's first proposal came back with its centre a fraction of a
pixel off. The value step read that as the app changing the view under
the gesture and cancelled it (HostChanged); the cancelled gesture refused
every later proposal until the release, so the view moved once and then
stayed (photocraft#16006). The bars now take a host view with the same
zoom, turn, mirroring and aspect and a centre within a point as their own
value (same_value), as the number fields do with rounded values.
A collapsed dock window's sides resize its width, and only its width, within the bounds of a docked collapsed column
(DockSizes::iconic_bounds, the one rule both use), on macOS by AppKit and elsewhere by the window's own grips.
FloatingGroupOutput::collapsed_width reports the width, which the area keeps as the column's iconic width through the
docked column's own path (Action::ResizeIconic); names show from IconicSizes::labels as in a docked column. The height
stays the icons', the expanded rect keeps its size and the window keeps its edge. The column in a window has no
inner-edge divider: the window's sides size it, as for an expanded column.
3155a1d38 made the hex field own Enter for the tabbed Colors dialog. The
Full layout focuses the same field on its first show, so its Enter only
committed the digits and the dialog stayed open. In the reference image
editor's Color Picker, digits typed there and Enter set the colour and
close the dialog. The field owns Enter in the Compact layout only.
The document chrome's step arrows were focusable stops. Tab stopped on
them, and when the canvas's focused part went away (a crop that shrank
the document) focus fell through to an arrow, which then took the Escape
that cancels the next crop frame. The canvas scrolls with its own keys
(arrows, Page Up/Down, Home and End), and in the reference application
the scroll bar arrows take no keyboard focus, so the arrows are
pointer-only, like the corner.
A spanned target catches only a point or box overlapping its span on the
other axis since canvas-w4, which keeps a layer's edge on its page from
catching a box on another page. Photoshop-style layer edges snap a box
beside them too (side-by-side boxes align their tops), so PhotoCraft's
Move tool stopped snapping to other layers' edges.
SnapTargets::reach_past_spans() lets every target catch along its whole
line, the span only shaping the drawn smart guide. The default is
unchanged, and filtered() keeps the setting.
Each icon group has a grip strip above its first icon, size.hit.target high and part of the group's rect, with a
thin pill centred across it: stroke.thick thick, half an icon cell long (GRIP_BAR_IN_CELLS), the theme's pill
rounding, text.muted at rest and text.normal while hovered or dragged. The grip part takes exactly the strip
(exact_hit), so it no longer reaches into the first icon; a drag on it moves the group as before. icons_height adds
one strip per group, and a flyout's top stays level with its group's first icon.