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.
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>
The preview column, the pane grid, each pane row and each pane were
sized to their content, so a pane stayed at the plot's least height
(about 144 pt) beside a settings column three to six times taller, and
the dialog showed empty space below the panes. The preview column now
fills the row it shares with the settings, its rows of panes share that
height below the zoom row, and each pane takes its row's height above
its two caption lines. The dialog keeps its size.
Test: it::form_dialogs::save_for_web::the_preview_panes_take_the_height_beside_the_settings
TabStripOutput reports the overflow button's rect and access node id while
some tabs do not fit. The dock group passes it on (DockGroupOutput::overflow,
through the memoized tab row so a replay moves it with the row), and the dock
area reports it beside the group's tabs as SourceKind::Overflow, named by the
group's first panel, so a host can give the button an automation id.
A host body keeps its presses and its egui focus, so the group takes
no focus and DockAreaOutput::focused never names the panel clicked
into. BodyCx::pressed_within reports a primary press in the body's
rect on its layer whatever took it, sharing the press geometry with
surface_pressed, and the dock area reports the group's shown panel as
pressed.
A file drop on a floating OS window reports the shown panel of the group under
the drop, from the drop session's pointer; the first group's on the title row or
when no pointer is known. ui-docking.md covers documents, swatches, raise and
WindowFiles.
PanelSpec::documents lists what a panel shows (a Timeline's compositions) as tabs
after the group's panel tabs, in the same strip: one fit, one overflow menu, one
keyboard order. A pick reports DockEvent::DocumentPicked and activates the panel;
a close reports DockEvent::DocumentClosed. PanelSpec::swatch and
PanelDocument::swatch show a data colour in the tab's icon slot.
An OS window gets WindowAction::Focus; a window on a layer goes to the top of
egui's area order through overlay::raise, which now raises floating windows too.
Conflicts resolved so that next's changes and this branch's fixes both hold:
- keys: next's unfocused-canvas state claims join the key stage's framework claims; the canvas's
declared claims stay the host's (egui keeps their presses).
- overlay: the app's own modal (`FrameInput::app_modal`) joins next's modal stack at the frame it
first showed in.
- docking: the tab-pick trial moves key focus into the group with Tab, since a click on a dock tab
leaves key focus where it is.