Conflicts:
- ui-contract items/hooks.rs: rest_lead takes no placement here; main's
lead focus ring block is kept as main wrote it.
- ui-panels docking/mod.rs: main's FocusLook import kept; the memory::sub
import goes, since the dock no longer keeps pass frames in memory.
Follow-ups of the merge:
- MeasureCx::in_row (main) reads row_alone_room from the component's
scope env, as column_room does here.
- The split-handle focus ring trial (main) passes SplitArea's revision.
Mark TransformBox::handle_side and PreferencesWindow::size as point
quantities the host supplies, and make CheckContext #[non_exhaustive].
#3855 and #3738 are reverted above: they read egui memory, raw keys and
pointer clicks outside runtime::egui.
In a new room the docks' split area measures its body before showing it. The body read its frames from the shown
slots `update` writes, which a measuring run never reaches, so the measuring run laid the docked tree out at the
previous pass's frames. The dock gathered the tree's leaves across both runs and registered its edge drop bands from
their union: the bands kept the old room's width, and the docked tree's kept record replayed them (the replay audit
found it on the Top band).
`SplitArea` gives its body the frames through `content_env`, which runs in a measuring run at its rect and in the real
run after the dividers' edits, as the canvas split gives its panes. The body reads them as `SplitGroups` and
`SplitDocks` app values. The dock gathers the leaves and registers the bands inside each run of the body; a measuring
run registers nothing. The dock trial keeps the replay audit on through room changes.
F1 memoizes the docked tree and its columns, and their views return what they drew. Measuring runs added to the
area's report as well: `Pass::dock` pushed each placed column, `shown_column` and `tree` added a view's returned
report, and an unmemoized column pushed its dividers. When the docks' split area measured them before showing them
(a new room or zoom), or the replay audit ran the tree, the report listed columns and sources twice, and the tree's
output differed from its replay (PhotoCraft tabs_tests under the audit, FW-365 F4).
Each of these is now an effect of the real run (`measure::effect`), as the group's own report already was. The trial
checks the counts the dock reports through room changes and under the audit.
Each dock column (docked, collapsed to icons or in a floating window) shows
as a memoized view keyed by the pruned layout, its place, the area's
requests and the versions of the panels it shows (DockPanels::content).
The docked tree is one view keyed the same way over every panel it shows,
so an idle dock whose panels all have versions replays as one record; a
column or tree with an unversioned panel runs as before. What a replay must
still report (gesture sources, shown groups, placed columns) comes back as
the view's value, and the focused group is read from the shown groups' ids
after the views.
The docks' natural widths and card places are derived per layout, sizes and
config, and SplitArea derives its frames, handles and their ranges from the
caller's revision of its layout and rules (a required argument) instead of
walking the tree five times per run. Spec lookups in the area return
references.
Two fixes the replay audit found: DockGroup's header drained its command
states in a measuring run, so the real run after it published none; and a
group reported its rect and sources from measuring runs as well, doubling
them in the first pass.
PresetRow::search_name is documented as the name Find also matches, but
shown_rows compared the query with the label only. A host that shows a
translated label and sets the stored name as search_name could not find
the item by its stored name. Find now keeps a preset whose label or
search_name matches.
A PDF preset names a flattener preset and never holds custom flattener
options, so while the flattener select shows [Custom] the settings no
longer match the chosen preset. The preset row now reads
"<name> (modified)" while `custom_flattener` is on, as it does for any
changed setting, and shows the preset's name again once it is off.
The quiet field's resting fill is surface.background (WordCraft's t.ribbon), the quiet look implies the muted placeholder, and the quiet_field doc link resolves.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PreferencesLayout::Classic draws the paged body as a desktop preferences dialog does:
the page list in a frame as tall as the page (SectionList::framed) with room before the
page, no heading over the page, and each titled group a GroupBox. The window puts OK,
Cancel, Prev and Next in a column at the end edge (ButtonPlace::Side) and opens at
1030 x 660; Prev and Next step through the listed pages and wrap. Paged and Cards are
unchanged. PreferencesPageOutput::pages lists the page ids the search keeps.
For storytold/photocraft#17014.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A panel at its narrowest width offers its body less room than
size.plot.width (240 pt, 300 pt at comfortable density). The preview
pane still drew that wide and ran past the panel's edge: picture_width
clamped the offered room up to its least width, and the pane's style
also set its least width as min_size.
picture_width now takes an offered room below its least width, down to
size.plot.height (or the least width when that is smaller). Without a
room, or at its least, it is still the least width, so a dialog sized
from its content keeps the preview as wide as before. The preview pane,
the Navigator preview, the histogram plot and the reading view drop
the plot width from their min_size and keep its height.
With no row picked, Enter in a list manager's name box did nothing, while a click on the
first action ran it. The name box drives the list, so the key router sent Enter to the list
as an activation, and a list with no lead row took it without acting on it. The list manager
also turned the dialog's Enter rule off, so the default button could not take the key.
- ui-contract: a collection records whether it has a lead row, and a text field that drives a
collection without one keeps Enter as its submit. A driven target that records nothing (a
menu) still takes Enter.
- ui-patterns: `ListManager` turns `close_on_enter` on, so Enter runs the first action while it
is enabled, as its doc says. Enter on a lead row the name box no longer names (a name typed
after picking a row) runs the first action on the typed name instead of the row's.
The OS gives an OS window no press that went down in another window, so DockArea::continue_move had no effect
on a window the dock opens as one. The window shows in the app window while the press moves it: it follows the
pointer, marks where it would land and docks on release, as a tab drag does.
The in-place palette face drew TextField::search at the field look: field fill and
the control edge, so in a title bar it read as a heavy outlined white box.
Add TextField::quiet (style key) and StyleCx::quiet_field: surface.chrome fill at
rest, surface.sunken under the pointer and while focused, line.border edge at rest
(line.divider disabled). Focus and invalid edges stay the field's own. CommandPalette::quiet(bool)
passes it to both the closed and open in-place field; default false, so the dialog
face and other users are unchanged.
For storytold/wordcraft#7682.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>