Commit Graph
1781 Commits
Author SHA1 Message Date
aiongg dfd18d09a3 A fill body in a shrinking row counts at its content; a thumbnail slider narrows
A body that fills the rest of a bounded row reported only the room its
siblings left, so the row did not see that its content needed more and cut it
at the view. It now counts at its content width, and the units narrow to leave
it that.

ThumbnailSlider measures its track at the proposal it is given, and a slider's
track narrows to a short field's length at its least.
2026-11-12 14:32:41 +00:00
aiongg 53d11c3a1b Fields narrow past their own least where a row shrinks them; the cut is shared
`Metrics::least_width` is the floor a least measure takes in place of
`min_size`'s width. A field keeps its 96-point floor where it takes its own
width and, in a row that shrinks it, narrows to its padding and one glyph plus
what its content measure adds there (a select face's ellipsis and chevron, a
text field's adornments).

A short row takes its shortfall from every unit in proportion to what each can
give, so all reach their least together.
2026-11-12 14:32:41 +00:00
aiongg 47810e27cb Text editor runs in a child that takes no place in the flow
The editor of a text field ran in a scope of the parent Ui, which moved the
parent's cursor back to the end of the text part after the root had taken its
place: a member after a search field started inside the field's clear button.
2026-11-12 14:32:41 +00:00
aiongg 2d6f600cba Check box, switch, radio and segmented take Enter as well as Space
The controls use the default activation keys. Arrows in a radio group move
focus without picking; Enter or Space picks.
2026-11-12 14:32:41 +00:00
aiongg 9e74700020 Cursor rules: the pointing hand by role, the resize cursor over a scrub source
An enabled link, check box, radio button, switch or colour well shows the
pointing hand over its own shape, label included, through Role::hover_cursor;
a hovered part's declared cursor comes first. A scrub's source (the field, or
the label that scrubs it) shows the horizontal resize cursor. Breadcrumb
segments declare the pointing hand and PointPicker's well the crosshair.
2026-11-12 14:32:41 +00:00
aiongg 83e0dc788b Radio and RadioGroup stories: the old zoom choice and the unit groups
The default stories show a column of options with a long wrapping label and
disabled options, and two unit groups side by side; members spread over nested
layouts keep their own story.
2026-11-12 14:32:41 +00:00
aiongg 9ae26d9f7f A check box, radio button or switch takes its own label into its hit target
The leaf label step offers its label to a child that draws only its mark; the
child senses over mark, gap and label, so a press on the label hovers, presses
and activates it in the same pass. The queued next-pass activation goes. A label
after its control wraps with the control on its first line. BodyCx::labelled_with
shows content inside the label (LayersOptionsDialog's size samples).
2026-11-12 14:32:41 +00:00
aiongg 5815b66839 PageView: the page and arrow keys of the old view through a canvas that leaves its keys to its body, and the zoom and pan decided from the canvas's settled view 2026-11-12 14:32:41 +00:00
aiongg 823a586f9c Scoped move keys: a widget that does not act on its moves leaves a move key a scoped command binds to it; PagePreview steps from anywhere in the preview 2026-11-12 14:32:41 +00:00
aiongg 0f00de8bd2 Hold-to-compare: holding the Preview box shows the unfiltered picture
ParamDialogOutput::comparing is true while the Preview check box is on and held; the box toggles at the release,
so preview_on stays as it was while held. contract::pressed reads the held press from a component's response.
The ParamDialog preview stories swap to the unfiltered picture while comparing.
2026-11-12 14:32:40 +00:00
aiongg 863aedd7bd Dialog-local undo: FormDialog::history steps the dialog's own value
A FormDialog with history keeps an EditHistory of its value while it is open. Undo and Redo reach it through
Commands::take_step, after a focused text field's own steps. A change becomes a step once no gesture runs in
the body: runtime::edit::watch_gestures says whether a component's gesture ran inside the body call, counted
at the apply step. ParamDialog takes the history prop; the Contour editor and the ParamDialog stories turn it on.
2026-11-12 14:32:40 +00:00
aiongg 7c6c187a45 Read-only text is selectable and Tab passes over it; Properties values are selectable text
A read-only text stop takes focus from a press only (Stop::press_only), so the user can select and copy it
while Tab and F6 pass over it, as selectable labels did. PropertiesDialog shows its read-only values with
SelectableText. The suite reaches read-only text with a press where Tab passes over it.
2026-11-12 14:32:40 +00:00
aiongg 476602d4a3 A filling story's card is as tall as its content, and content taller than the room shares it
Along a height its parent sizes from its content, a container that fills takes its content height, at most the
room it is offered. When the content is taller, the measuring run is taken back and the container is laid out as
given the room, so its list and the bar under it share it; a record of the content height lets later runs and kept
transcripts lay it out the same. room_height only offers a finite room inside a scroll: a gallery card is as tall as
its story's content, at most the view, as the old gallery's tiles were.

layout_memory::draft runs a measuring run whose hand-forwards can be taken back once its result is seen: records,
kept transcripts, the open transcript's items, leaves and inputs, and each contribution (Contribution::undo for
column widths, label control minimums and reads). steps::id::draft takes the Auto id ordinals back with it. The
shrinking row's least probe is a draft taken back that reads nothing from outside.

A scrolling collection that fills keeps to its measured height in the real run under a body sized from its content,
so a footer under it stays below its rows. The PlacesTree story keeps the old 380 pt box.
2026-11-12 14:32:40 +00:00
aiongg 04ceb32109 design-lint: tests are out of scope; the egui adapter and the test fixtures are exempt with their reasons 2026-11-12 14:32:40 +00:00
aiongg b3bd1897a4 Overview: a settled card repaints its last run
Each card sits in a settling Lazy inside its row: a settled frame of the
Overview runs no card. Lazy::settles notes that a settled reader needs a
binding that stays in place between frames.
2026-11-12 14:32:40 +00:00
aiongg 3a58d2262f LayersPanel effects keys: Shift+Left and Right are no moves in stacked rows, and the panel takes Show and Hide Effects on its own scope 2026-11-12 14:32:40 +00:00
aiongg bd04ee8b5e TileGrid keys: Cmd/Ctrl+digit ratings, Cmd/Ctrl + = / - / 0 zoom steps, and a slow click on the caption renames; the story turns Bridge's keys on 2026-11-12 14:32:40 +00:00
aiongg c5a38b0221 Collection keys: a toggle column's key flips it on the selected rows and shows in the cell's tooltip; brush lock on Shift+Space, the layers eye on the app's visibility key 2026-11-12 14:32:40 +00:00
aiongg 540c932a0e Collection keys: Space can preview, Ctrl+Space toggles the lead's pick, Space flips Include in the actions panel 2026-11-12 14:32:40 +00:00
aiongg 06d8d76868 Footer content reaches the dialog's body context; GuideLayout's Preview under the side buttons
FooterCx::dialog gives footer content the dialog's body context, as settle_buttons and
on_pick have it. FormDialog::footer_value edits the bound value from the footer, and New
Guide Layout's Preview check box uses it under the side buttons.
2026-11-12 14:32:40 +00:00
aiongg e4075062c5 GuideLayoutDialog: buttons in the side column 2026-11-12 14:32:40 +00:00
aiongg d33abb64c6 FindReplace: the status line under the options, last in the body 2026-11-12 14:32:40 +00:00
aiongg 91fec0031d Side button columns in the dialogs that had them (K16)
FindReplace, Hyperlink, Paragraph, Check Spelling, Marker, the Contour editor, ListManager
and ParamDialog with a preview put their buttons in the side column. FormDialog takes extra
footer buttons (ResetFooter::extra, ResetPick::Extra) in place of hand-made buttons in
footer_extra; ParamDialog's Preview check box sits under the buttons. FileListPicker's
buttons stand beside the list through Stack::footer_beside, one width.
2026-11-12 14:32:40 +00:00
aiongg a75475167c Dialog side buttons: a column of one width beside the body (K16)
Button::fill_width joins a button to the content-column fill; FooterBar::column stacks
the members at one width, Accept, Cancel, then the others on every platform; and
Dialog::side_buttons puts the footer at the top of a full-height end region with the
footer content under the buttons.
2026-11-12 14:32:40 +00:00
aiongg 9eeb3cc7a9 Suites leave out changes made by keys lent to a canvas session control
The key stage counts the lent keys session members take (keys::lent_taken).
The activation and drive suites read it around their input: a key the canvas
lent its session control is that control's, with no AccessKit twin on the
focused stop.
2026-11-12 14:32:40 +00:00
aiongg 714301c54f Trials: session keys before the tool, Insert on an anchor, the keyed pasteboard menu, Transform Symmetry's press 2026-11-12 14:32:40 +00:00
aiongg 4a5a6831e9 Canvas overlays: Insert, the keyed pasteboard menu and Delete on a selected guide
BezierOverlay reports an insert halfway along the segment leaving the picked
anchor on Insert, and ArtboardOverlay adds a board on the right of the picked
one. The Menu key or Shift+F10 on the focused canvas reaches the background's
controls (BackgroundPress::context_key), so the pasteboard opens its menu at
the view's centre. While a guide is selected, Guides hold Delete and Backspace
on the focused canvas and remove it.
2026-11-12 14:32:40 +00:00
aiongg 54a0c063fa Canvas session controls take the canvas's Enter, Escape and arrows first
KeyUse::session marks an arena member that holds its arena's edit session.
While none of its parts has focus, the runtime lends it the Submit, Cancel and
nudge routed to its arena root and, with nothing focused, the window's; what
it leaves goes back before the canvas's tool reads them. With nothing focused
the key stage routes the arrows as window nudges, which the tool host also
offers to the tool.

CropOverlay, TransformBox, PerspectiveCropQuad and SymmetryHandles (in a
session) act on the whole frame, box, quad or centre when no part has focus.
The tool-side copies of those keys go: CropToolPass bundles the overlay's
nudges in take, TransformTool keeps Enter and Escape for the Warp phase only,
SymmetryTool and the quad's Submit and Cancel in PerspectiveCropTool go.
SymmetryTool spends a press away from the handles.
2026-11-12 14:32:40 +00:00
aiongg ce8a6d6216 Preview zoom row: a typed zoom field between the zoom buttons
PreviewZoom shows the zoom as a percent field; a typed value applies at once through PreviewView::zoomed_to, kept inside the view's zoom range. The parameter dialogs' preview row and Save for Web share it.
2026-11-12 14:32:40 +00:00
aiongg 446fcf0aa4 Full-window workspaces take Undo, Redo and the mask view keys themselves
Commands::take_step declares Undo and Redo on the instance around a body and takes the next one fired at it. Liquify, Filter Gallery, Select and Mask, Content-Aware Fill, Vanishing Point and Adaptive Wide Angle step their history from it in their own pass, cancelling an open stroke first; their public step methods go, and so does the shortcuts dialog's hand-written copy. Select and Mask runs MaskViewKeys in its body, and mask_view goes.
2026-11-12 14:32:40 +00:00
aiongg c32baa96ba Full-window canvas runs the momentary Hand and Zoom itself
Every full-window workspace pans with Space and zooms with Cmd+Space and Alt+Space: the canvas keeps its own Momentary set between passes. The opt-in builder and the copies in Fill and Vanishing Point go.
2026-11-12 14:32:40 +00:00
aiongg f64ed8da88 Lazy::settles: a settled child repaints its last run in place of running
A settling Lazy keeps its last real run: its paint, egui widget rects and
AccessKit nodes (egui's pass records, from the fork's
Context::pass_records_since), its focus transcript, and a journal of the
per-pass registrations the services take (pointer shapes and widgets,
reads, memory owners, wheel takers, drop targets, key nodes, command
instances, access emits, layout memory and lazy entries). While it is
settled it adds that run to the pass again instead of running, in view
or not, in a scroll area or not.

It runs when the pointer is over it or a press started on it, it holds
or held focus, an animation in it is off its end or a wake came, a bound
value it read was written this frame, its place, room, clip or scale
changed, its last run showed an overlay or painted on another layer, or
the frame or the one before had input other than pointer motion, an app
repaint request or a given-value edit.

The egui rev moves to aiongg/egui craft/pass-records (pass_mark,
pass_records_since, replay_pass_records on 4b93a86c5).
2026-11-12 14:32:40 +00:00
aiongg 5fded75c9b Shrinking rows: a body that does not fill the row is a unit too
A captioned field or a nested row in an unwrapped row now takes part in the
row's shrink step. Its least comes from a probe sweep that runs only when the
row is short: the content measures unbounded along x with every leaf at its
least, and it reads and leaves no layout records. The row's width for the body
becomes the room the body measures and shows in (mount_room).

A Stack body fits each leaf in flow to its room, down to the leaf's least, so
a select inside a capped field elides instead of running past its edge.

A body that fills along an axis its flow does not bound measures its content
there, as `sized` already shows it, instead of counting at zero.
2026-11-12 14:32:40 +00:00
aiongg ed0307bc1e Trial: a settled dock runs no closed menu and the same runs per group 2026-11-12 14:32:40 +00:00
aiongg 27e516f8cd A closed layer container runs no pipeline
A Layer, FullWindow or Viewport container that is closed, past its exit
fade and has no close waiting takes its id, forgets its layer and returns
its output's unshown form (Outcome::unshown) without running. Menu and
Popover outputs give one; a menu that did not run in the pass before drops
what its last open run left (letters, a typed row, a close or step).
2026-11-12 14:32:40 +00:00
aiongg 243c601e28 SwatchTable: a cell's selected ring comes from its row's flags 2026-11-12 14:32:40 +00:00
aiongg c897f3faf3 Collection members: a collection's items can be members of its run, sensed in its arena and painted as faces; SwatchTable's cells are members, SwatchCell goes 2026-11-12 14:32:40 +00:00
aiongg af4791df71 Overview: a row out of view does not run
Each row of the Overview's grid is a Lazy child of the scroll body, keyed by
its cards and the column count, so only the rows in view run their Grid and
cards. The per-card Lazy goes. A card's Panel takes its id from the card's
key, so a change of the column count keeps each card's state.

Trial: a settled pass of a short view runs as many Grids for the whole
Controls level as for a filter that lists the same cards in view.
2026-11-12 14:32:40 +00:00
aiongg 86f91ac95d The checkerboard is one textured shape from a repeating 2x2 texture, for every checkerboard (FW-151) 2026-11-12 14:32:40 +00:00
aiongg 0e9ca32073 Story readouts: a line under the story in the old stories' words
StoryOutput::readout is a line a story words about what it shows or what last happened in it;
the gallery card shows it, muted, under the story in every layout. StoryData::note keeps what a
readout needs (last event, click count) outside the story's values, so drives and Reset compare
values only. The old readout lines come back for ColorWheel, ColorPicker, SwatchPalette and
SwatchTable, GradientPalette, TipEllipse, the symmetry canvas stories, LutPicker, ColorChoice,
Swatch, LayersPanel, MediaBin, ChannelsPanel, ToolRail, StrokeEditor and StrokeButton.
2026-11-12 14:32:40 +00:00
aiongg eb850635e7 Gallery card: the start Reset compares with is noted after the story's first real run
A pass that took a kept measurement, ran only the measuring run or held the story back
noted an empty start, so every value the story made counted as a change and Reset showed
at rest on most cards of a level (ToggleButton, TipEllipse, CompareTile, CurvesPanel, ...).
2026-11-12 14:32:40 +00:00
aiongg 0bb46ce6e8 Gallery card: CardEvents carries the card's rect again, which story-render --card crops to 2026-11-12 14:32:40 +00:00
aiongg 1fe1a44fc3 Compile the component pipeline once: erase the component type behind Erased and ErasedPass
run, run_in_host, pass, the measure path and the steps that read only a type's constants, the core or the style
are non-generic. Each component type instantiates only the forwarding in contract/run/typed.rs and the steps
that read or write its value type, so an edit to the pipeline recompiles craft-ui-contract alone.
2026-11-12 14:32:40 +00:00
aiongg 0945d11e8d Bar: the end region's members sit on one row, so a rule in the trailing group is as tall as the row
The transform bar's rule before the mode switch took the whole room's
height in the end region.
2026-11-12 14:32:40 +00:00
aiongg 296adaa049 Panes: a container can rule the inner edge of the edge pane it sits in; the panel rail does
The env carries the window edge of the innermost edge pane, so the
panel rail draws the old hairline on its canvas side whichever edge the
shell docks it at, mirrored under right-to-left.
2026-11-12 14:32:40 +00:00
aiongg d9e2f6e4f2 Bars: the trailing group follows commit and cancel; parts back on their old rows
TransformBar pins Reset warp, its rule and the mode switch after commit
and cancel. The annotation toolbar puts its colour and width on a second
row, and the crop bar shows Delete Cropped Pixels and Fill on the bar.
Bar::vertical goes: the vertical tool strip is a rail.
2026-11-12 14:32:40 +00:00
aiongg c427e539c3 Bars: rules between groups, faint hints and the options bar's Home and tool icon
A Divider::vertical() is the bar's one section break: the connector,
shape and eyedropper bars, the about dialog's controls and the status
story place it where the old bars did. Hints use the faint shade.
BarHome and BarTool are the parts an options bar starts with. A
captioned control in a bar is a Field; BarCell goes.
2026-11-12 14:32:40 +00:00
aiongg 38787f5598 BarItems: a strip short of room moves whole groups into More; AlignBar's More lists every command
Neighbouring items of one section are a group the strip shows or moves
whole, as the old toolbar moved its groups. MoreMenu::Every lists every
item, as the old align bar's menu did. A vertical strip sets its groups
apart with space instead of a rule.
2026-11-12 14:32:40 +00:00
aiongg 8a99049ed8 Layout: a row in a horizontally scrolling body shrinks its leaves to the view before the body scrolls
A bar's members past the view were cut by the scroll's clip; selects and
elidable text now narrow to their least first, as the old bars' selects
elided.
2026-11-12 14:32:40 +00:00
aiongg a6c428206b story-render: a card's rect is its grid row's, since CardEvents no longer carries it 2026-11-12 14:32:40 +00:00