Commit Graph
725 Commits
Author SHA1 Message Date
aiongg 444ba59795 A layer in a popup window remembers what it opened with
A layer opened in a palette window shows in a popup window of its own. Its host asked in the opener's viewport whether the layer appears in this pass, and only the popup's pass recorded that it had, so the layer appeared in every pass and forgot everything in between. The arrow keys never left a menu's first row, a menu hung at the pointer jumped while the pointer was over it, and a scrolled flyout went back to its top. The host now records the appearance in the opener's viewport too (`overlay::note_appeared`, split out of `begin_layer`), so both viewports agree.

With its memory kept, such a layer takes the two rules an in-window layer has: a right-click on its context opener hangs it at the new pointer (`recall_shown`, shared by both hosts), and the press that opened it from another window does not close it when the opener runs a second pass of the opening frame.

The window kit's `send` gives events to one child window, such as a popup's.
2026-11-25 19:11:46 +00:00
aiongg 6801f1f9b5 A window's records survive the frame that opens it: closed viewports' records go as a frame begins
Every pass's end hook dropped the per-viewport records of viewports its input did not list. That list dates from the
frame's start, so the root's end hook dropped the records of a window the frame had opened. A palette that opened
hidden under an open menu lost the note that it was hidden, and stayed hidden once the menu was gone: Float in a docked
tab's menu left no window to see when the opening frame ran a second pass. The root's begin hook now drops the records
of closed viewports in a frame's first pass, where the list names every window opened before.
2026-11-25 18:16:05 +00:00
aiongg d0254a0996 Merge pull request #3533 from aiongg/ports-combined
Ports: a click keeps the canvas focused, Escape from floats, rail drags dock
2026-11-25 11:15:43 -05:00
aiongg aa401985dd Merge commit 'ea2211729e' into ports-combined 2026-11-25 15:43:03 +00:00
aiongg ea2211729e The waiting window's repaint is a docking::native function 2026-11-25 15:42:39 +00:00
aiongg fd7f86446f A floating window that takes over a held press opens its OS window once the press ends
The OS gives an OS window no press that went down in another window, so DockArea::continue_move had no effect
on a window the dock opens as one. The window shows in the app window while the press moves it: it follows the
pointer, marks where it would land and docks on release, as a tab drag does.
2026-11-25 15:13:06 +00:00
aiongg f15b0e87d2 An Escape nothing in a floated dock window takes is the dock window's Cancel
A dock panel's OS window gets its keys alone, so an Escape pressed there with
nothing focused became that window's Cancel, which no app code reads: a command
started from a floated palette could not be cancelled. The end hook hands a Cancel
left in such a window (`WindowSpec::hands_on_cancel`) to the window it was opened
from, which reads it as its own in its next pass. A popup or a modal open in the
floated window keeps the Escape, and a modal that opened meanwhile drops it.
2026-11-25 14:57:40 +00:00
skylartaylor b003bd172a Merge origin/next into design-port/pr-docking-rails
One conflict, in docs/ui-docking.md: next added bullets for tab presses keeping
key focus and for floating windows stacking with app windows next to our
split-handle bullet. Kept our split-handle sentence (a pointer press or drag on
a handle leaves key focus) and next's two new bullets after it.

The Rust files merged cleanly. next still has dividers that take focus on a
press, the flyout room limited to the space below its top, and no RailTool
icon, so none of this branch's changes is covered by next.
2026-11-25 15:21:14 +01: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 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
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 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
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 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 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 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 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 603b9708bd Docking documents trial: clippy type alias and iter 2026-11-24 21:00: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 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
aiongg b2aab0b8bb Merge next-host-input into dock-gaps 2026-11-24 20:23:54 +00:00
aiongg 146a95ed43 Merge storytold next into next-host-input 2026-11-24 20:18:12 +00:00
aiongg 283490a083 Drag: look the moving container's layer up at each hit test
drag::start took the source container's layer from the layers shown last
frame. A window floated in the pass before it continues a press (a rail
popup dragged out) runs its body, and so starts its drag, before its first
layer is recorded, so the session moved no layer: drop targets did not look
through the dragged window, and on release the window's own drop target,
the top layer under the pointer, took the drop and refused it, leaving the
panel floating. moving_layer now reads the source's layer from the layers
shown last frame at each hit test. The plain-egui hand-over trial floats
its window in the pass the press is handed over, as the app does.
2026-11-24 20:11:24 +00:00
aiongg 56e0824f2c Merge remote-tracking branch 'upstream/next' into test-speed-1124 2026-11-24 20:00:50 +00:00
aiongg 04bb1e1b5b ui-patterns tests: settle after dialog actions instead of fixed frame counts
Save for Web's open and palette helpers, its slices test, Export As's scale test
and the New Document card tests wait until the dialog is stable rather than 4 to
30 frames; the card tests run without motion, since they read cards where they
are painted. Clock-timed steps stay as they were.
2026-11-24 19:57:56 +00:00
aiongg 30770cf864 Merge pull request #3300 from aiongg/next-sync-1124
Merge storytold main into next (24 Nov sync)
2026-11-24 14:48:09 -05:00
aiongg 1559c08c95 Dock: a window takes over a held press a plain egui widget holds
An app's own popup (TextureCraft's rail popup) senses its title row with
egui, so no arena holds the press it hands to a floated panel's window
through DockArea::continue_move. hand_over_press found no arena press and
the window never followed the pointer, so the panel stayed floating where
the popup was. When no other arena holds a press, the window's move band
takes the primary press from egui's pointer state; a press held by another
arena is handed over as before.
2026-11-24 19:20:27 +00:00
Dylan M. Taylor a4db799563 Merge pull request #3315 from dylanmtaylor/filmcraft/float-raise
dock: the host's focus request brings the floating window that holds the panel to the front
2026-11-24 13:54:31 -05:00
aiongg 191ad699b6 Dock: a panel drag a floating window took over docks whatever title_bar_docks says
A window that continues a panel's drag (DockArea::continue_move, a rail popup
floated by its tab) began its move as a title-row move, which docks only with
DockConfig::title_bar_docks. The handed-over press now says so through the
move: PressStart::handed (set by PressMachine::take_over) and
PlacementChange::continued on the layer move's reports. FloatingGroup starts
its window drag with GroupDrag::title_row only for a press on its title row,
and DockDropTarget refuses only those when title_bar_docks is off.
2026-11-24 18:50:12 +00:00
aiongg a2967e3cc1 DockAreaOutput::window_files names the panel each drop landed on
A file drop on a floating OS window reports the shown panel of the group under
the drop, from the drop session's pointer; the first group's on the title row or
when no pointer is known. ui-docking.md covers documents, swatches, raise and
WindowFiles.
2026-11-24 18:36:28 +00:00
aiongg 4db99f65a2 Dock: a panel's documents as tabs of its group, and a data-colour swatch on tabs
PanelSpec::documents lists what a panel shows (a Timeline's compositions) as tabs
after the group's panel tabs, in the same strip: one fit, one overflow menu, one
keyboard order. A pick reports DockEvent::DocumentPicked and activates the panel;
a close reports DockEvent::DocumentClosed. PanelSpec::swatch and
PanelDocument::swatch show a data colour in the tab's icon slot.
2026-11-24 18:36:04 +00:00
aiongg fc5f4b2706 DockArea::raise: the floating window holding a panel comes to the front in this pass
An OS window gets WindowAction::Focus; a window on a layer goes to the top of
egui's area order through overlay::raise, which now raises floating windows too.
2026-11-24 18:35:31 +00:00
aiongg 24d491397d Dock trial: a tab dropped at the window edge beside a start dock makes a new outer column 2026-11-24 18:35:21 +00:00
aiongg ea3b99e892 ui-patterns: drop a dock-gaps trial file the merge picked up from the worktree 2026-11-24 18:32:25 +00:00
aiongg 73b31f60ca Merge storytold next into next-host-input 2026-11-24 18:28:22 +00:00
aiongg 2b20e152e3 Merge remote-tracking branch 'upstream/next' into next-lint-picker
# Conflicts:
#	crates/automation/src/client_tests.rs
#	crates/ui-panels/src/docking/dock_column.rs
2026-11-24 18:17:38 +00:00
Dylan M. Taylor 8fe39699a8 Merge pull request #3313 from dylanmtaylor/filmcraft/dock-focus-panel
dock: a host moves key focus to the group that shows a panel, as a click on its tab does
2026-11-24 12:52:40 -05:00
Dylan M. Taylor a668cda8f0 Merge pull request #3310 from dylanmtaylor/filmcraft/dock-gesture-sources
dock: DockArea reports the gesture sources it drew
2026-11-24 12:52:29 -05:00
aiongg 98a30afa0b Merge remote-tracking branch 'upstream/next' into next-lint-picker 2026-11-24 15:59:32 +00:00
aiongg 2f8d73e7cf Merge storytold next into next-host-input
Conflicts resolved so that next's changes and this branch's fixes both hold:
- keys: next's unfocused-canvas state claims join the key stage's framework claims; the canvas's
  declared claims stay the host's (egui keeps their presses).
- overlay: the app's own modal (`FrameInput::app_modal`) joins next's modal stack at the frame it
  first showed in.
- docking: the tab-pick trial moves key focus into the group with Tab, since a click on a dock tab
  leaves key focus where it is.
2026-11-24 15:37:34 +00:00
bflatastic 33774554c7 ui-panels: a titled Panel draws the rule under its header only for a weight that stands with one, as Section does for its rule above; an Inspector's Quiet kind line has none 2026-11-24 22:21:42 +07:00
Dylan M. Taylor 5a2896d3e3 dock: the host's focus request brings the floating window that holds the panel to the front
FloatingGroup::raise is a request of the pass: an OS-window float is raised and focused, a layer's family comes in front of the other layers (overlay::raise), as DocumentWindow::raise does. DockArea::focus sets it on the floating window that holds the focused panel, so a panel the host reveals is not left under another floating window. View state only: the workspace keeps no stacking order. native::raise is the one raise path, for the flag and for the start of a move or resize.
2026-11-24 10:05:33 -05:00
Dylan M. Taylor 60a5de5ca9 dock: a host moves key focus to the group that shows a panel, as a click on its tab does
DockArea::focus(panel) is a request of the pass: the group holding the panel picks its tab
(Action::activate in the pass's actions) and its tab row's stop takes key focus while the row
runs, so the next pass's keys route through that group. A titled header focuses its drag band.
2026-11-24 10:05:33 -05:00
aiongg f4d3f6c557 design-lint on next: the plain artboard edge's black as a data colour, the task bar grip story's drag in drag thresholds, dock column cards take their outer inset as a CardInset step, the link label ink story reads the link's click from its output 2026-11-24 14:59:40 +00:00