Commit Graph
243 Commits
Author SHA1 Message Date
aiongg bcd07c7167 F-5 docs: the hover band lies inside the view; the host's clock is the last painting pass 2026-11-13 01:08:19 +00:00
aiongg 74a1426e57 F-5 review: the host reports the autoscroll step from the pass clock; the hover band is size.hit.edge inside the view's rect; a secondary background press leaves a text session open 2026-11-13 01:08:19 +00:00
aiongg 5b22727818 Story suite: a shown run lies inside its own clip, and a run the base shot shows whole stays whole under each variant 2026-11-13 00:45:28 +00:00
aiongg fcc93550ef docs: contract-api and components-index regenerated 2026-11-12 22:55:41 +00:00
aiongg 4e7ab74238 docs: contract-api and components-index regenerated 2026-11-12 22:48:32 +00:00
aiongg d3dedf55cb docs: contract-api and components-index regenerated 2026-11-12 22:40:25 +00:00
aiongg 01f146b931 Dialogs: automation answers only what a user can press
StandardPrompt and UnsavedChangesDialog build their buttons, their choice
check and their programmatic OK from one offered list; a choice without an
enabled button is refused. HostedParamDialog opens its values once (remembered
values, defaults) before its first show, OK or set, through the helper the
first pass uses; OK builds its result through one helper; set refuses rows
that are hidden or disabled and reads the value as its row's kind.
set_json_field takes the Context. Automation lists dialog ids as decimal
strings, takes a string or a number, and names only the host's dialogs.
2026-11-12 22:27:40 +00:00
aiongg e51e929e48 Dialogs: automation surface for every StackDialog
StackDialog gains json_fields and set_json_field; DialogHost lists its open
dialogs with their fields, sets one by id, and confirms or cancels by id
whatever the type. HostedParamDialog (values by parameter row, with a
programmatic OK), StandardPrompt and UnsavedChangesDialog (their choice)
implement them. craft_automation::dialogs runs ui.dialog.set/confirm/cancel
on a host and lists its dialogs for ui.inspect.
2026-11-12 22:27:40 +00:00
aiongg 15fe3dba92 docs: contract-api and components-index regenerated 2026-11-12 22:04:33 +00:00
aiongg 1cc518f92d Icon strokes scale with the glyph: one stroke.icon role, a share of the icon side (Lucide at 1.75 of 24), for stroke sets and the suite's stroke drawings alike 2026-11-12 15:23:58 +00:00
aiongg 237e2a1566 Panel footer actions show their icons at the tool size (size.icon.md) 2026-11-12 15:23:58 +00:00
aiongg 1894665c49 docs: contract-api and components-index regenerated 2026-11-12 15:16:45 +00:00
aiongg 51efda762e Panel options: thumbnail size samples take their own size role
The samples beside the thumbnail size choices of a panel's options dialog (Layers, Channels, Paths) are larger than the
panel's own thumbnails, so the three choices read apart. They take `size.thumb.sample.{sm,md,lg}`: 36, 48 and 96 in
Compact, 36, 68 and 96 in Comfortable (twice the row thumbnails, as the old dialog drew them; PhotoCraft draws 38, 68
and 96). A Picture shows one through `PictureSize::Sample`, and the Layers options dialog's samples use it.
2026-11-12 15:12:11 +00:00
aiongg fc7d05a5fc NumberField: monospace digits, the unit apart at the end of the value area
The digits take the mono type role, as the timecode field does. The unit is a
smaller faint caption pinned at the end of the value area with the inline gap,
so the number centres in the room before it and stacked fields line their
units up. Units::suffix goes; callers pass the unit's symbol.
2026-11-12 15:12:11 +00:00
aiongg 74e6a26b18 A List reveal places the row by measured heights; the Layers panel reveals what the app names, per document
A reveal (requested, key move, page switch, type-ahead, rename) scrolled by the item layout's
extents, in which rows no pass built yet have the estimate. The rows the pass then built took
their measured heights and pushed an auto row taller than the estimate out of view. The List
now aims the reveal in the content step, before it builds the rows: it builds and measures the
auto rows that will share the view with the revealed row, up to it, that have no kept height,
and aims again until the row is placed by measured heights. The build takes those measures and
does not measure the rows again, and the frame runs once. The per-row measure is shared with the
widest-row measure.

LayersPanel no longer compares the active layer with the last pass's (Session.seen_active and
the auto-reveal go): the app calls reveal(layer) in the pass its active layer changes.
LayersPanel::document(key) keys the rows List per document, so each document keeps its scroll
position and lead.

Trials: ui-widgets List reveal past unbuilt taller rows (one pass, no row measured twice);
craft-layers panel_reveal (reveal with Open, row in view, per-document scroll, counts).
2026-11-12 15:12:09 +00:00
aiongg eef6832088 contract-api and components-index: regenerated (Component::RULE, shrink order) 2026-11-12 14:32:52 +00:00
aiongg 9471d93e9b contract-api and components-index: regenerated (filter types, band fill, list command form, SwatchPair glyphs) 2026-11-12 14:32:51 +00:00
aiongg ed285c40f5 contract-api: dialog width roles and the wrap width 2026-11-12 14:32:51 +00:00
aiongg d62a71318a Dialog width: a dialog opens at least size.dialog.least wide and its paragraphs wrap at size.dialog.wrap, through ContainerProps::least_width and a new wrap_width; content that cannot wrap widens it 2026-11-12 14:32:51 +00:00
aiongg 69d613ff2a contract-api and components-index: regenerated (list part drags, edge press, empty-space menu) 2026-11-12 14:32:51 +00:00
aiongg 71ee596134 contract-api and components-index: regenerated (DataMode, data_shapes) 2026-11-12 14:32:51 +00:00
aiongg b19f52dde8 Content painters paint data colours in the component's data mode
DataMode holds the one mapping of a data colour (DataMode::color) and maps
every colour of a shape with it (DataMode::shape). ContentPainterCx gets
data_shapes for shapes whose colours are data, and its data methods
(picture, checker, checker_with, ramp) paint through the mode, sharing
data_picture and data_checker with Draw::texture and Draw::checker. A
States component's ramps, pictures and checkers in a content painter dim
while it paints its Disabled state, as its Draw's data colours do.

The histogram's bins and outlines and the notes editor's document text
paint through data_shapes.
2026-11-12 14:32:51 +00:00
aiongg 67b6471bef contract-api and components-index: regenerated (FooterRegion::inset) 2026-11-12 14:32:51 +00:00
aiongg 58343dfe88 contract-api: regenerated (Component::padding, PartsCx::rows_view, Draw::text by alignment) 2026-11-12 14:32:50 +00:00
aiongg 08b37f0edf contract-api and components-index: regenerated (disabled data colours) 2026-11-12 14:32:50 +00:00
aiongg 5736aded10 A disabled component dims its data colours: PaintUi::draw paints them at Opacity::DISABLED while the component paints its Disabled state, keeping each hue; one data mode in Draw beside the inactive part's disabled fill, which faces of inactive parts now take too. The icon badge paints through Draw, IconButton's own badge prop goes (IconSpec::badge is the one badge), and IconButton gets a Badge story 2026-11-12 14:32:50 +00:00
aiongg 157f7a05b0 contract-api and components-index: regenerated (label columns) 2026-11-12 14:32:50 +00:00
aiongg 28cb372926 contract-api and components-index: regenerated (row heights, chart roles, polygon fill) 2026-11-12 14:32:50 +00:00
aiongg c51f6a103e Text row height role: size.row.text is one body line and space.gap.tight (compact 18, comfortable 21), at most a small control and at least the body line, for read-only display tables 2026-11-12 14:32:50 +00:00
aiongg 477b080845 Title rows: a note runs on after the title in muted body text, and the subtitle sits at the band's end in muted caption text; the gallery card shows its story name as the note, the Inspector its target's kind as the subtitle 2026-11-12 14:32:50 +00:00
aiongg b54195e805 One path row: PathRow, a path field and a Browse button that reports the press; ParamRows and Watermark ask with a PathRequest, PathField picks through the file service 2026-11-12 14:32:50 +00:00
aiongg 793497ca28 contract-api: regenerated (glyph roles) 2026-11-12 14:32:50 +00:00
aiongg f0c46a57a8 Glyph roles for icon-only buttons: a container sets the role its buttons show their glyph in (child_glyphs, or glyphs on one component), so the tool rail draws size.icon.lg icons resting in text.muted, the panel rail rests in text.faint and AlignBar draws size.icon.md 2026-11-12 14:32:50 +00:00
aiongg a0693ca0b3 contract-api: regenerated (ControlMetrics field widths) 2026-11-12 14:32:49 +00:00
aiongg efc398a2f4 Timeline panel: headers sized by content, ruler on the lanes' origin, whole timecode
- HeaderColumns: one set of header columns per pass, worked out from the model before the view shows. The switch
  columns are the ones some track has; the name column is the widest track name with its pads and indent, or the
  width the user dragged; the headers are at least as wide as the timecode and toolbar block over them. Every pane's
  TrackStack, the top strip's head column and the TimelineView's inset (header_extent) take the same extent.
- The top strip's head column is the header extent and its columns touch; the marker strip and the ruler sit in a
  fill-width stack, so they span the time area from where the lanes start.
- BodyLayout::grid takes owned or borrowed columns.
- TimecodeField::large keeps the timecode face (equal-width digits), so its widest sample is its widest text.
- MeasureCx::field_text: an editable text's room with the caret past its last letter. TextField, NumberField,
  TimecodeField, DateField, ComboBox and the font picker size by it.
- Trial: the ruler starts where the lanes do, and no header has a column no track has.
2026-11-12 14:32:49 +00:00
aiongg 7fcd160eca Field and number widths per control size: size.length.field and size.length.number hold sm and md, and controls read them through ControlMetrics, so a field in a small options bar is narrower than one in a dialog 2026-11-12 14:32:49 +00:00
aiongg 9604d6b294 Regenerate docs/contract-api.md 2026-11-12 14:32:49 +00:00
aiongg 4d21692f41 Regenerate docs/components-index.md 2026-11-12 14:32:49 +00:00
aiongg 38fb06debd Runtime: with nothing focused, the clipboard events and edit chords of the canvas's edit set stay in egui for it 2026-11-12 14:32:49 +00:00
aiongg b55b820460 Runtime: the press rule moves only the framework's focus; the app's own widgets keep egui's surrender rule with the app's option 2026-11-12 14:32:49 +00:00
aiongg 9d2658dbc6 egui fork 5493e3aa: kittest's eframe harness runs App::raw_input_hook before every pass 2026-11-12 14:32:48 +00:00
aiongg 7c02fcef14 Runtime: a bare Tab with nothing focused in a window without focus stops is egui's, which moves its own focus 2026-11-12 14:32:48 +00:00
aiongg fbea3a0574 Runtime: with nothing focused, a canvas that keeps Tab gets the bare Tab from egui and nothing toggles 2026-11-12 14:32:48 +00:00
aiongg 564f089319 Regenerate docs/contract-api.md 2026-11-12 14:32:48 +00:00
aiongg 0599e9862e Runtime: a component clicks by the press lifecycle; egui's click options stay the app's 2026-11-12 14:32:48 +00:00
aiongg 0d521f98a7 Runtime: egui moves focus among an app's own widgets with the arrows and the Tab it keeps 2026-11-12 14:32:48 +00:00
aiongg 0c45ae2dc0 Runtime: an Escape the key stage takes ends egui's own drag, as egui's Escape does 2026-11-12 14:32:48 +00:00
aiongg 43549ad9db Runtime: runtime::keys re-exports the types an app reads window intents with 2026-11-12 14:32:48 +00:00
aiongg 6c76c5c915 Runtime: the window's pane and menu-bar keys are commands an app binding beats
F6, Shift+F6 and F10 become the window.nextPane, window.previousPane and
window.focusMenuBar commands (NavCommand). The keymap build lists the
chords bound to them and to the chrome commands once, and the key stage
takes a press only by that list, so rebinding moves the keys and unbinding
frees them. A default chord of these commands that another command also
binds is that command's: the app's binding beats the framework's default.
Menu and palette fires of NavCommand move panes or focus the menu bar in
the focused window's next pass.
2026-11-12 14:32:48 +00:00
aiongg 9dfdb4c26f Runtime: a host declares its own egui canvas as the window's document canvas
focus::host_canvas registers the app's own egui widget as a canvas stop
through the stop registration a framework canvas uses, so a bare Tab
toggles that window's panels, and the canvas takes keys as its KeyUse says
while it has focus.
2026-11-12 14:32:48 +00:00