Commit Graph
8840 Commits
Author SHA1 Message Date
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
BFlat 16001e7210 Merge pull request #3432 from dotCooCoo/fix/shortcuts-own-areas 2026-11-25 12:32:04 +07:00
BFlat e90a48312d Merge pull request #3433 from dotCooCoo/fix/shortcuts-open-size 2026-11-25 12:31:48 +07:00
bflatastic 4bed21baaa dock, iconic column: under IconGroupSeparator::Rule each icon group keeps a bare grip band that drags the group, as production's: the first group's over the top space.gap.inline of its first icon, a later group's over the room above it and that much of its first icon; the band takes a press there (a click in it opens no flyout), and below it every icon, the first included, drags its own panel; Grip keeps its strips 2026-11-25 11:54:32 +07:00
bflatastic 2ac9705290 dock: beside PanelTabLook::Block tabs a docked column card's bar is a square strip of surface.canvas across the card's top and only the card's foot is rounded, as VectorCraft 0.24's tool card; beside the other looks the bar stays part of the card 2026-11-25 11:34:03 +07: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 9f1b8d6d20 dock: Flyout::docked stands a flyout as a docked column does, square on surface.panel with the column's line.border frame and no shadow; the flyouts of a flush dock's columns (DockConfig::flush_docks) take it, the others stay raised popups 2026-11-25 11:34:03 +07:00
bflatastic 5d74792c0a dock: DockConfig::flush_docks stands docks flush against the node beside them, with no gap (DockSizes::dock_gap, FrameRules::dock_gap), and frames their columns collapsed to icons in line.border as expanded columns are, so one rule parts a dock from the canvas; off by default, where the space.gap.tight gap stays 2026-11-25 11:34:03 +07:00
bflatastic 9916d16585 dock: DockConfig::column_cards takes ColumnCards: None (the default), All (every docked column a card, as the switch on was) or Stepped, which shows only the stepped columns such as a docked tool rail as cards and keeps the panel columns flush; DockSizes::card_place and card_inset read the column 2026-11-25 11:34:03 +07:00
bflatastic 9012e52081 dock, iconic column: under IconGroupSeparator::Rule a collapsed column's icon groups have no grip strips: the first icon stands right under the column's bar, a group's first icon drags the group, and the room between two groups is space.gap.stack and the rule, the rule in its middle; Grip, the default, keeps its strips 2026-11-25 11:34:02 +07:00
bflatastic a7b48fb036 theme, dock: size.bar.column, the height of a dock column's bar (size.control.sm in both built-in sets, so the bar keeps its height unless an app sets it); a column's bar, expanded or collapsed to icons, lies on the surface its dock's tab strips do: surface.canvas beside PanelTabLook::Block tabs, the window's background otherwise 2026-11-25 11:34:02 +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
aiongg f244e6212b Pin egui to storytold/egui next (b15ffe9bf), which now carries the IME reset, arrow cover, multi-pass texture and focus candidate commits 2026-11-25 03:39:37 +00: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 bf12e584a2 layers filter bar: ObjectsSearch, a root style value; under ObjectsSearch::Fill the Objects filter's search field fills the bar's row and the Filter button stands at its end edge. ObjectsSearch::Natural, the default, keeps the field at its own width, so no other app changes. LayerFilterBar story under Fill; trial 2026-11-25 10:24:16 +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 36522691ec ui-panels title row: QuietTitleRow, a root style value; under QuietTitleRow::Text a title of a quiet weight (Caption, Subheading, Quiet, Overline) stands a text row high (size.row.text), at least as tall as holding its text on the row's centre line needs, not a control high. QuietTitleRow::Control, the default, keeps every title row as today, so no other app changes. Section story under Text; 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
bflatastic 7cb4ffd514 ui-contract, ui-panels panel: QuietHeader, a root style value; under QuietHeader::Heads a titled panel's quiet title (an inspector's kind line) heads its body as a rule would (HeaderRegion::heads, set by Panel::titled), so the first section under it draws no rule above it and sections after it keep theirs. QuietHeader::Ruled, the default, keeps today's rule above the first section, so no other app changes. Inspector story under Heads; trial 2026-11-25 10:24:16 +07:00
dotCooCoo dee3e7af57 menu: Keyboard Shortcuts can open at a size the app gives
An editable Keyboard Shortcuts dialog sizes from its content, so with a
large catalog the table takes the whole window and the dialog covers
it. The app had no way to choose another size.

- `Options::size`: the dialog opens at this size, in points, until the
  user resizes it. A size that is not finite is ignored.
- Without it, an editable dialog opens as before and a read-only one
  keeps its moderate fixed size.
2026-11-24 19:22:32 -08:00
dotCooCoo b2910054ca menu: Keyboard Shortcuts can list only the app's own Show entries
Show always listed All Commands, each menu, Tools, each panel and Other
before the app's own `Options::areas`. An app that gives Tools and Menu
Commands as its only entries got them at the end of a long strip, with
a second Tools entry, and the dialog opened on All Commands.

- `Options::own_areas`: Show lists only the app's own entries (and
  Fixed Keys), and the dialog opens on the first of them, or on the one
  that lists the command selected before it opened.
- Go to Conflict and Accept and Go to Conflict show the holder under the
  first entry that lists it when Show has no All Commands.
- The option is off by default, and a dialog without it is unchanged.
2026-11-24 19:11:34 -08:00
aiongg 8008f39976 Merge pull request #3418 from aiongg/test-speed-3
Gate speed, round 3: leg 1 leaves the audit crates to leg 2, leg 3 builds one crate, 21 slow tests sized for the gate
2026-11-24 21:51:05 -05:00
aiongg 61c197d694 Merge branch 'dock-gaps-2-ime' into dock-gaps-2 2026-11-25 02:38:24 +00:00
aiongg 34e2534d92 IME: the app's reset request made while a framework editor owns the IME is the engine's interrupt of that editor, recorded and fenced on 2026-11-25 02:35:49 +00:00
aiongg 86c5f7a8d3 Editor part: its focus widget is an egui focus candidate only while its component takes focus, so egui's arrows never reach a disabled editor; trial ids through the crate's id helpers 2026-11-25 02:31:27 +00:00
aiongg 7f085531fb Focus candidates: one per-pass set of what components made, and the stop roots as a set, replace the walks; an editor part's focus widget is its component's, so a disabled editor never becomes an app Tab stop 2026-11-25 02:19:56 +00:00
aiongg d103fc5ea5 Pin egui to aiongg/egui ime-pending-reset (b15ffe9bf) 2026-11-25 02:15:03 +00:00
aiongg a3715cee5b IME: an interrupt of a framework editor publishes the app's own reset request of that pass, and the request counts as the app's only when the published output carries it 2026-11-25 02:12:25 +00:00
aiongg bb4c826819 Bypass walk: the stop every focusable egui widget gets by itself (Stop::automatic) is no registration, so a raw egui widget beside a component is a finding again 2026-11-25 02:00:59 +00:00
aiongg 3a567445fe Merge remote-tracking branch 'upstream/next' into test-speed-3 2026-11-25 01:55:58 +00:00
aiongg f70d51039c Keep design-lint at the CI default opt-level: the 10 s it saves does not pay for a cold cache 2026-11-25 01:55:58 +00:00
aiongg a3f7652904 Merge pull request #3405 from aiongg/test-speed-2
Gate test time, round 2: sampled sweeps, shared suite fixtures, smaller inputs
2026-11-24 20:55:30 -05:00
Martin Ball 108e0e46a0 Merge pull request #3412 from storytold/ci/macos-windows-deps-cache-next
CI (next): macOS and Windows cache entries are named by the dependency settings alone, so next restores main's
2026-11-25 01:51:56 +00:00
aiongg 6e46ecce89 Merge branch 'test-speed-3-ui' into test-speed-3 2026-11-25 01:43:48 +00:00
aiongg ab687f0ee1 jbig2 symbol limits: the gate checks the coded-symbol cap at 300 through a seam, the full caps run nightly 2026-11-25 01:42:35 +00:00
aiongg d402a1d71b Gate-sized cases for slow non-UI tests; full sizes and every case nightly
Boundary tests set by a production constant check a small limit through a
private seam that takes it (b64 decode, drawingml table normalize, openpgp
verify), with the real constant nightly; captions and jbig2 check their
full-size boundaries nightly. Sweeps run every divisor-th case at the gate
(develop balanced highlights and thin line, jpeg low-memory tokens, png
streamed rows, mxf extreme fields, pdf crypt proptests), the fax bomb guard
page is wider and shorter, the resample bound pulls a shorter block, the nef
measured frames are read through probe_info, and local tone compares 64 and
256 pixels.
2026-11-25 01:32:48 +00:00
aiongg 75e3a0c33a Workspace gate: leg 1 leaves the audit crates to leg 2, leg 3 builds only craft-image-codecs, design-lint at opt-level 2 2026-11-25 01:17:12 +00:00
aiongg e46f5180a0 Focus: a Tab with no stop to move to and nothing focused stays in egui's input for the app's own binding 2026-11-25 01:15:31 +00:00
aiongg 728c797b14 Iconic column trial: the rule between icon groups spans more than half the rail, asserted as a relation 2026-11-25 01:10:44 +00:00
aiongg 10cd2c5e88 Merge remote-tracking branch 'upstream/next' into test-speed-2 2026-11-25 01:10:44 +00:00
Martin BallandClaude Opus 5.5 0075c7e7fd CI: a failed deps-profile hash stops the step instead of naming every entry v2-
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 01:10:42 +00:00
aiongg 6a02da62d4 Iconic column trial: the rule between icon groups spans more than half the rail, asserted as a relation 2026-11-25 01:09:59 +00:00
Martin BallandClaude Opus 5.5 6673e63ad2 CI: macOS and Windows cache entries are named by the dependency settings alone, so next restores main's
The macOS and Windows legs cache dependencies only, but their entries were named by the hash of
every profile override, workspace crates' included. next's cargo-ci.toml and cargo-dev.toml set
other workspace-crate levels than main's, so next's pushes never found main's entries and built
every dependency from source (Windows 40-52 minutes, macOS 29-36, against 10-15 with an entry).

`deps-profile` hashes `[profile.dev]` and `[profile.dev.package."*"]` of both files; every other
override names a workspace crate (test_profile_overrides_name_only_workspace_members). It is the
same on main, next and #3405 today. The Linux leg, which keeps workspace crates, keeps the full hash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 01:06:35 +00: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