Commit Graph
1208 Commits
Author SHA1 Message Date
Dylan M. Taylor eb5b8485ee shell-w1: net change of 2 commits
- shell-w1: written by an agent
- shell-w1: review fixes (round 1)
2026-11-26 07:43:51 -05:00
Dylan M. Taylor 93581086cf Contract stubs: phase 4 refresh 2026-11-26 06:19:21 -05:00
Dylan M. Taylor 6b7538ee94 Contract stubs: craft-ui-widgets craft-ui-panels 2026-11-26 04:35:31 -05:00
aiongg 4b6c73a862 Text fields: a multi-line text starts at its box's top, and the box shows whole lines 2026-11-25 21:24:34 +00:00
aiongg f94b37942b FontPicker and ComboBox: compact is a prop, so its setter is derived 2026-11-25 19:04:54 +00:00
Lucas Batista Vargas c79d8d399d font-manager, ui-widgets: compact toolbar sizing for FontPicker and ComboBox (#3043) (#3053) 2026-11-25 16:30:45 +00:00
aiongg 2fc960dc4d Merge pull request #3454 from storytold/lightcraft-pr/fw-measure-run-boundary
Runtime: what an app measures in measure::run joins no body's kept transcript
2026-11-25 11:20:39 -05:00
Lucas Batista Vargas 85d24943f5 ui-widgets: allow card Tile to render paper surface and large icon (#3041) (#3047) 2026-11-25 16:19:38 +00:00
aiongg 5600618795 Merge pull request #3445 from storytold/lightcraft-pr/fw-disclosure-name
Lists: a row's disclosure triangle is named after the row's accessible name
2026-11-25 11:00:11 -05:00
aiongg 1277d4b157 Merge pull request #3213 from storytold/design-port/pr-menus-popups
Menus and popups: keyboard opening and safer activation
2026-11-25 10:54:28 -05:00
Martin Ball 67f5569082 Merge pull request #3139 from storytold/fix/picture-no-checker
ui-widgets: a rendered picture can skip its transparency checkerboard (wordcraft#7317 C3-3)
2026-11-25 15:48:16 +00:00
skylartaylor ce5ac08074 Merge origin/next 2026-11-25 16:05:40 +01:00
skylartaylor c7fc2598af Merge origin/next 2026-11-25 16:05:40 +01:00
Martin Ball 75efcf65c6 Merge remote-tracking branch 'origin/next' into fix/picture-no-checker 2026-11-25 14:46:01 +00:00
skylartaylor 9a7c2255a2 Merge remote-tracking branch 'origin/next' into design-port/pr-menus-popups 2026-11-25 15:19:07 +01:00
aiongg c136195d93 Merge remote-tracking branch 'upstream/next' into next-sync-1125 2026-11-25 13:28:36 +00:00
aiongg 29446205c1 SplitButton: SplitOutput::activated tells the action from the arrow's click; the arrow fires no bound command
A root's response reports the clicks on its parts too, so outside an arena a click on the arrow read as a click on
the main part and fired the bound command. The font manager's install buttons read the new signal.
2026-11-25 13:27:10 +00:00
aiongg 9b59227688 Merge craft-libs#3493: design-lint findings and the components index 2026-11-25 12:25:51 +00:00
Martin BallandClaude Opus 5.5 011ee7857a next: design-lint findings and the components index
- ui-panels iconic trial: the two literal 0.5 tolerances are relations (`first` above the
  gripped first icon; the rule `near` the middle of the room).
- ui-shell Column start page: the bottom page margin is `add_space` of the token, not
  `allocate_space`.
- ui-widgets Tile: `PAPER` (a blank page, data) and `Tile::page`'s width and height (a
  proportion in any one unit) are marked and listed as exceptions.
- docs/components-index.md regenerated (Link's `LinkLook::Plain`).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 12:00:05 +00:00
bflatastic b0d422cf0c Document tabs: TabCloseLook::Glyph, the close button as a glyph (opt-in)
Under TabCloseLook::Glyph a tab's close button is the x alone: a small icon (size.icon.sm) in
text.muted that turns text.normal under the pointer, with no fill, taking clicks in a square of
the close box's width instead of the content's whole height. The default, Button, keeps the icon
button. Story: DocumentTabs close_glyph_document_tabs.
2026-11-25 18:22:12 +07:00
bflatastic 3ccd688c03 Menu bar: MenuTitleLook::Button, titles as bare push buttons (opt-in)
An app may set MenuTitleLook::Button at its root: each title is then a push button high
(size.button) with the button's corners (radius.button) and space.gap.tight beside its text, and
the titles stand space.pad.control apart, as egui's menu bar draws its titles (VectorCraft 0.24).
The default, Row, keeps the menu row look and MenuTitlePad, so no other app changes. Story:
MenuBar menu_bar_button_titles.
2026-11-25 18:22:12 +07:00
bflatastic 5442cfb97f ui-contract, ui-panels dialog, ui-widgets buttons: a dialog frame is padded space.pad.dialog (Pad::Dialog; a roomy dialog keeps space.pad.roomy), and a dialog's footer button (LeastWidth::DialogButton or DialogSideButton) stands size.dialog.button_height high (StyleCx::dialog_button_height; a small one stays a small control high). Every size set gives them a panel's padding and a push button's height, so no app's dialogs change. Trial 2026-11-25 15:21:00 +07:00
bflatastic 03fea7ac47 ui-contract, ui-widgets menu: a menu row stands size.row.menu high (StyleCx::menu_row_height, grown as a control's height is; a small row stays a small control high); a compact row keeps its text line's height. Every size set gives size.row.menu the control's height, so no app's menus change. Trial 2026-11-25 15:21:00 +07:00
bflatastic 69411864af ui-widgets: LinkLook, an env style value for how a link standing alone marks itself beside its colour: Underlined (default) or Plain, the link colour alone, as VectorCraft's start page lists its community links; a link in a sentence stays underlined. Story link_plain 2026-11-25 15:20:32 +07:00
bflatastic 9ff5832607 theme, ui-contract, ui-widgets, ui-shell: a page's rhythm as size.page tokens, opt-in. size.page.gap.{title, lead, actions, section, heading, link} (Gap::PageTitle and its siblings) space a Column start page's title and subtitle, New and Open under them and beside each other, its sections, a section heading over its body and its links; size.page.link is a plain link's least row height; ControlPlace::PageAction stands New and Open at least size.page.button high with at least size.page.button_side beside their labels. The size sets give every gap the value of the gap it stands in for, size.page.button a push button's height and the rest 0, and an app's override of a followed value carries to the page's (FOLLOWS now follows a chain), so no app or story changes until an app sets them (the token dumps gain only the new lines). Story button_as_page_action; trials a_column_page_takes_its_rhythm_from_the_page_sizes, a_page_follows_the_values_it_stands_in_for_unless_the_app_sets_its_own; dumps updated 2026-11-25 15:20:32 +07:00
skylartaylor 6bb97dbcb2 Runtime: what code outside the framework measures in measure::run joins no body's kept transcript
An app that sizes a row itself measures the component with Show::measure_in inside
runtime::measure::run and then shows it with show_at. In the measuring run of the
body around it, that measure joined the body's kept transcript as one of its
components; in the real run, measure::run made it a measuring call with no
transcript open, so it recorded nothing and checked nothing. The body then found a
kept component its real run never asked, read as changed, and ran a discard pass
every frame (LightCraft's Edit panel slider rows).

runtime::measure::run now runs its closure inside a layout-memory boundary: what it
measures is its own in both runs. The framework's own measuring runs use the new
crate-internal measure::measuring, unchanged. Trial: SliderField rows sized through
measure::run and shown with show_at in a Stack settle to one pass.
2026-11-25 08:14:54 +01:00
skylartaylor e8e2fd1c40 List rows: a group row's triangle is named after the row's accessible name 2026-11-25 06:49:57 +01:00
bflatastic f562e58af2 select: SelectLook::Filled shows the closed box filled with surface.control, with no edge until it has focus, at a field's width; Field stays the default 2026-11-25 11:34:03 +07:00
bflatastic cadd08b988 buttons, dock: ActiveLook::Control shows an icon button or segment that is on in surface.control with no edge and the normal text; beside PanelTabLook::Block tabs a collapsed column's open panel icon takes it, as the shown tab does, and its flyouts' groups keep the active look around the column 2026-11-25 11:34:03 +07:00
bflatastic e49a32947a tabs, dock: PanelTabLook::Block shows a panel strip's shown tab as a square surface.control block as tall as the strip, a hovered tab in state.hover; a dock group's strip lies on surface.canvas under it and its panel menu button stands in the strip's middle, as beside pill tabs; Plain stays the default 2026-11-25 11:34:02 +07:00
aiongg 9b818faae7 Merge pull request #3413 from aiongg/dock-gaps-2
Tab order, IME fence and start-up crash fixes from EffectCraft's minimal port
2026-11-24 23:12:20 -05:00
bflatastic 461493afcb ui-widgets, ui-patterns: Tile::page lifts the page on the knob's short shadow and fits its longer side to the largest square the picture holds, so pages of every shape stand at one scale; story new_document_dialog_page_cards for PresetCardLook::Page 2026-11-25 10:52:00 +07:00
bflatastic 205803ee6d theme, ui-widgets, ui-patterns, ui-shell: every Home look opt-in. New Document's preset cards keep the ink page outline by default; PresetCardLook::Page (env style) gives Tile::page on a flat page card. CardText::Page: a strong name on up to two centred lines, the detail right under it, a flat card with the hover fill and an accent edge when selected. surface.page (follows surface.canvas unless pinned; VectorCraft's themes pin production's page colour), size.page.margin and size.page.action; ControlPlace::CallToAction stands a button size.page.action high with a strong label; Stack and the other containers take pad_edges. StartScreen new_label and open_label; the Column page fills surface.page, keeps the page margin beside the column and size.page.margin above and below it, and stands its call to action in ControlPlace::CallToAction; page templates are page cards. Stories button_as_call_to_action, tile_page as a page card; trials; dumps gain the three tokens 2026-11-25 10:52:00 +07:00
bflatastic 8a133a094b theme, ui-widgets, ui-patterns, ui-shell: StartLayout::Column, one centred column at most size.page.column (820) wide a page margin from every edge: title (Display) and subtitle, New and Open centred, the recent files as rows only when there are any, the app's section, the templates as cards that keep their size and wrap, the links under links_title centred without icons and StartLink::primary as a primary pill with its icon; templates_title prop. Tile::page, blank paper on the popup surface's shadow fitted to the picture, now New Document's preset card and a Template's with Template::page. Stories start_screen_column, start_screen_column_without_files, tile_page; trials; New Document's page trial checks the filled page; dumps updated 2026-11-25 10:51:59 +07:00
bflatastic d1920c54e7 ui-contract: an edit command fired before the pass's UI (a system menu pick) reaches the focused component in that pass, and a text part's stop registers the edit keys its pass's edits left, so a menu Copy after a Select All is not disabled; a pick in the window's own menus or bars still reaches it in the next pass 2026-11-25 10:24:17 +07:00
bflatastic e70ddf25cf ui-widgets list rows: ThumbRows, a root style value; under ThumbRows::Tight a thumbnail row pads its thumbnail by space.gap.tight with no floor of a standard control and the panel padding (at least the row's own height), and a tree level indents by a small icon and space.gap.tight. ThumbRows::Roomy, the default, keeps today's rows and indent, so no other app changes. ListRow story under Tight; trial 2026-11-25 10:24:16 +07:00
bflatastic 27d1e9c469 theme, ui-widgets buttons: size.button, a standard push button's height, read by the text-faced buttons (Button, SplitButton, ToggleButton) through StyleCx::button_height; a small button stays a small control high. Both size sets give it control.md's value, and an app that overrides size.control.md and not size.button has it follow, so no other app's buttons change (the token dumps gain only the size.button line, equal to control.md). Trial; dumps updated 2026-11-25 10:24:16 +07:00
bflatastic 29f9af1cbe ui-contract label: LinkLabelUnderline, a root style value; under LinkLabelUnderline::Inside a one-line link label draws its underline itself, on its text box's bottom edge or its rect's, whichever is higher, where egui strokes it on the box's bottom edge, which the rect's clip cuts away when the rect is no taller than the box. The label's rect is unchanged under both; LinkLabelUnderline::Edge, the default, draws as today, so no other app changes. Trial 2026-11-25 10:24:16 +07:00
aiongg 62816d0e3d Merge storytold next into dock-gaps-2
next carries dock-gaps (#3383), whose IME commit a0b1c35a8f is the same change as
this branch's 8c2cd95de3, and Skylar's focus and text-field work.

Conflicts:
- runtime/ime.rs, runtime/egui/ime.rs, testing/host_key_trials.rs: next's only
  change to these files is a0b1c35a8f, which this branch already holds and has
  replaced with the fence built on egui's pending_ime_reset (a3a58be575). This
  branch's side is kept. a0b1c35a8f's trial stays in its adapted form
  (an_app_editor_s_own_reset_at_the_press_reaches_it_and_it_composes_again, run
  with the reset in the output and through egui alone).
- runtime/egui/fixture.rs: ResettingEditor and host_resetting_ime_editor keep
  this branch's form (in_output, ask, a press inside the editor's rect). next's
  root focus fact in run_frame (ea6febd719) merged cleanly.
- runtime/focus.rs: State keeps candidates_seen and takes next's
  surrender_after_scopes and surrender_deferred; tab_to_egui stays removed. The
  end hook takes the app's egui widgets first, then runs next's deferred and
  after-scopes surrenders; next's block that surrendered a component widget
  egui's Tab focused goes with the removed egui-Tab path.

No code in next calls host_stop or the removed egui-Tab path.
2026-11-25 01:06:16 +00:00
aiongg 3656e8aaa4 Merge pull request #3212 from storytold/lightcraft-pr/fw-text-fields
Text fields: focus, Escape, typing-run and rename fixes
2026-11-24 20:00:50 -05:00
aiongg 736c9194c1 Merge pull request #3086 from storytold/fix/slider-primary-down-reset-precedence
Add opt-in primary-down editing for sliders
2026-11-24 20:00:37 -05:00
aiongg 3d195ca078 Merge pull request #3058 from storytold/fix/menu-escape-held-child
Context menus close after Escape cancels a held child press
2026-11-24 20:00:23 -05:00
aiongg c93811bcf1 Merge pull request #3383 from aiongg/dock-gaps
Dock and runtime fixes for the CadCraft, EffectCraft and TextureCraft ports
2026-11-24 20:00:09 -05:00
bflatastic 75efd24749 theme, ui-widgets: shape.locator (cell, square), the reference point's squares, each defaulting to the Size preset's size.handle.md and size.handle.sm; ReferencePointLook::Squares lays its squares a cell apart, the picker two cells and a square wide, the same compact or not; VectorCraft's themes pin production's locator, 5 point squares 9 points apart (23 point grid). Trial; dumps updated 2026-11-25 05:53:48 +07:00
aiongg 3408eb09a5 Dock: a group's tab overflow button is a gesture source (SourceKind::Overflow)
TabStripOutput reports the overflow button's rect and access node id while
some tabs do not fit. The dock group passes it on (DockGroupOutput::overflow,
through the memoized tab row so a replay moves it with the row), and the dock
area reports it beside the group's tabs as SourceKind::Overflow, named by the
group's first panel, so a host can give the button an automation id.
2026-11-24 21:47:55 +00:00
skylartaylor c3d02fce68 Merge origin/next 2026-11-24 22:45:39 +01:00
skylartaylor f41d84e7c1 Merge origin/next 2026-11-24 22:45:39 +01:00
skylartaylor 2a5b120e41 Merge next (357f33254) into lightcraft-pr/merge-3212 2026-11-24 22:44:44 +01:00
aiongg 357f332549 Merge pull request #3396 from aiongg/test-speed-1124
Tests: gate-sized samples and inputs for the slowest tests and the UI suite
2026-11-24 16:32:00 -05:00
aiongg 9f2961402b Merge pull request #3360 from aiongg/next-host-input
Hosted egui apps on next: host quit, dock tab focus, float order, host panel fill, app icon, keymap override warnings
2026-11-24 16:08:36 -05:00