Commit Graph
8769 Commits
Author SHA1 Message Date
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 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 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
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
aiongg c933a90624 Every focusable egui widget the app draws is a stop of the window's one Tab order
The focus service takes egui's focus candidates of the pass (Memory::focus_candidates) at every
order-dependent registration and at the end hook: each widget no component made becomes a stop of
the app's own, where it was drawn among the framework's stops, a text stop for a TextEdit. Recorded
views and lazy children replay them with their transcripts.

A bare Tab is the framework's move unless an egui popup is open or the app's focused widget keeps
Tab by its egui key filter. Removed: focus::host_stop and the separate egui-Tab path for windows
without framework stops. The scrim absorber no longer takes key focus.
2026-11-25 00:36:38 +00:00
aiongg 1f14633b74 Pin egui to aiongg/egui ime-pending-reset (f678ecb71): Memory lists the pass's focus candidates and reports the focused widget's event filter 2026-11-25 00:36:38 +00:00
David Mann a3174010b7 Merge pull request #3399 from davidmann4/fix/font-manager-wasm-next
font-store: the preview service's plain types and PreviewStore build on wasm, so font-manager does again
2026-11-25 01:15:36 +01:00
aiongg 0bac50867b Trial: a dock restored with a native float in a later pass of the first frame paints
The windows kit's renderer shares one texture store between the windows, as
eframe's does, applies each window's texture changes when it paints and panics
on a change to a texture it has not allocated. A frame whose first pass asks
for another and whose second shows a dock with a native float, as an app's
start-up, paints its float's window without that panic.
2026-11-25 00:12:07 +00:00
aiongg 9ea549874c Pin egui to aiongg/egui ime-pending-reset (c7a2f6af5): texture deltas of a multi-pass run and of every viewport reach the shared renderer in order 2026-11-25 00:12:07 +00: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
bflatastic cdb082977d draw: TransformFields' PositionFirst form puts X and W, Y and H in a grid beside the constrain link, which a bracket row (Bracket::Unlinked) stands centred across the two rows, as production's Properties panel; the angle and skews follow in a grid of their own. Trial the_position_first_link_stands_between_the_width_and_height_rows 2026-11-25 05:53:47 +07:00
bflatastic 0c1fa2f1d6 ui-panels: IconGroupSeparator, an env style value for what marks a collapsed column's icon groups apart: Grip (default, the dock's grip marks) or Rule (bare grip strips and an edge rule across the room between two groups), VectorCraft's icon groups as production drew them; story icon_groups_apart_by_a_rule; trial 2026-11-25 05:53:47 +07:00
bflatastic 27f174b9da theme: VectorCraft's themes pin line.grip to production's text_disabled in each variant, the ink of its Tools grip; dumps updated 2026-11-25 05:53:47 +07:00
aiongg 951ca3f3d1 Trial: arrows in an app's popup list skip the widget it covers 2026-11-24 22:37:16 +00:00
aiongg a3a58be575 IME: the fence follows the app's reset requests asked through egui
The app's reset of a pass is the one egui publishes: Context::pending_ime_reset,
else the IME output's own field. The interrupt of an app editor reuses it, the
engine records it, and a request the app publishes while the fence is up becomes
the one the fence waits for. A completion answers its request and every older one.
2026-11-24 22:33:51 +00:00
aiongg ddbb7e6a4d Pin egui to aiongg/egui ime-pending-reset (bbfd6471e): pending_ime_reset and covered-widget arrow focus 2026-11-24 22:33:51 +00: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
aiongg a0b1c35a8f IME: an app editor's own reset survives the host fence
A press during the app's own editor's composition interrupts it, and the
engine wrote its own reset request over the one the editor wrote in the same
output: the platform answered only the engine's id, so the app never got the
completion its own fence waits for, and the fence (which took every IME event)
dropped it anyway.

The interrupt keeps a reset request the app's output already carries, and the
engine waits for that one. The app's reset requests are recorded from its IME
output; their completions and retirements stay in egui's input for the app,
and a completion of the request the fence waits for ends the fence. Late
events of the interrupted composition stay fenced, and an editor that asks
for no reset is fenced by the engine's own request as before.
2026-11-24 21:46:34 +00:00
aiongg 8c2cd95de3 IME: an app editor's own reset survives the host fence
A press during the app's own editor's composition interrupts it, and the
engine wrote its own reset request over the one the editor wrote in the same
output: the platform answered only the engine's id, so the app never got the
completion its own fence waits for, and the fence (which took every IME event)
dropped it anyway.

The interrupt keeps a reset request the app's output already carries, and the
engine waits for that one. The app's reset requests are recorded from its IME
output; their completions and retirements stay in egui's input for the app,
and a completion of the request the fence waits for ends the fence. Late
events of the interrupted composition stay fenced, and an editor that asks
for no reset is fenced by the engine's own request as before.
2026-11-24 21:46:04 +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 b2cd661510 Focus: host_stop puts an app's own widgets into the one Tab order
focus::host_stop registers an app's own egui widget as a focus stop
(Stop::host, as host_canvas does, without marking a document canvas), so a
window that has framework stops and the app's own widgets keeps one framework
Tab order holding both, in registration order.

A canvas keeps Tab only while it has the focus. With nothing focused a bare Tab
moves focus into the window or toggles the panels, even for a canvas that
keeps Tab, as the unfocused canvas's claims already never take Tab: the canvas
cannot trap keyboard navigation. The last assertion of
a_host_canvas_marks_the_window_and_tab_toggles_its_panels changes to this
rule: with nothing focused, the Tab toggles the panels instead of reaching the
canvas in egui. The unused Strip::canvas field goes with the old rule.
2026-11-24 21:39:59 +00:00
aiongg 3709418d5f Keys: an app's own focused widget keeps the plain Enter
While an app's own egui widget or popup has the focus, a plain Enter stays in
egui's input for it and no window Submit comes of it, as with Tab and Escape.
The window's Submit was offered beside the press, so an app editor read one
Enter and an app that returns the window's Submit to egui read two; an app
TextEdit in a framework dialog also fired the dialog's default button. With
nothing focused the plain Enter stays the window's Submit and in egui's input.
2026-11-24 21:35:30 +00: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 337974b224 tests: loudness range at full segment length (16 kHz), xml streaming limit below one element 2026-11-24 21:29:34 +00: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
aiongg 603b9708bd Docking documents trial: clippy type alias and iter 2026-11-24 21:00:28 +00:00
aiongg 8abce32c4a Merge pull request #3364 from aiongg/rc-menu-cursor-mnemonics
menu: the English letter after a translated label only in CJK languages; a hidden mnemonic elsewhere
2026-11-24 15:53:44 -05:00
aiongg a1daa3357d IME trial: no expect in library code 2026-11-24 20:47:28 +00:00
aiongg 4e806d57a5 Dock trial: each stack section reports its panel's tab source 2026-11-24 20:41:30 +00:00
aiongg 271e9bf727 Dock: DockAreaOutput::pressed names the panel whose body a press went down in
A host body keeps its presses and its egui focus, so the group takes
no focus and DockAreaOutput::focused never names the panel clicked
into. BodyCx::pressed_within reports a primary press in the body's
rect on its layer whatever took it, sharing the press geometry with
surface_pressed, and the dock area reports the group's shown panel as
pressed.
2026-11-24 20:41:30 +00:00
aiongg 547056ecc4 Dock: a panel's document tabs are gesture sources (SourceKind::Document) 2026-11-24 20:41:30 +00:00
aiongg d2281d2eeb IME: a press during an app editor's composition interrupts and fences it
The engine fenced only framework editors. An app's own editor (an egui
reader that writes the pass's IME output) saw the late deletion and
commit of a composition a click ended arrive in the next frame (the
one-press rule holds them), with no composition active, so they edited
the text at the new caret. The engine now records the editor from the
IME output it wrote, follows its composition through the IME events
left to it, and on a pointer press during it interrupts in the
editor's own context and drops the IME events until the reset
completes; events after the completion reach the editor.
2026-11-24 20:41:30 +00:00
aiongg f0b97bdc73 Keys: a bare Tab is egui's while every stop is a host stop
With only the app's own widgets registered as stops (a hosted canvas),
a bare Tab from nothing or from a host stop that does not keep Tab was
a framework move whose order held the host stops alone: the canvas
took focus and Tab cycled on it, so the app's other egui widgets were
unreachable. The key stage now leaves that Tab to egui (TabToEgui),
whose order holds the host stops and the app's widgets. A Tab that
toggles the chrome stays the framework's.
2026-11-24 20:41:30 +00:00
aiongg 47c7a5d041 Dock trial: the handed-over drag's drop mark is the tab strip's, not the floated window's own 2026-11-24 20:41:30 +00:00
skylartaylor e7d564b62d Merge origin/next 2026-11-24 21:38:34 +01:00
skylartaylor ed5d536753 Merge origin/next 2026-11-24 21:38:34 +01:00
David MannandClaude Opus 5.5 2b6a53aa47 font-store: the preview service's plain types and PreviewStore build on wasm, so font-manager does again
The 24 Nov main sync (#3300) brought the font manager's preview-service code (#2782), which names LegalText,
PreviewServiceSource, PREVIEW_SERVICE_ENV and PreviewStore on every target, while font-store only had them in its
native-only store and preview modules. craft-font-manager, and with it the craft crate, no longer built for
wasm32 (photocraft's web build).

They move to an ungated service module; PreviewStore::http_client stays native only, and preview keeps its
PreviewStore re-export. The fake store checks a preview-service address only where the native check exists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 21:37:52 +01:00
aiongg 79c5c887ae tests: is_multiple_of for the gate-sample strides 2026-11-24 20:34:27 +00:00
skylartaylor 1c838de17b NumberField and SliderField: select_on_focus
A click on a number field's value put the caret where it landed and kept
the shown text, so with every decimal written ("0.00"), a click and
"0.5" typed made "0.000.5", which applies nothing. A photo editor's
value field selects its whole value when clicked, so typing replaces it.
NumberField::select_on_focus asks for that, as TextField's does: focus by
key or request selects the value at once, a plain click selects it once
released, and a drag keeps the range it makes. SliderField passes it to
its number field.
2026-11-24 21:30:02 +01:00
aiongg 7388c580b5 pdf test: the node-budget test runs its gate part on wasm32, which has no divisor 2026-11-24 20:25:33 +00:00
aiongg 1c6b664bb2 Merge storytold next into dock-gaps 2026-11-24 20:23:54 +00:00
aiongg b2aab0b8bb Merge next-host-input into dock-gaps 2026-11-24 20:23:54 +00:00
aiongg e976deb569 Merge remote-tracking branch 'upstream/next' into test-speed-1124 2026-11-24 20:21:09 +00:00
aiongg 3bd77702c8 proto test: the gate-fraction flag in the distinct-UID test 2026-11-24 20:21:09 +00:00