The toggling part's result carries Flags::OPEN while its popup shows, so a
gallery's More face and a split button's arrow draw the pressed plate the
open state counts as.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A control from which a click, press or held press opened a menu or popover
takes Flags::OPEN while it is open, and OPEN now drives the press blend it
counts as, so the control draws its pressed plate and reports expanded. A
part whose popup is open (a split button's arrow) does the same. Context
menus, hover cards and bound containers leave their host unmarked.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A font size box opens its list when its number is clicked, by pointer or by
an accessibility click, and selects the number so typing replaces it. The
default keeps the click for the caret.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An app sets ValueMark at its root. The default keeps every row a radio item;
Fill drops the radio marks and their column and fills the current row with
the selection fill and its ink, under the active row's highlight.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MediaControls::over_picture() stands the controls on Bar::over_picture(). An over-picture bar sets
TrackFill::Accent for its members, and a Slider placed over a picture (ControlPlace::OverPicture) draws
its thumb as a small dot in text.on_strong. A trim that keeps the whole clip marks no ends. Gallery story
media_controls_over_picture; trial an_over_picture_bars_track_fills_in_the_accent.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A pane area measured in a room other than the real run's (DeckCraft's notes pane under a deck with no slides, or
over a playing GIF) showed the same egui panel twice in one pass at different rects, and egui drew its
First/Second use of Panel ID warning over the window.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A slide editor draws a connector's sites and a line's ends beside its document-look
box; they take the box handles' rim (line.mark) through this, one place with the
box's own frame and rim ink.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An extension was drawn as even dash_gap dashes, which read as dots; it now takes
stroke.dash dashes with stroke.dash_gap gaps, as the guides and Draw::dashes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A label as long along its strip as the room between labelled ticks (a host table
that labels every unit at a low zoom, or a vertical strip's stacked characters)
is not painted, so no label overlaps the next one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts:
- items/press.rs: the port's cell_press takes the modifiers; it now reads upstream's pick_mods, the release's own.
- run/typed.rs and primitives/record.rs: the face record keeps the port's Name, so a decorative or labelled-by face stays one. Upstream's rule is added: an empty own text falls back to the label.
- Test imports take both sides; menu bar test comments take upstream's wording for its row naming.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Input and focus fixes: wheel over text fields, Scroll Into View on list rows, click modifiers, shown-only chords, face names, right-click outside menus, mixed sliders
ToolHost::cancel returns the port's ToolHostResponse (must_use); the fill, liquify, raw develop and vanishing point cancels take it as wide_angle and select_mask do, as their tools request no URLs. Port tests: unused Props import, Id::unique for a fixed id, a one-range Vec from once, as_chunks, Result::inspect, and the dropper trial's hover and sample phases as helpers under the complexity cap.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The port's side-menu ink follows the surface it stands on. The trial now stands its menu on SurfaceKind::Brand, as upstream's side menus do, with both assertions kept, and adds the port's case: on a chrome rail, in light and dark, the icon button takes the rows' ink and that ink reaches text contrast on the chrome.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The gallery story reads clicks with contract::clicked; the fitted picture stories take a documented FIT_ROOM in a scoped child instead of allocate_ui; a centred picture fits at its style height's aspect; the comment card's tile is one Stateful with a selected look.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The container measure id comes from runtime::egui::memory::unique; numeric AccessKit steps from runtime::egui::access::step_move. The flag-mark trial walks its segments by angle and length with a plain ink; the icon trials bind rendered layers outside asserts, and the fixed run's tint is checked to leave colours as drawn instead of against Color32::WHITE, so the marker count matches its exception again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
page_kind was a hand setter (design lint). follow had eight arguments (clippy too_many_arguments); the window-side inputs are one FollowBy.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CommandPalette::state and Bar::background_press are #[prop] fields. Bar::look(BarLook) becomes Bar::over_picture(), since choosing the look also clears the container surface; Bar forwards no container builders, so its own surface() stays. The bar stories stand the bar over the stage with Stack::show_at and read clicks with contract::clicked.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tight gap between the theme and standard sections is a Stack gap, not add_space. ColorPick::scheme builds the variant. The trial file drops an unused Props import (clippy).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ServeOptions gets clock and ended setters beside From<ServerLimits>; ColumnRule gets fit_to_view. The trials build them through those.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docking divider: a drag moves the divider with the move that starts it
The move that carries a press past slop arrives as PressPhase::DragStart with the pointer position, but divider::drag dropped it, so every container moved its divider a pass later. Drag::Start now carries its coordinate (Start(f32), mirrored for right-to-left like To) and Drag::coord gives the coordinate of either. SplitArea, DockColumn, StackSections, the iconic column's edge, SplitViews, the column bar and the margin handles begin their gesture as before and then apply the start's coordinate in the same pass.
Drag is public, so Start(f32) is an API change for code that matches Drag::Start.
Trial a_column_divider_follows_the_move_that_starts_its_drag_in_the_same_pass
* docs: regenerate contract-api.md
---------
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
* Inspector: name generic components by their type and list a text field's value
The component name dropped the path before the generic arguments, so Select<'_, String> was
recorded as `String>`. A text node's value, which AccessKit reads, now also shows in the
inspector's facts.
* Inspector: test generic component names and text field values
* Keep the components of a replayed memoized view in the enclosing inspected region
* SwatchPair: each well's access node is named by its own label, not the pair's
* rustfmt
* Inspector: clippy tidy-ups in the replay step and its trial
* Inspector: a text field's value is journaled like the other steps, so a replayed view keeps it; the pair trial checks each name is its well's radio button
* inspect: list a text value whichever order the node's facts arrive in
A text value noted before its node's facts in the same pass was dropped, as it
was only written on facts that already existed. The open region now keeps the
noted value per component and writes it on the facts when they arrive, so the
order no longer matters; a value the node states itself still wins. The steps
journal and replay as before.
The trial drives the record's calls in each order: text value before facts,
facts before text value, facts reported again, and a node's own value.
* Inspector trial: a null-rooted id and a let-else in place of expect, for next's lints
* Inspector trial: assert the region ran instead of panicking, for next's lints
* docs: regenerate contract-api.md
* contract-api: an entry's summary is its first sentence, not its first line
The generator showed the first line of each item's doc comment, so an entry whose doc comment wrapped
mid-sentence ended on a dangling word: the press latch's `release` stopped at "an earlier", `swallows` at
"true for the", and about a quarter of the file's entries were cut off the same way.
The summary now carries the wrapped lines to the end of the first sentence, stopping at a colon that
introduces a list, so every entry reads whole. Only the clipped tails change: each completed entry keeps
its text and gains the rest of the sentence from the item's own doc comment. docs/contract-api.md is
regenerated with it.
* contract-api.md: regenerated after the merge of main (the generator's own output, not a hand merge)
* contract-api: a summary stops at its first sentence's end inside a line
`doc_summary` only stopped at the end of a line, so a doc line that held two sentences (`... release or
cancel. A press that begins while nothing is latched is not swallowed.`) carried both, and the entry was
two sentences long.
`sentence_end` now finds the boundary inside the line: a full stop, question or exclamation mark that ends
the line, or that a space and a capital letter follow, and never a run of dots (`(LRI ... PDI)`) or one of
the short forms e.g., i.e., cf., vs., etc., approx. The summary stops there; a colon that introduces a list
below still ends it too.
docs/contract-api.md is regenerated with the rebuilt binary.
* memo keys: whether a region is open; contract-api: no Self:: link targets
A memoized view's key held the props, the `fn` and what the scope around it hands down, but not whether an
inspected region was open. A view that settled outside a region kept a run that recorded no inspection steps
(`runtime::inspect::run` notes one only while a region is open), so when a region later wrapped the unchanged
view it replayed that run and the region's record showed none of its components: the inspector listed nothing
for what the region showed.
Whether a region is open now feeds the key, one byte after the show address, so a view settled outside a
region runs in the pass that shows it inside one and records the region's steps; a run made inside a region is
not replayed outside one either. `contract::inspect_region` trials both directions and the region's recorded
components, and `record`'s doc says why. Without the key byte that trial fails.
`doc_summary` also drops the target of a link that names the item's own type (`Self::zoom_x`), which rustdoc
resolves in the source and this file has no page for: the entry keeps its reference text, as the file writes
every name it cannot link. docs/contract-api.md is regenerated with the rebuilt binary: 77 lines, the 82 link
targets and nothing else, and a second run leaves it byte-identical.
Focused trials pass: ui-contract's `contract::inspect_region` (new), `memo`, `derived` and `contract::fixes`,
ui-widgets' `memo` and `runtime::inspect` (the region's components through a replay included), and
craft-menu's `keytips`.
* docs: regenerate the contract catalog on current main
EyedropperTool::ring reads the ring the button holds and EyedropperTool::held hands it to the next pass's
tool, so an app whose sample closure borrows its state, and so rebuilds the tool every pass, paints the
ring in a pass with no pointer input too instead of flickering.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tool builds no snapping of its own: the edge snap now goes through
ToolContext::snap_of (the canvas's tolerance, View > Snap To, the
suspend key, the nearer target when both edges are in reach), and the
corner rule asks the new ToolContext::snaps_to_document_bounds. So
PerspectiveInput stays as it was and apps need no change beyond the
canvas Snap they already give.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PerspectiveInput gains `snap: Option<StartSnap>`. With it, a box drag
pressed beyond a document corner starts at that corner, and one within
the snap distance of an edge starts on the nearer edge, from the drag's
first move. Clicked corners keep their place. A size that is negative or
not finite snaps nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BrushSizeField passes on its slider field's range alert, and the picker's
output carries the head's alert as out_of_range, so the host can show it
while the picker stays open (storytold/photocraft#11817).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts: the paragraph trials keep both sides' trials; the pass pointer keeps upstream's stirred (moved to a new position) and the port's moved (a move event this pass); the shell's slot visibility, overlay and covering tests combine the port's page rule with upstream's standard-mode bar reveal.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>