Commit Graph
2285 Commits
Author SHA1 Message Date
aiongg 685572eaba Suite: a row is pressed where no control lies over it, its own or one its collection draws over it (a grid's filter buttons in its header cells) 2026-11-12 14:32:50 +00:00
aiongg 860c088aa4 CellGrid chrome trial: the tag cell inline (CellAt::new is not const), unused import gone 2026-11-12 14:32:50 +00:00
aiongg dab44be31a CellGrid: row headers hold the digits of the last row the view shows (Component::padding from the rect; digits leave the style key) 2026-11-12 14:32:50 +00:00
aiongg 58faf6c40f Draw::text places a run in its rect by the run's alignment: centred header letters and row numbers, calendar dates, pin counts and the header hint 2026-11-12 14:32:50 +00:00
aiongg 99f603de6c CellGrid: the chrome over the cells stays in the rows' view, clear of the scroll bar (PartsCx::rows_view; one scroll track helper) 2026-11-12 14:32:50 +00:00
aiongg 77ebd4b848 CellGrid: filter buttons sit in the table's header cells at their own size, as a spreadsheet's filter arrows do 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 d85de0024d A content-sized body offers its children the body's width, not its end region's
The env's offered width, the room a body's children share, came from the
container's room or, in a content-sized real run, from what all its regions
took together, less only a side label's column. The end region beside the body
(a dialog's side buttons) and an inline header were left in, so a fill-width
child widened past the body region and its clip cut its end edge. The regions
record the width they give the regions beside the body on its line, and the body
offers what is left.
2026-11-12 14:32:50 +00:00
aiongg 412198c541 A label group settles its columns before a nested body's measure stands
A content-sized body inside a group (a row holding a stack of fields) measured
while the group's column was still narrower than its widest label, which came
later, and the real run placed it by that measure at the wider column: its
labels stacked inside a row measured for labels beside. The group's measuring
run now notes the narrowest column a row of a body that shows at its measured
width read; when that is narrower than the column ends, the sweep is taken back
and the content runs once more with the group opened at the settled widths. A
held body, shown across the column, does not count. The Through body's own
extent arithmetic goes: its rows always measure at the final column.
2026-11-12 14:32:50 +00:00
aiongg 57c3990393 A group's label column reaches the rows of the plain containers inside it
A section, box, stack or row inside a column group passes the group through
(Frame::Through): its labelled rows read and report the group's widths, as the
rows directly in the group do. A labelled container's body, a body on its own
mount, a scrolling body and a grid lay out apart behind a barrier. A
content-sized body measures at the group's widest label so far and hands its
rows' reach past the columns on to the frame around it, with its own padding
or the row members after the labelled one, so the group's extent covers the
widest column across its containers.
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 62ab176098 A number field's value and unit share one number cell, sized to the range's widest shown value and capped at the cell, with longer values scrolling inside it; the inside label and the chevrons take their own room beside it, so a small percent field shows 100% whole and a long-range field stays one cell wide. fit_range goes: every field sizes its value area from its range 2026-11-12 14:32:50 +00:00
aiongg 2402dff502 A settled region that showed a command state runs when the state changes
Command states are keys of the read record: a resolution a surface shows notes the state it read, the app's input notes the states it changes for the frame, and a publish notes a changed state and reruns the pass when something earlier read it. A publish is journaled, so a replayed region publishes again, and is a board effect a measuring run skips, as it skips registration. A rebuilt keymap unsettles every region. An inspection record or its pointed element changing is an edit settled readers see.
2026-11-12 14:32:50 +00:00
aiongg 6cfa0101c8 One fill for a closed polygon
PaintShape::Polygon is any closed polygon whose edges don't cross.
kit::fill_polygon fills it as one mesh: egui's edge fade around the outline
and an ear-clipped inside, so the parts of one shape meet without a seam.
Draw fills every polygon with it.

Chart wedges and area polygons fill as one polygon each, and the eyedropper
ring band as one polygon, in place of runs of convex pieces whose faded
edges left seams between them.
2026-11-12 14:32:50 +00:00
aiongg eb08ed121e Chart text takes a type role
ChartPrimitive::Text carries its TypeRole in place of a bold flag. The chart
story sets titles in BodyStrong and axis labels in Caption, as the old
gallery did, so the region labels no longer touch.
2026-11-12 14:32:50 +00:00
aiongg 73814336a4 Charts paint lines and outlines
ChartPrimitive lines paint solid or dashed in the theme's dash pattern, and
every stroke (rect, polygon, wedge, circle) paints. Widths are a named theme
width or a document width that scales with the chart's zoom. Draw::dashes
gives the theme's dash pattern. The chart story draws its axes, gridlines
and wedge gaps hairline, as the old gallery did.
2026-11-12 14:32:50 +00:00
aiongg 1c8fa69e97 Text rows: a wrapped cell keeps the room a text row has around its line, so a field with a one-line value stays a text row high 2026-11-12 14:32:50 +00:00
aiongg dbcd0978db MetadataTable: the header leaves the search text in the stack's memory for the body, as the command palette passes its query 2026-11-12 14:32:50 +00:00
aiongg 5e875680a2 Token dumps: size.row.text 2026-11-12 14:32:50 +00:00
aiongg 8b364c53b7 MetadataTable: the search field sits in the header region of the table's Stack, inset at its sides only, so the first group starts under the field; the rows are text rows; Stack::header_inset sets a header's side padding 2026-11-12 14:32:50 +00:00
aiongg eab5b32afa Collection row height: CollectionProps::row_height picks control-high or text rows, one resolver for the item layouts, the min_rows fill and ListRow's least height, which each ListRow collection sets in dress 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 4188d4f356 TitleBar stories keep their text placeholders: a MenuBar in the bar's leading slot shows no titles and fails the right-to-left rule, a follow-up of its own 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 8de5a82799 TitleBar stories show the app's menu bar at the leading end and icon buttons at the trailing end 2026-11-12 14:32:50 +00:00
aiongg 52f76fe25e FindingsList stories show the summary line over the list, as a host shows them 2026-11-12 14:32:50 +00:00
aiongg 46258cb5cc ReferencePoint: the large picker's cells are a standard control high, as the old Canvas Size picker; its Default story shows the growth arrows around the centre pick 2026-11-12 14:32:50 +00:00
aiongg 46b36bae39 Inline slider fields show the slider and then the number field, as Photoshop's dialog rows; PictureFillEditor's Transparency is one labelled row of them 2026-11-12 14:32:50 +00:00
aiongg 2774b6010e Form-rows cards: the stories' column is as wide as its widest story and the values follow it, so each slider's value sits beside its track 2026-11-12 14:32:50 +00:00
aiongg 66134ff430 Colour picks show a swatch: Save for Web's Matte, the parameter rows' colour and New Document's background open the picker from a swatch of the colour, mixed while unset, in place of a button with the hex code 2026-11-12 14:32:50 +00:00
aiongg 793497ca28 contract-api: regenerated (glyph roles) 2026-11-12 14:32:50 +00:00
aiongg cc2b07b70f Stories can show a root docked in an edge pane (in_edge_pane), so PanelRail's story draws its divider along the canvas side as an app does 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 ab9cd0b9ff Popup marks only on rail flyouts and panel footer menus: an icon button draws the corner mark when popup_mark is on, which the flyout face and footer actions turn on 2026-11-12 14:32:50 +00:00
aiongg d57548f8f8 Icon strokes follow the icon side: stroke.thin below size.icon.md, stroke.medium from it up, so a glyph inside a control no longer reads as filled 2026-11-12 14:32:49 +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 20decd82d5 A bar judges each member in flow with its label; a fill in a scrolling bar is a leaf's
Only a member in flow is judged: a part shown at a rect and a control in a label scope belong to the member around
them, and a labelled leaf is hidden together with its label. Containers that fill keep their content width in a
bar (a Field fills by default), so only a leaf that fills takes the room the view leaves.
2026-11-12 14:32:49 +00:00
aiongg 5d6e75e768 SliceOverlay story: the Slice tool under its options bar, settings kept as a value 2026-11-12 14:32:49 +00:00
aiongg 66bb57a029 A bar shows each member whole or not at all
A leaf or a captioned field in a bar's scrolling body that the view shows only in part gets an empty clip: it
neither paints nor takes the pointer until a scroll brings it in whole, and it keeps its Tab stop, so the reveal
scrolls it in. Fields were cut at the bar's scroll edge.
2026-11-12 14:32:49 +00:00
aiongg e15353918a In a body that scrolls along x, a child that fills fills what the view shows
The scroll made the room unbounded along x, so Slider::fill_width, TextField fill and fill-width rows in a bar
kept their measured widths. The room a row shrinks to and the room a filling child fills are now the one view room;
a share there never cuts the child's content, which scrolls.
2026-11-12 14:32:49 +00:00
aiongg 96ddd23066 A scrolling body sets its row on the line it shares with the end region, above its scroll bar
The scrolling branch ran its row without the shared line, and the end region centred over the band an
overflowing body's scroll bar adds under it: a bar's commit and cancel buttons sat below its members.
2026-11-12 14:32:49 +00:00
aiongg 3865baefbf Measuring rect starts at the start edge under right-to-left with a finite room too
A content-sized body given a shrink cap in a right-to-left scroll region measured from the region's far end,
where its field took no width, so a bar too short for its members laid out differently from left-to-right.
2026-11-12 14:32:49 +00:00
aiongg 4a25bebc19 CommandPalette lists and runs commands from the window under it; disabled rows paint in the disabled ink
- The command board judges a resolution from a Vantage: the modal facts and the focus. Its own is the key
  focus of the pass; resolve_beneath and fire_beneath judge from the window under the modal layer whose body
  is running, as it is once that layer closes (the modal layers below it, the stop focus returns to, that
  stop's chain and edits). key_layer takes the layer to count below; keys::owner_at gives the key owner there.
- The palette resolves its rows beneath its own layer, so its modal blocks none of the app's commands, and
  runs a pick itself: focus returns from its layer (return_from_pick, which also serves menu picks), then the
  command fires as FireSource::Palette. Its list fills the box width.
- A row's disabled state takes text.disabled in row_ink_of, for list, option and menu rows alike; the menu
  row drops its own copy.
- A keyed activation skips a disabled lead, as a press does.
2026-11-12 14:32:49 +00:00
aiongg b525e8b28a Table story: the name column as wide as its names up to a third of the table, Modified as wide as its dates 2026-11-12 14:32:49 +00:00
aiongg 679e17cab0 Table story as the old card: padded report names, Modified and Warnings columns, the first row selected 2026-11-12 14:32:49 +00:00