Commit Graph
99 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 a53d901967 One scroll bar painter for overlay and docked bars
ScrollBarLook names its kind: an overlay bar over the content, or a docked bar
beside the view with a chrome track, a divider on the side facing the view and
an inset thumb. ScrollBar::thumb is the one thumb geometry, which PartsCx::scroll
declares and ScrollBar::shapes paints; the canvas scroll bars and the timeline's
bar paint through Draw::scroll_bar instead of their own copies.
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 65256b213a Focus left by a removed stop skips press-only stops: a dismissed toast hands focus to the next card's Dismiss, not to its selectable message 2026-11-12 14:32:41 +00:00
aiongg 5e5ec39ec1 One drop mark look: the drop rule is a thick accent band on a thin halo of the panel surface, for lines and along the inside of row and area marks 2026-11-12 14:32:41 +00:00
aiongg fa1466efa4 Drag badge text: CollectionProps::drag_count names the dragged items with a count word (PageThumbnails: "1 page", "3 pages"); a dragged section shows its title by the pointer 2026-11-12 14:32:41 +00:00
aiongg 23934cdd6f Collection response reports the drop a release would make: PendingDrop (own reorder, items from another collection, OS files) while the collection's target wins; LayersPanel previews it as drop_preview, PageThumbnails reports drop_target and file_gap 2026-11-12 14:32:41 +00:00
aiongg 6bc2e2ed7c Table column move through the drag session: a header drag marks the gap it would drop in with the drop line, and the release moves the column there 2026-11-12 14:32:41 +00:00
aiongg 1e1f36fbea Timecode caret: Left or Right with the whole text selected starts from its last digit (TextOptions::arrows_from_end) 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 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 4b948bd951 A modal without a scrim takes the presses below it: every modal shows its cover, painted only for Backdrop::Scrim (K17)
An app-modal ViewportWindow with Backdrop::None, and a BlockingOverlay without a scrim, let presses through to the
window under them. The window trial presses the button under the window by position: a modal layer hides what is under
it from the accessibility tree.
2026-11-12 14:32:41 +00:00
aiongg 81c22f3469 Old modality: Tour and ViewportWindow block nothing, Preferences is app-modal, a tool window ignores Escape (K17, D10)
The tour card is a popup that blocks and dims nothing and stays on an outside press; Backdrop::ScrimWithHole and the
cover layer's hole go with it. ViewportWindow blocks nothing until app_modal(backdrop). A modeless Dialog without a
footer ignores Escape; a modal one or one with a footer closes on it. PreferencesWindow drops modeless and takes the
shared app-modal path (blocked cursor, refused close).
2026-11-12 14:32:41 +00:00
aiongg e58aabe37e Focus returns to where it came from: the drawer to Edit Toolbar, the last toast to the stop before the stack (K17)
A layer opened from a recorded opener returns focus to that opener's stop. ToolRailOutput::edit_toolbar carries the
button's response and ToolbarDrawer::opened_by takes it; the drawer still hangs from the rail. The toast layer is a
non-trapping scope (FocusPolicy::TAB_LAYER) whose opener is the stop focus entered it from, so the last card's end
returns focus there; an earlier card's end hands it to the next card.
2026-11-12 14:32:41 +00:00
aiongg dba0f0d3fa Dialog focus: the first field on open, the new tab stop after Set, the password field after reveal (K17)
A dialog opens on its first text or number field, else its default button, else nothing (Initial::FirstField, the
DIALOG policy's default). The per-dialog first-pass focus requests in Markers, Slice options and Page Setup go: the rule
gives the same field. focus::request reports whether it took effect, so a pending request outlives a measuring run.
2026-11-12 14:32:41 +00:00
aiongg 47fdacf9d2 Under a modal layer, a dialog command reaches only instances inside the top modal or the canvas it holds open; Cmd+= in PagePreview leaves the PageView behind it alone 2026-11-12 14:32:41 +00:00
aiongg b085152bed Activation suite: the tree signature is keyed by node
A node that goes or appears (a closed tab whose place the next one takes) is an effect, and the order the tree
reports its nodes in is not.
2026-11-12 14:32:41 +00:00
aiongg 4737161b83 Content inside a label shows before the label scope opens
The size samples in LayersOptionsDialog registered as a second control of their radio's label scope, so the label
named the group and left the radio without a name.
2026-11-12 14:32:41 +00:00
aiongg 78dd6993fd A control narrows its response to its own rect only when it claimed a label
The comparison of the hit rect with the rect was true for a NaN rect, and narrowing it panicked.
2026-11-12 14:32:41 +00:00
aiongg 5ce8eccb0b A move or Enter key goes to a scoped command only when a scope around the focus binds it
binds_scoped took any command outside the app scope that the keymap lookup picked, including other panels' bindings
ranked by fallthrough or sharing. A linked set such as the Tour's Left and Right then took the arrows from every
roving group that does not act on its moves. Only a command of a scope around the focused chain counts now.
2026-11-12 14:32:41 +00:00
aiongg 8e34b58bc3 Header parts measure inside a layout-memory boundary: the faces a container measures for its header parts are no content of the body around, so no transcript keeps or checks them; DockGroup's menu button takes its side from the header slot 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 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 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 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 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 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 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 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 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 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