Commit Graph
581 Commits
Author SHA1 Message Date
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 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 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 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 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
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 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 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
Dylan M. Taylor ba2c36b306 SplitArea keeps the handle paths it declared for its dividers; trial for DockAreaOutput::sources 2026-11-24 09:55:36 -05:00
Dylan M. Taylor 393282d783 DockArea reports the gesture sources it drew: tabs, group bars, window grips and resize grips, dividers, each with its rect, OS window and node id 2026-11-24 09:55:36 -05:00
bflatastic dc8b91f5f1 list, menu: CommandHighlight (an env style value, Accent by default) chooses how a menu's active row, a popup list's command row, the palette's active row and an open menu bar title show it; under Hover they paint state.hover with their own ink, as a row with an open submenu 2026-11-24 18:29:26 +07:00
bflatastic 06e94d7321 tabs, dock: PanelTabLook::Pill shows a panel strip's shown tab on a filled rounded pill (surface.control, shape.radius.control, size.control.sm high in the middle of the strip; a hovered tab shows it too); TabStrip::panel_look and DockConfig::tab_look choose it, Plain by default 2026-11-24 17:59:45 +07:00
bflatastic 2eb195b889 ui-panels, dock area: DockConfig::column_cards (was rail_cards) shows every docked column as a card, expanded or collapsed to icons: surface.panel with shape.radius.surface corners on the dock's background, inset by space.gap.stack on top, bottom and at the window edge, and space.gap.tight between neighbouring cards; each column wider by its inset so its content keeps its width; group dividers stay inside the card; container surfaces keep to their layer's frame 2026-11-24 17:45:08 +07:00
bflatastic 6e727dc6c6 Merge remote-tracking branch 'origin/next' into fix/vc-chrome-bars
# Conflicts:
#	crates/ui-widgets/src/buttons/mod.rs
2026-11-24 15:31:24 +07:00
bflatastic faf5a954e4 ui-panels, dock area: DockConfig::rail_cards shows a docked tool rail's column as a card: inset by space.gap.stack on its outer, top and bottom sides over the dock's background, surface.panel with shape.radius.surface corners and no frame, the column wider by the inset so its steps stay 2026-11-24 15:24:08 +07:00
bflatastic d0e1ca86fa docking: DockConfig::panel_menu_icon picks the panel menu button's icon, more by default 2026-11-24 13:14:08 +07:00
bflatastic 6080b3950c sections: HeaderStrength::Quiet, the caption role in the muted ink with no rule, for an inspector's kind line 2026-11-24 13:14:05 +07:00
bflatastic b21bc0e359 select: SelectLook::Quiet, a quiet box as wide as the entry it shows; WorkspaceSwitcher::look passes it on 2026-11-24 12:35:21 +07:00
bflatastic fe138f934f docking: DockConfig::panel_menu_always gives every group its panel menu button 2026-11-24 12:35:00 +07:00
bflatastic 47691f10c2 Inspector: title_strength gives the title another weight than a section heading's 2026-11-24 12:18:43 +07:00
aiongg 5d9f4b62cb Hosted egui apps on next: host code runs once per pass, and the app's own modal blocks its other windows
A dock panel's egui code (PanelSpec::host_body) ran in the framework's
measuring runs too, so egui saw its widgets twice per pass at two rects
and painted ID-clash warnings. HostStyle::show runs it in the real run
only; a measuring run takes the size its last real run took.

FrameInput::app_modal names the window where the app's own egui code
shows a modal; the app's other windows (native floats among them) are
blocked through the same path as under a framework app-modal layer.
2026-11-24 02:14:13 +00:00
bflatastic daed17160c ui-patterns: a hosted dialog's automation set takes the host's row labels and shown states, every tab's rows and the read-only refusal again, and reports the rows it changed, which the merge of next dropped from the batched set 2026-11-24 08:11:59 +07:00
bflatastic 969bfa99fa ui-patterns: a document dialog's fixed section puts its rows on a card again and heads them with its name, which the merge of next dropped from the section rewrite 2026-11-24 08:11:54 +07:00
bflatastic 8a4d26ccbb Merge branch 'fix/hosted-answers-real-run' into vc/fixes-on-stubs 2026-11-24 07:42:11 +07:00
aiongg 48e798653c HostStyle moves to primitives: the dock pattern reaches the host style through the contract
- primitives::HostStyle keeps an app's own egui style and runs its code with it (run) on its panel
  fill (paint_panel); runtime::egui::style keeps the adapter's style_of and set_style, which only it
  and the primitive call.
- The dock pattern uses the primitive; the adapter type it imported is gone.
- host_body trial: a named type for what each body saw.
2026-11-24 00:40:10 +00:00
aiongg 1b0ffe1ada Hosted egui apps on next: dock tabs keep key focus, floats stack with app windows, host bodies keep the app's background
- A pointer press on a dock's panel tab (a click, a drag's press, the tab menu's secondary press)
  leaves key focus where it was (`TabStrip::keeps_focus`), so an app's own shortcuts keep working
  after a tab drag or the tab menu; Tab still reaches the tabs. A press on a `host_body` panel's
  body is the app's and no longer focuses the group's tabs.
- Floating windows leave the overlay's `set_layer_order` list and stack in egui's own area order,
  which raises a layer when it first shows and when it is pressed: an app's own egui dialog opened
  over a floating panel shows above it.
- A `host_body` panel's body is filled with the host style's panel fill (`HostStyle::paint_panel`)
  and gets no body padding, as it showed outside the dock.
- Trials: tab presses keep focus, float order against an app window, the host body's fill and room,
  and an unbound F6 reaching a hosted canvas (alone, and in a dock of host_body panels).
2026-11-24 00:31:19 +00:00
bflatastic 8311df0401 ui-patterns: hosted New Document takes the host's answers and closes on an accepted held answer only in a real run 2026-11-24 07:16:28 +07:00
bflatastic 3eddf17eea ui-patterns: hosted New Guide Layout and New Guide take the host's answers only in a real run 2026-11-24 07:16:23 +07:00
bflatastic b178752244 ui-patterns: hosted Save for Web takes the host's answers, the Optimize answers and the automation inputs only in a real run, so a palette colour answered in a measured frame still becomes a shift 2026-11-24 07:16:21 +07:00
bflatastic 8f60b79b39 ui-patterns: hosted Export As takes the host's answers only in a real run, so a path answered in a frame whose first run measures the dialog still finishes it 2026-11-24 07:16:18 +07:00