Commit Graph
162 Commits
Author SHA1 Message Date
aiongg 1362d47fe4 Label scheme: a container sets Form or Inspector rows for the labels under it
LabelScheme decides where a beside label sits (against its control or at
the row's start), whether it ends with a colon (and, in a bar, a glyph
caption too) and whether its control fills the rest of the row. It is set
with ContainerProps::labels and replaces the per-label LabelAlign.
Inspector is set on the old inspectors: ShapePanel, ArtboardProperties,
TableProperties, the colour picker's and gradient editor's fields and the
Inspector pattern, and on the TextField, NumberField and Select stories;
a Field story shows inspector rows.
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 e54fed5fa3 MediaControls: trim ends across a seek track that fills the bar
The trim ends were Slider marks: small ticks under the track that the seek snapped to. Slider::trim draws the ends of a kept span as lines across the track, a thumb high, in the warning colour, without snapping; Slider::fill_width lets a track take the rest of its row. The media controls use both, as the old did.
2026-11-12 14:32:48 +00:00
aiongg 49da095b61 TimecodeField: as wide as its widest time
The field took the text field's length and shortest width, about twice its digits. FieldStyle::sized_by_content gives the field look without them, for the fields whose measure is their whole width; NumberField's style uses it too.
2026-11-12 14:32:48 +00:00
aiongg 26c435698f MediaBin: the search field fills the row before the count
TextField::fill_width takes the room its row leaves, as Button's does. The
row starts at the start edge: an end-aligned row overflowed in a bin held
at its column's width.
2026-11-12 14:32:48 +00:00
aiongg 8cb7ec3f02 Tile grid group headers are tree heading rows
A group header is a heading ListRow at the group's depth, with its icon and detail. The row places its disclosure column; the grid declares its disclosure part at that rect (ListRow::disclosure_at) and paints the tree triangle there, so the title starts after the disclosure instead of under it. The grid's own toggle geometry goes, and its layout sizes move out of the style into GridSizes.

TileGroup gains depth and icon. PresetBrowser passes each group's depth and a folder or open folder glyph, and its list view's group rows show the same glyph.
2026-11-12 14:32:48 +00:00
aiongg 37b6bb87c5 Bare tiles pack tight
A tile without a caption keeps only gap.tight around its picture, the room its selection ring draws in, and a grid of such tiles puts no gap between them. GlyphsPanel's zoom takes the old cell range, 24 to 64 pt, with a default near the old 32 pt.
2026-11-12 14:32:48 +00:00
aiongg 6cc6c2ec1a Tile placeholders stand apart from a sunken surface
EnvView::surface reads the surface a component sits on, and a collection's rows sit on the surface the collection paints. A tile on a sunken surface fills its empty picture with the raised surface instead of the sunken one.
2026-11-12 14:32:48 +00:00
aiongg fe6e5ab066 NumberField: a content-sized field is as wide as its range's widest value and its adornments, without the number cell 2026-11-12 14:32:48 +00:00
aiongg 4b1dbab419 Eyedroppers: the pipette with a dot of its tone (IconSpec::badge), so black, grey and white read apart; the three two-tone pipette icons go 2026-11-12 14:32:47 +00:00
aiongg 0fc7bc0355 Edge rules sit on the pixels just inside their rect
Rule::edge and Draw::edge_rule draw a rule along one side of a rect, moved in by half its width, so a row's bottom rule, a cell's gridline or a strip's edge is no longer drawn on the first pixel outside, where the next row's clip or the next cell's fill hides it. List rows (layer dividers, rule), CellGrid gridlines and header edges, tab dividers, the tile grid's pinned band, font cards and ruler strips use it, as do the pane, end-region, title bar, timeline header and outline band rules that offset by hand. CellGrid draws the old's header edges toward the cells, its gridlines in the divider colour, and the selected header's accent bar inside the header.
2026-11-12 14:32:47 +00:00
aiongg 39be8c8025 Notice cards: one card width (size.notice.width), a status card's edge and title in its tone, and a toast stack measured and placed inside the body whose corner it sits at 2026-11-12 14:32:47 +00:00
aiongg 79c7732c40 NumberField: the unit follows the shown number, spaced as the language's unit template 2026-11-12 14:32:47 +00:00
aiongg b64714e088 Rows narrow content made to be cut first: an eliding Text or Link (Component::cut_first) gives its room before a select or button label is cut, and an eliding Link's least is the ellipsis 2026-11-12 14:32:47 +00:00
aiongg fcdd810bbc Text: a wrapping text is never narrower than its widest word, so a row breaks it between words, not inside one 2026-11-12 14:32:47 +00:00
aiongg ec2c70e90f ChipField: the remove mark sits inside the chip's pill, at its end (Badge end_mark) 2026-11-12 14:32:47 +00:00
aiongg 6793a38425 List rows: the label band spans the toggle columns a row leaves empty next to it, up to the nearest toggle the row fills 2026-11-12 14:32:47 +00:00
aiongg d5d711068d Thumbnail-only picker fields as wide as the thumbnail and chevron: a select face showing its thumbnail alone keeps no text-field widths, and a thumbnail field with no preset shows an empty thumbnail; the export template select sized to its entries 2026-11-12 14:32:47 +00:00
aiongg a89e8ac7b5 Colour markers: one marker look for colour fields, wheels, discs and gradient stops
A white ring with a dark halo just outside it, so one of the two reads on any colour; filled with the colour it marks on the disc and the gradient line, accent when a gradient stop or end is selected, large for a disc's base colour and a gradient line's ends. PointPicker's ring, the wheel knobs, the ramp cursor, the disc markers and the gradient overlay's stops and ends draw it in place of their own rings.
2026-11-12 14:32:47 +00:00
aiongg dcaf0f0244 Table header: the header menu (Columns checks, Reset Columns, the column commands) on a secondary click on a header or the empty header, hidden columns kept in the header's memory and reported, and Ctrl or Cmd with Left or Right moving the focused column 2026-11-12 14:32:47 +00:00
aiongg 868c3ca47a Table columns: a Content column is as wide as its widest cell, which rows report from their measure; a double click on a column's edge fits it to its widest cell in view; MetadataTable's name column fits its names up to a third of the table 2026-11-12 14:32:47 +00:00
aiongg 5afc921dd2 ActionsPanel Button Mode: each action is a full-width button with its name at the reading start; Button::align places a button's face 2026-11-12 14:32:46 +00:00
aiongg 12208bee3a Picker headings are ListRow's heading rows: one heading mechanism in ListRow 2026-11-12 14:32:46 +00:00
aiongg dc817ed512 B15 phase 3 fixes: the picker caption row is ListRow::caption (ListRow already has a heading prop); a click on a row a collection does not take keeps the layers open; a new right-click moves an open context menu to the pointer; an open menu blocks only the tooltips outside it; Menu runs the row Enter names on its own key activation; trials adjusted (submenu rect, bar shortcut and Help search on a scoped command) 2026-11-12 14:32:46 +00:00
aiongg 719d072e75 Select picture: the rows hold the painter by Rc, and EntryRows borrows entries and labels for separate lifetimes, so a row's thumbnail lives as long as the dressed row 2026-11-12 14:32:46 +00:00
aiongg aa4a53c392 Menu bar keys: opening Help focuses its search field, which drives the menu (Up, Down, Home, End move the active row, Enter runs it or the first enabled match); a shortcut pressed while the bar holds the focus matches in the scopes of the stop the bar took it from and gives the focus back 2026-11-12 14:32:46 +00:00
aiongg d1afe97dc8 Select closed face: Entry::closed_label is the face's text while the list, type-ahead and accessible value keep the label; Select::picture draws an entry's thumbnail in its row and on the face, alone with picture_only; ConnectorBar and the stroke editor use it, TabStopsDialog shows the leader fill alone in the box and the Leader cell 2026-11-12 14:32:46 +00:00
aiongg d33c7b23f9 Entry headings and the empty swatch: Entry::heading shows as a caption row in Select lists (ListRow::heading) and menus (MenuItem::heading) that keys, clicks and type-ahead pass over; Draw::swatch_well paints every swatch well, the empty one for a colour the theme decides; ConditionBuilder and ColorChoice use them 2026-11-12 14:32:46 +00:00
aiongg 643d83a9e1 MenuItem: a label colour tints the row behind its content (theme MenuTint), and the detail is a muted line under the label; label colour menus in craft-menu, layers, timeline and channels use the tint 2026-11-12 14:32:46 +00:00
aiongg 1b18aa6a93 Menu: a submenu opens as soon as the pointer is on its row; a row the pointer crosses on its way to an open submenu takes over after a 0.3 s rest 2026-11-12 14:32:46 +00:00
aiongg 67e30b245a TargetMark: its story covers the Default state 2026-11-12 14:32:46 +00:00
aiongg b8e9b5b0ec TargetMark: a pulsing accent ring around a part of the window, on a placed passive layer 2026-11-12 14:32:46 +00:00
aiongg 739a225be2 PanelRail: mark a closed panel only, and report each icon's response 2026-11-12 14:32:46 +00:00
aiongg efc09443fa TransportBar centres its buttons and keeps the button editor at the end edge
Bar::align sets the body row's alignment; Bar::trailing gets the bar's body
context so an end-region group can read and write the state the body reads.
A centred or end-aligned row in a body that scrolls along x measures its band
from the view, as the shrink step does.
2026-11-12 14:32:46 +00:00
aiongg a47749025a ListRow::cell_field: a hosted component in a column's cell in place of its text, in the label's place in the label's column; its stop joins the row's group 2026-11-12 14:32:45 +00:00
aiongg b537a04cc0 Validity::Error: a checked value that stands, read invalid with its message in the bad tone; TextColumns marks an out-of-range Number or Spacing field so, in place of the notices after it; the New Document preset name refusal uses it 2026-11-12 14:32:45 +00:00
aiongg 6b82de8e54 ListRow::below hosts components in a line under the row's text; the version history's delete confirmation asks with Delete and Cancel under the question 2026-11-12 14:32:45 +00:00
aiongg 6918db3e4d Tab: the selected tab draws an accent bar along its top edge in high contrast 2026-11-12 14:32:45 +00:00
aiongg c04d3e656f Tab shows unsaved changes as a * after its last text, never cut, and keeps its close button 2026-11-12 14:32:45 +00:00
aiongg c7362a6790 TabStrip wheel_selects: the wheel over the strip steps the shown tab by the collection's wheel notch; a collection that senses the wheel registers in the item step with its notch; DockConfig::wheel_selects_tabs passes it to dock groups 2026-11-12 14:32:45 +00:00
aiongg 94113ca1d7 DocumentTabs reports a double click on the strip's empty room as EmptyDoubleClick, where the host opens a new document 2026-11-12 14:32:45 +00:00
aiongg 890a5d9e20 NoticeCenter and ToastStack stories post their notices whenever their window has none, since a story's measuring run posts nothing 2026-11-12 14:32:44 +00:00
aiongg 41560ce3ed Notice: bullet lines start under the row of the icon, title and dismiss button and run the card's whole width, as the old toast's lines 2026-11-12 14:32:44 +00:00
aiongg e69897715f Notice: the elements sit inside the notice's padding, so a card's text and buttons are inset from its edge 2026-11-12 14:32:44 +00:00
aiongg eef17642ba Toasts: one queue per window; each AppShell, embedded ones included, shows its own window's toasts at the end-bottom corner of its body (Anchor::Corner replaces Anchor::Viewport), so nested shells no longer each draw every card at the viewport corner; NoticeCenter posts to its window, and the NoticeCenter and ToastStack stories show three notices in their own area, as the old ones did 2026-11-12 14:32:44 +00:00
aiongg a76f2d964c Notice: a centred notice draws a brand title in the new display type role (38 on 46, semibold) with its byline beside it, or under it when both don't fit; token dumps gain the display role 2026-11-12 14:32:44 +00:00
aiongg 37c11260fe Notice: a centred notice hosts the app's own leaves under its actions, inside its centred column; the hosted-leaf adapter moves from ListRow into the contract (Hosted, Hosting) and serves both 2026-11-12 14:32:44 +00:00
aiongg 0044e52336 Toasts carry bullet lines: a card shows up to eight under its message, then one faint "…and n more" line; NoticeCenter posts the title and its lines instead of joining them into the message 2026-11-12 14:32:44 +00:00
aiongg 2fe0e72ee3 Notice: an announced notice is a live region named by its title and message, so it is announced when it appears and again when its text changes; the first-show memory goes 2026-11-12 14:32:44 +00:00
aiongg 1dc886d82e Notice: a centred notice's first action is the primary button and the others secondary, all as wide as the widest, as the old empty state 2026-11-12 14:32:44 +00:00