Commit Graph
60 Commits
Author SHA1 Message Date
aiongg 5d8b0a94de Hand-stroked dividers and edges use the rule painter
The split button's divider, the timeline track header's divider and the table
outline and grid header edges paint through Draw::rule and Draw::rule_with, the
one pixel-snapped line, instead of their own strokes.
2026-11-12 14:32:41 +00:00
aiongg be6d1a3332 Rules draw one physical pixel at every scale
Dividers, edges and grid lines are hairlines, as the old Divider was; the drop
mark keeps its medium width. RuleLook carries a RuleWidth that the rule painter
resolves to whole physical pixels.
2026-11-12 14:32:41 +00:00
aiongg 7d0bf2b01a Scrub sources: a drag on a field that is not in edit scrubs it (NumberField, every TimecodeField), a press that begins in edit stays the text's, and a drag from the popup slider's chevron moves the value as far as the slider would and its release closes the slider 2026-11-12 14:32:41 +00:00
aiongg 2da81e2559 Select: the open list is one gesture, each row the keys reach is proposed and closing without a pick puts the value back; typing on the closed field opens the list on the first match (KeyUse::with_type_ahead) 2026-11-12 14:32:41 +00:00
aiongg 2d16976d72 Whole-number fields: table counts and warp distortion write whole numbers; a fine key step moves a share of the step only where the field's decimals show it 2026-11-12 14:32:41 +00:00
aiongg d1a90a2447 Toggles open on the press by default: menu and dropdown openers (split button arrow, breadcrumb ellipsis, number field chevrons, bar overflow, panel menu) let press, drag, release pick a row; on_click keeps the release for the iconic flyout and the date calendar 2026-11-12 14:32:41 +00:00
aiongg eb8dfdb97f Revealed trailing parts and the list's row menu: trailing_part_revealed shows a part on a hovered or selected row, while it has focus or while its menu is open; List::row_menu gives every row a More button whose click asks for the row's menu as a secondary click does 2026-11-12 14:32:41 +00:00
aiongg 1ae7661643 Rename draft: a collection gives the text a rename field opens with (List and Table rename_draft); PageList opens it empty with several rows picked and starts a rename from the app's command 2026-11-12 14:32:41 +00:00
aiongg 23b1feabac Row press on toggle cells: the collection hands the press it holds on a row to the row as RowState::pressed, a held part paints pressed, and a toggle cell shows a press on itself or, with row_press, on its row; BrushSectionList's enable boxes follow the row 2026-11-12 14:32:41 +00:00
aiongg 4d6ff42eb7 Selection parts: read-only text any component can make selectable
PartsCx::selectable_text declares a run as a selection part with a press-only
stop in no group; step 8b gives the focused one Select All and Copy; and
PaintUi::selectable_text shows it through the text widget with the run's own
galley, in the state's colours. Notice title and message, MetadataTable values
(ListRow::cell_selectable) and SelectableText use it. SelectableText loses its
Bind and Input::Text path and becomes a label whose value is its text. The
suite presses the focus registration's press-only stops when Tab reaches
nothing, instead of guessing from Input::Text and a read-only node.
2026-11-12 14:32:41 +00:00
aiongg 79da12f8c9 Overlay trials: the modal and sampler dialogs start focus on their first stop explicitly (K17)
A dialog starts on its first field, else its default button, else nothing. These trials' content is a plain focusable
leaf, and they test focus return and the sampler keeping key focus, so they ask for Initial::First.
2026-11-12 14:32:41 +00:00
aiongg a4dbca651e Trial: opening a popover closes the open one; the Recovery story starts with Recover available (K17, compare-3 17) 2026-11-12 14:32:41 +00:00
aiongg 152a5b19d6 Container header parts: a container keeps room at its header's edges for its own parts, whose stops sit where they do; DockGroup's drag band and panel menu button are its parts, its tabs and host items share one line, and TabStrip reports a drag or double click on its empty room 2026-11-12 14:32:41 +00:00
aiongg 73fc9dc801 Collection members run their parts, update and finish: a member's parts are sensed with it, its output gives the item event, its parts' nodes sit under its node; TabStrip's tabs are members 2026-11-12 14:32:41 +00:00
aiongg dae805591c SwatchPalette wells, ThemeChip and rail buttons take the old sizes from shared tokens
SwatchTable's cells can be wells at the control height (`wells`), as a
palette's swatches are; SwatchPalette shows its colours that way. A theme
chip is a medium control's height by a small one's inside `space.pad.control`.
A rail button (FlyoutButton) is `size.rail.button` square.
2026-11-12 14:32:41 +00:00
aiongg 8c3715256c Pictures take the width they are given
`MeasureCx::picture_width`: a picture takes its column's room, between its
least and its most, and its least at `Proposal::Min`. CurveGraph's own rule
moves onto it. Band pictures (the point picker and the colour area, the
histogram, the vectorscope, the navigator preview, the preview pane, the
reading view) take the width at least `size.plot.width` and keep their
height; the colour wheel and disc are squares between `size.plot.height`
and `size.plot.width`.

ColorWheel, ScopePanel's plots and the ColorPicker area fill the card's
width as the old ones did.
2026-11-12 14:32:41 +00:00
aiongg 52e81f80ae Grid columns keep their least: a column that takes its room leaves the others theirs
A grid's measuring run measures each content column in the room the other
columns leave at their least. When the columns do not fit beside each other,
it asks every column for its least in a probe sweep (every leaf at its least,
no column bounded) and measures once more: a content column in the room the
others leave at their least, a fill column never below its least. Columns
whose leasts do not fit beside each other are laid out one under another
across the room, so no column is cut. The leasts and the stacked layout are
recorded for the real run.

A wrapped text's least is its widest word: a line breaks between words.

FontsPanelView's list column and ColorPicker Full's channel column no longer
collapse at card width.
2026-11-12 14:32:41 +00:00
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 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 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 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 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 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 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 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 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 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 037df036e0 Gallery inspector: inspected regions, the Inspect panel and the overlay over the selected card
inspect::record shows a region and records, in real runs, every component shown in it (box, box inside its padding,
depth, and the access facts step 16 wrote, named by their labels as a screen reader reads them), the sensing core's
hit areas of those components at their least size in tree order, and the focus stops numbered in Tab order: every
member of a roving group, whatever the platform's Tab setting. Inside a region nodes are reported whether or not
AccessKit runs. The record is kept as a value: a reader shown earlier in the pass (inspect::recorded,
inspect::pointed) reruns the pass when the record changes. Recording is on in fixture frames and inside an open
region; FrameInput.inspect and the focus state's all_controls go.

InspectOverlay (display) draws a record as the old gallery inspector did, cut to the region: padding bands, hit
areas with small ones flagged, numbered focus badges, and a marquee on the element the list points at.

Row, Stack and Grid take indent(levels), a start padding of space.pad.regular per level, and hover(), which gives
the root Sense::HOVER so its response reports the pointer. Text takes italic().

While the Inspect panel is in front of the components workspace and no Variants view is open, the selected card of
the Overview or of the selected component's tab shows each story as an inspected region with the overlay over it.
The Inspect panel lists the Padding, Hit areas and Focus order switches, the flag note, one section per story with a
row per element (number, role, name, value, actions, state, "no label"), indented by depth, whose hover marks the
element on the card, and the declared facts as the last section.
2026-11-12 14:32:40 +00:00
aiongg 3ad4bdd55c Collection keys: arrows move the focus in tab strips and preset browsers
Where a collection's arrows leave the selection (arrows_select off), Enter selects the
lead before it activates it, as the setting promised. The tab strip and the preset
browser's list and grid turn arrows_select off: the arrows move the focus, and Space,
Enter or a click shows the tab or picks the preset.
2026-11-12 14:32:40 +00:00
aiongg 939a80c85a Collection keys: type-ahead is a collection setting, off for lists
CollectionProps::type_ahead decides whether typed letters move the lead; the key role
reads it instead of turning type-ahead on for every collection, so a focused list leaves
single-letter tool keys to the app. Popup option lists, the hyperlink place list and the
gallery's component and token lists turn it on. The suite's type-ahead case runs where
the focused stop takes type-ahead.
2026-11-12 14:32:39 +00:00
aiongg f74d963e8f Collection keys: Cmd+] and Cmd+[ move the selected items, Shift to the ends
The stacking keys replace Alt+Up and Alt+Down as the reorder keys of every reorderable
collection and section stack, from one table in the key table. ] moves toward the front:
the start of a vertical order, later in a horizontal strip. The keys move the selection
as a block (the lead alone when it is not selected), with the tree rule for into_groups;
the single-row nudge helpers go. Alt+Down is Open everywhere.
2026-11-12 14:32:39 +00:00
aiongg e64dd901d9 Tooltips: a control that paints no label shows its own label, and the hints and names the old controls showed
A control whose own label is not painted (an icon, a glyph label, a caption-less tile, a chip, the stroke button) shows that label as its tooltip inside a field too; one named only by its field label shows none. Restores the old tooltips of the ReferencePoint points, the list disclosure, the PeopleBar avatars, the recent files, Distribute Rows Evenly, a page that failed to render, the font class mark (ListRow::trailing_named) and the Character hints (SideLabel::tooltip).
2026-11-12 14:32:39 +00:00
aiongg 3a4cf8a8ba Muted ink for secondary glyphs and the menu bar's no-match line
VariantLook::muted: text.muted on a neutral outline or ghost button, the variant's text otherwise. SplitButton's
chevron reads it. The menu bar's "No matching commands" line is muted text.
2026-11-12 14:32:39 +00:00
aiongg c7716b5ea7 Surface kinds while on: a toggle button that is on sinks, the selected segment rises
on_surface draws a raised button pressed in while on; the selected segment takes the raised kind with its edge in
place of the flat one, so a bevelled theme shows the raised outline. Trials for the kinds, the field's inner line and
the dropdown fill.
2026-11-12 14:32:39 +00:00
aiongg 8b2e44fa98 State looks: one state layer, check indicator press and well, dropdown and field edges
- StyleCx::state_layer is the one hover and press fill; PartBuilder::state_layer declares a part whose look it is,
  and the paint step fills such parts under the component's paint (Rating stars, Breadcrumb crumbs, the reset dot).
  Button's local overlay goes.
- The paint step's surface shapes move into one function, which Draw::surface_look also paints for a part.
- Check box, radio and switch draw their well on the sunken surface (the bevel in bevelled themes), take the press
  fill while pressed and the accent's pressed shade while on and pressed.
- StyleCx::dropdown: the closed box of Select, TreePicker, PresetPicker and the stroke button takes the hover fill
  under the pointer and while open.
- A focused invalid field keeps its focus edge and draws the failure colour as a line inside it (SurfaceLook::inner).
- The selected segment keeps hover and press looks; the disclosure glyph lights under the pointer; the EdgePicker's
  hovered line widens in its own colour; the chip body wears an outline badge, so it takes the hover fill.
- SurfaceLook::kind_on: the kind a look takes while on.
2026-11-12 14:32:39 +00:00