Commit Graph
2180 Commits
Author SHA1 Message Date
aiongg a6c95f705a A side label lines up with the first line of its control
The label scope took any control's baseline over every centre, so text
on a later line (AppearancePage's "Active" after a wrapped row of theme
chips) pulled the label down. A baseline now counts only from a control
that starts on the first reporting control's line.
2026-11-12 14:32:48 +00:00
aiongg 77e2e3d10d Check box, radio and switch labels in body type at full ink
A label after its control is the control's own text, as the old check
box and radio drew it; captions beside or above a control keep the muted
label type.
2026-11-12 14:32:48 +00:00
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 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
aiongg 263ad24c08 Runtime: copy from an egui label selection stays egui's
The focus end hook records whether egui holds a label text selection; while
it does, the key stage leaves the copy and cut events in egui's input, so
egui copies the selection. A focused framework editor still takes them.
2026-11-12 14:32:48 +00:00
aiongg a1362ea605 Runtime: an app's own focused egui widget or popup keeps Tab, Escape and the clipboard
The focus end hook records whether egui focus is on a widget no framework
component made, or an egui popup is open, while no framework press or drag
is captured. While that holds, the key stage leaves Tab, Shift+Tab, plain
Escape and egui's clipboard events in egui's input and routes nothing for
them.
2026-11-12 14:32:48 +00:00
aiongg cde64912bc Runtime: the IME engine reads and writes the IME only while a framework editor owns it
The input hook leaves IME events in egui's input, and the end hook leaves
PlatformOutput.ime alone, unless a framework editor owns the IME or the
engine's reset is pending, so an app's own TextEdit or IME reader keeps
working under the runtime.
2026-11-12 14:32:48 +00:00
aiongg 3251c6c6fb Runtime: a press on the widget that holds egui focus keeps it
classify_press compares the press target with egui's focused widget, so a
host's own focused egui field keeps its focus when pressed, as a focused
framework stop already did.
2026-11-12 14:32:48 +00:00
aiongg a96e58b6bd MissingFontsDialog: the Replace With caption over the missing fonts
The field group named its rows for AccessKit only. A fixed section in the caption strength shows the old grey caption over them, with no rule.
2026-11-12 14:32:48 +00:00
aiongg 6ce4068b64 ShortcutsDialog: whole chord chips, an add button on every row, the reset arrow
A chip's label replaced its text with the access name, so the chips read "Sav…"; the chord is the painted text and the name stays the label. The shortcut column is as wide as its widest row of chips with the add and restore buttons, at most 40 % of the table, as the old was, and the add button keeps its place after the chips, so it no longer drops off rows. The restore button shows the catalog's new reset icon, a counter-clockwise circle, in place of the undo arrow.
2026-11-12 14:32:48 +00:00
aiongg 4989787bb4 CommentsPanel: plain icons at the button glyph size, the standard disclosure, a reply's author and age on one line
The status, check and lock icons were painted over a whole control-high square, twice the icon buttons beside them; they take the buttons' glyph side. A heading shows the disclosure glyph every component uses instead of chevron icons. A reply's author and age share one line, as in the old panel, where both fit whole; otherwise the age goes under the author.
2026-11-12 14:32:48 +00:00
aiongg cba374046d TextRuler: the decimal stop's dot at the size WordCraft draws it
Its radius was the thick stroke, about twice WordCraft's 1.1 pt, so the dots crowded the ruler.
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 56857cb223 Timeline and GraphEditor stories show the whole component; the time area is sunken without a frame
The time area is a fill view, so a story in the flow gave it only its content: the Timeline showed its top strip inside the view's rounded sunken frame, and the GraphEditor, shown over a rect nothing reserved, showed nothing. Timeline gets show_at and its story the stage; GraphEditor fills its row's width and measures a plot over its bar, and its story shows it in a strip view. The view paints the sunken fill under its time area only, square and with no edge, as the old panel did, and the track headers stay on the panel. The graph's value labels stay inside the plot: the top line's label stood above it.
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 b35ae1b4b1 TimelineRuler: split-edit marks in their own row under the tick labels
The tick body is the label line over a mark row one label line high, as the old ruler kept a tick row under its labels. The video bracket hangs from the row's top, the audio bracket stands on its bottom, and each tag stays inside the row, so neither covers a tick label.
2026-11-12 14:32:48 +00:00
aiongg f21f832308 A stack shown at a rect is a given column: its fill children take the rect's width
A content-sized stack shown at a rect counted as a content column, so a
fill-width child in it was held at its measured width. Since collections
follow the content-column rule, TimelinePanel's track panes (each a
content stack at its split-area rect) measured their TrackStacks at the
header columns' width and showed no lanes, ruler or clips. A stack is a
content column only where its width comes from its content (!wide).
2026-11-12 14:32:48 +00:00
aiongg 668051a9ac SwatchTable asks for every cell in one row where it takes its width from content, so the room wraps it
In a column that sizes from its content the table measured one cell wide
and wrapped to a single column. It asks for all its cells (or its count
per row) and the room it is offered wraps them, as the old palette wrapped
to the width.
2026-11-12 14:32:48 +00:00
aiongg ae4b9748f1 NewDocumentDialog: the preset grid asks for three card columns, the width the left side had 2026-11-12 14:32:48 +00:00
aiongg 13221fd697 Collections take their width from content where their column gives none, and honour their pad
A collection that fills the width (Fill or FillWidth) follows the rule a
container does: where the enclosing body does not give its width (sized
from content, or a content column), a measuring run takes the width from
its content (header least width, else its largest row, at least its
ideal_width) and the column holds it across the width it settles on. A
FillWidth TabStrip or list in a dialog's column no longer sets the
column to the screen's width. Env::gives_width names the rule for both.

Collections honour ContainerProps::pad as containers do: the items hook
reports it (ShapeHooks::pad), the pass carries it in Resolved::pad, and
step 5, the measure view's room and step 7's content rect read the
padding through steps::padding. The header, rows, scroll bar and empty
text sit inside it; the surface covers the whole rect. #[container]
forwards pad, so Panel's own copy goes.

The spelling, file list and glyph wells are a List or TileGrid with
surface(Sunken).pad(Control); RelinkDialog's table is FillWidth.
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 56c097289d LinkList: the page on the name's line; the story's info names the lead link's path 2026-11-12 14:32:48 +00:00
aiongg 50dbd02e42 MediaBin story: List view rows with thumbnails 2026-11-12 14:32:48 +00:00
aiongg 4d9b800029 MediaBin: the List view shows glyph badges and names an item's status
A glyph badge follows the name as an icon. An offline, unreadable or
failed item shows the Icon view's glyph and words after its name, beside
the failure colour, so the status never reads as colour alone.
2026-11-12 14:32:48 +00:00
aiongg c58abdd4a5 MediaBin: the search and the count on a row under the title 2026-11-12 14:32:48 +00:00
aiongg 8703a667ba FooterBar: lay panel actions out from the reading end
The first action given sits at the end edge, as the old PanelFooter and
Photoshop's panel footers place them; a start group keeps its order.
Callers give their actions from the end edge: Layers, Channels,
Actions, Pages, the styles panel, the preset footer and MediaBin.
The filter gallery keeps Move Up and Move Down at the start edge.
LinkList's actions read as in the old: the menu at the start edge,
Relink at the end edge.
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 f86466c18c PreferencesWindow: a rule between the page list and the page
The page list and the page are divided by a vertical rule down the body, as in the old Preferences window.
2026-11-12 14:32:48 +00:00
aiongg 2cd84ca3d1 A child that fills a content-height row's height spans its line
A leaf that fills its height in an unwrapped row whose height comes from its
content is held at its measured height in the row's measuring run and shown
across the line the row settles on (`row_line`), as a fill-width child of a
content column is held at its measured width and shown across the column. It
never sets the line, so a vertical divider spans the row beside its tallest
child. A row given its height already gives it; a wrapped row has no line, and
a container that fills keeps its capped content height.

The cross_fill trial shows the divider spanning the row, the row as tall as
its tallest child, a button keeping its height, and a settled frame measuring
nothing.
2026-11-12 14:32:48 +00:00
aiongg 927c00eba2 StrokeEditor: the six dash and gap fields in two rows of three, so each keeps its widest value's width 2026-11-12 14:32:48 +00:00
aiongg a6bbf79ac1 stroke_editor trial: drop an unused import 2026-11-12 14:32:48 +00:00
aiongg c5bc52128c StrokePreview: the open line only, with its dashes and caps 2026-11-12 14:32:48 +00:00
aiongg d6b9cb66ae StrokeEditor: Illustrator's six dash and gap fields, no tall sample, and the panel as the default story 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 e0aafa296e GradientEditor: the stop bar keeps room for whole midpoint diamonds above and below the ramp 2026-11-12 14:32:48 +00:00
aiongg d2ab04b6b3 StrokeButton: as wide as its sample and widest name, not a field wide 2026-11-12 14:32:48 +00:00
aiongg d4c257a3c1 TransformFields panel form: the compact reference point with X and Y on one row, and the two skews on one row, as the old 2026-11-12 14:32:48 +00:00
aiongg ea9e36a4db SymmetryHandles story: the guides and marks under the handles, as an app shows them 2026-11-12 14:32:48 +00:00
aiongg dbbed1e922 BrushSectionList: the gaps between groups are their gap tokens high, not a row each 2026-11-12 14:32:47 +00:00