Brings in craft-libs#2756 (frame-t3), #2810 (a memoized view in a row sits on the row's line) and #2838 (home rail look).
- egui pin and Cargo.lock: rework-d2's egui rev, which contains #2756's; frame-t3's serde line for craft-tracked.
- menu bar: EnglishFn goes with frame-t3's removal of english; rework-d2's docs stay.
- Env::start_view_room: keeps both column flags, then Shrink::Fit when the view fits.
- lazy::Place: both opacity and fits.
- Lazy::run_keyed: a memoized view's room is the row's cap when the row narrows it, else the flow region, and then moves down onto the row's line (on_row_line); the cap is horizontal and the move vertical, and the move keeps the room's size, so a kept run replays moved with it.
A memoized view's content starts a layout room of its own (Env::start_room), so the view sat at the top of the
unwrapped Row around it while every other one-line child sits with its centre on the row's line. Since craft-menu's
bar became a memoized view, PhotoCraft's menu titles sat about 4 pt above the icon beside them (photocraft#16113).
The view's room now moves down by the whole pixels that put the centre of its extent (this pass's measuring run, else
its last run) on the row's line. The room keeps its size, so a kept run replays moved with it; a view taller than the
line reaches stays at the row's top, as place_in_cell keeps a child of more than one line.
The desktop Home layout (`StartScreen::home_layout`) drew its rail with the
dialog button look and inline links: pill New and Open, Home as a filled pill,
Learn and the community links underlined in the link colour, and the page
title as a Display heading. The rail is back to how PhotoCraft drew it before
it moved onto the framework (photocraft#15449):
- New and Open at the control radius.
- Every link a full-width row with its icon: muted at rest, normal under the
pointer; a URL row opens its URL (its tooltip), a command row fires it.
- The selected row (Home) keeps normal ink and has an accent bar at its
leading edge.
- The page title as a Heading.
Only the Home layout changes; the other start-screen layouts keep their links.
Part of photocraft#15476
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A memoized view the row does not narrow shows as in no room, in the row's flow region, and its content sizes from its
content along x; only a row that narrows it cuts its room to the width it gives. The cap of a view the row did not
narrow was its own counted width, so new content changed the view's room and the discard pass ran it again. The
shrink record carries whether the row narrowed the unit.
The replay decision of a pass covers the kept run; each call compares its own key. A row's counting sweep calls the
view with another key (its content shows unbounded): that call no longer decides the pass against the real call
after it, and a sizing call takes the extent the last sizing run measured for its own key.
A container labelled above its body reports its body's first control line as the line it sits on in a row, so a
button beside a field labelled above sits level with the field's control, not its label.
* #7149 item 4: an icon on a strong fill paints its accent parts in its own ink
A container that paints a Brand or Scrim surface now passes the strong-fill ink to what it holds, and Draw::icon paints an app icon accent layer in the icon colour when the ink is OnDark.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* design exceptions: the icon trial has a third fixed-tint site
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* ui-contract: every filled surface sets its own container ink
A panel nested in a brand or scrim container no longer inherits the strong-fill ink. A frame or a surfaceless container keeps the ink it sits in.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* buttons trials: import ShowContainer for the nested Stack trials
next dropped ShowContainer from the shared import line, so the merged
tree failed to compile (E0599 on Stack::show in accent_icon_tints_in).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
egui's galley cache rounded a finite wrap width to whole points and then
clamped the reported width to it, so "200" (22.47 pt) laid out at 22.47 came
back 22.0 and an Info readout row stacked under its label. The fork rounds to
GUI_ROUNDING instead.
The repin also brings next's two commits ahead of the old pin (AccessKit
parent map reader, replayed widgets as used ids).
Trials: ui-contract text::band (a word in room equal to its width, Wrap and
Elide, at 1x and 2x) and the Info panel trial at G=200, K=44%.
A memoized view's content started a layout room of its own that cleared the row's shrink step, so a view in a row
took the row's whole remaining room. The in-window menu bar, a memoized view that filled X, then ate the title bar's
gap and the document title was never drawn.
A memoized view in a shrinking Row is now one of its units, as a body unit is: it reports what its content takes in
no room in the counting sweep and what it takes with every leaf at its least in the least probe, and shows at most
the width the row gave it. That width is the room of its place, so a new width runs the view and an unchanged one
replays; whether the view is a row unit is a fact of its place too. Its content's leaves fit that room.
Env::local_mut clears the cached scope key, so a sweep that edits its scope keys again.
MenuBar no longer fills: it measures every title's width, and the "…" title alone as its least, so a short row
narrows it and the last titles fold into "…".
A check box or radio with its label after it was placed at the top of
the room, while every other control is centered on the row's line. In
an options bar shown in a slot shorter than it asks for (36pt where the
bar wants 40), the check box stood at the bar's top edge, 6pt above the
fields beside it. It now sits on the row's line, and a tall room no
longer makes its row taller.
Most context menus hang from Anchor::Point (table header, rulers, ribbon,
places, versions, dock group menu). layer_covers_anchor decides every case in
one place: the pointer, the rect a context request named, and a point for a
layer whose key class is OwnerClass::Menu. Point-anchored layers that are not
menus (the iconic flyout, a popover at a point) keep their rule.
docs/contract-api.md regenerated.
PlaceRequest gains covers_anchor. Below or above the anchor, an overlay with it
that fits on neither side but fits the bounds keeps the preferred side and its
height and slides over the anchor; only one taller than the bounds is capped.
The overlay host sets it for a layer hanging from the pointer or from the rect
a context request named, so placement's room and the first pass's content room
are the cap within the bounds, and the menu shows every row without scroll
strips. Dropdowns, menu-bar menus and submenus keep their rule.
When one apply_all batch closes several tabs of a group (Close Tab Group, or a
preset that closes panels one at a time), each closed panel's Location records
the set in closed_with. Reopening any of them restores the set in group order,
each by its own record, with the requested one in front. A tab closed in a
batch of its own stays closed: the set only counts members whose records name
each other.
A replay calls its journal entries unshifted when the shift leaves every
record as it is (a pinned record, one that shows an overlay), as egui's
records do. The audit shifted them anyway, and RecordShift::clip cut the
clip of a menu layer's rows to the clip around the view (TabRow with its
menu open). Entry::at holds the rule for the replay and the audit.
A view inside a layer that fades in or out ran at one opacity and its
record holds the faded colours; a replay at another opacity painted them
stale (presets picker list after a pick closes the popover). The opacity
is part of the view's place, as the layer and layout are.