Commit Graph
2446 Commits
Author SHA1 Message Date
aiongg e918fb84e4 RasterDisplay stories tiled and beyond 2026-11-13 01:44:11 +00:00
aiongg dbd8ec10c6 RasterDisplay extent: tiled copies and a region past the document, for source and painted pictures 2026-11-13 01:44:11 +00:00
aiongg 0748cf6634 FW-263 review: a list trial for the multi-click selection rule; a triple thumbnail click that selected acts once; the hold comment names keeps_pick 2026-11-13 01:30:21 +00:00
aiongg 4b607c829d Lists: a later click of a multi-click on a selected row keeps the selection the first click left; Layers: a double click's selection names its thumbnail part
A double click on a Smart Filter row reported its Activate on the second press and narrowed the selection on its
release, after the app had opened the filter's editor. A double click on a fill thumbnail reselected the row with no
part, which targets a fill layer's mask.
2026-11-13 01:30:21 +00:00
aiongg 27c143b9f0 docs: contract-api and components-index regenerated 2026-11-13 01:30:18 +00:00
aiongg 045b9df8c6 Cursor images: a trial for the root-window rule; the API map points CursorBitmap at the cursor service
Frames::frame_in_viewport runs a full frame of a child window, events and recorded output included, through the
fixture's one frame runner, so a trial can see what a child window's pass sends out. A painted pointer in a child
window sends no image and is painted.
2026-11-13 01:27:37 +00:00
aiongg 6e301f04c7 Cursor images: a badged system cursor keeps the system arrow; trials for where, when and how the image goes out 2026-11-13 01:27:37 +00:00
aiongg 0067fe7b3c Cursor service: painted pointers reach the window as cursor images
A painted pointer is drawn once as a list of marks around its hotspot (ghost/art.rs) and either painted on the ghost
layer or rasterised with tiny-skia into the cursor image the window shows, where the window takes one at its size:
the root viewport of a native build, not Wayland off scale 1, within 255 px on Linux and 2048 elsewhere. The image is
in points on macOS. A brush tip too large for an image hands its centre cross and badge to the window and paints its
ring. The cursor service clears egui's sticky image every pass and keeps the last image while the art and scale are
unchanged, so the integration uploads it once. The brush cursor's own distance-field rasteriser goes.
2026-11-13 01:27:37 +00:00
aiongg 67afa195e2 docs: contract-api and components-index regenerated 2026-11-13 01:25:45 +00:00
aiongg 908da71beb New Workspace's Capture boxes sit in a titled group box; contract API lists the workspace captures 2026-11-13 01:22:55 +00:00
aiongg a2e346e414 Trials: dock side width, workspace captures, bottom pane on switch, workspace dialogs 2026-11-13 01:22:55 +00:00
aiongg 741be65f20 New Workspace and Delete Workspace dialogs for WorkspaceAsk 2026-11-13 01:22:55 +00:00
aiongg d4077e8219 Dock side width scales its columns within their bounds; saved workspaces keep the toolbar choice 2026-11-13 01:22:55 +00:00
aiongg bcd07c7167 F-5 docs: the hover band lies inside the view; the host's clock is the last painting pass 2026-11-13 01:08:19 +00:00
aiongg 74a1426e57 F-5 review: the host reports the autoscroll step from the pass clock; the hover band is size.hit.edge inside the view's rect; a secondary background press leaves a text session open 2026-11-13 01:08:19 +00:00
aiongg 408d419e9b ToolHost: a tool that autoscrolls on hover scrolls the view from the band inside the canvas edge; Autoscroll::step 2026-11-13 01:08:19 +00:00
aiongg 47a49e542d TextEditor: a press on the canvas background commits the session 2026-11-13 01:08:19 +00:00
aiongg 5b22727818 Story suite: a shown run lies inside its own clip, and a run the base shot shows whole stays whole under each variant 2026-11-13 00:45:28 +00:00
aiongg a8607f3526 Theme: field widths follow the text size; a field holds a number of characters 2026-11-13 00:45:28 +00:00
aiongg fcc93550ef docs: contract-api and components-index regenerated 2026-11-12 22:55:41 +00:00
aiongg 33a389b1bc Keys: keys::keyed reports a pass's key input, withheld presses included; craft-menu's had_input reads it 2026-11-12 22:54:16 +00:00
aiongg 9f2fe6923e Keys: the held-open canvas's Space is a press the held rule decides; a space a text field types is the field's 2026-11-12 22:54:16 +00:00
aiongg 164420d72f Keys: focus_holds reads a plain Space as the space it types, as routing does 2026-11-12 22:54:16 +00:00
aiongg a10810e44d Keys: a text field in a menu keeps the text field's rule; its editing keys reach the egui text widget 2026-11-12 22:54:16 +00:00
aiongg 1d9733b61c Keys: a text field holds the presses whose text it took, in place of the typed-shortcut filter; focus_holds names its letters 2026-11-12 22:54:16 +00:00
aiongg 41c16c7b6e Commands: a key command keeps open the popup whose content declares its scope; instances record the layer they run in 2026-11-12 22:54:16 +00:00
aiongg 95cddb5b6e Canvas: an empty or app-painted RasterDisplay releases every texture its stores hold 2026-11-12 22:54:16 +00:00
aiongg 9767ae636d Keys: trial that a letter typed on a list without type-ahead reaches the app 2026-11-12 22:54:16 +00:00
aiongg f37a8b2a7f Keys: focus_holds answers from routing's own decisions: a list's type-ahead letters, and every press of a menu or recorder, which routing also keeps from egui 2026-11-12 22:54:16 +00:00
aiongg c08ad7196b Keys: a press's release or a clipboard event ends the press a following text links to 2026-11-12 22:54:16 +00:00
aiongg 788c89b024 Commands: a key command closes the open popups, as an app shortcut through close_popups does 2026-11-12 22:54:16 +00:00
aiongg 4e7ab74238 docs: contract-api and components-index regenerated 2026-11-12 22:48:32 +00:00
aiongg b250a325fa F-1 review: layer runs by their clip, opt-in cross flip, capped popups in a region, strip speed in rows
- Story suite: a text run counts as shown by an open layer only when its clip lies
  in that layer; PaintedText records the clip.
- Place::flipping_across: only submenus open upward from a low row; rail and dock
  flyouts slide as PhotoCraft's tool flyouts do.
- Only modal and window layers in an embedded shell's region take the whole
  region; a popup kept in a PopupRegion keeps its cap.
- Strips scroll at rows per second of a control's height and show in the pass
  whose measured content first overflows.
- Trials: a bar menu reopened after scrolling to its end shows one level from
  its first row; a dropdown in a bar menu keeps its cap; a low tool's flyout slides.
2026-11-12 22:46:05 +00:00
aiongg 79c7a62e12 Story suite: a text run in an open layer stays in its part; restore the overflowing-menu story
The text-size case counted only the story's own area as shown, so a scrolled
popup's rows, cut only by its view, read as leaving their part once a density
change moved them past that area. What the story shows is its area and the
layers it has open.
2026-11-12 22:46:05 +00:00
aiongg 26e9a3ac63 Menu bar menus and their submenus stay below the bar
PopupRegion is the screen rect the popups opened in an env stay inside;
overlay::region_for returns it for popups, through the path an embedded shell's
modals take, and the measuring room keeps to it. MenuBar sets it below itself
(OverlayUi::contain_popups_below), so a submenu taller than the room under the
bar scrolls instead of covering the titles. The overflowing-menu story goes: the
story suite's room is shorter than the window a menu fills.
2026-11-12 22:46:05 +00:00
aiongg cdb179df0b Menus taller than their room scroll by strips and the wheel; side overlays open upward
Scroll gets a strip indicator: arrows above and below the view that scroll while
the pointer rests on them, taking height from the view and never width. Menu and
inline menus use it, so every menu layer, the menu bar's included, scrolls in the
room it has. overlay::place opens a side overlay that runs past the bounds the
other way when it fits there, so a tall submenu of a low row opens upward.
2026-11-12 22:46:05 +00:00
aiongg d3dedf55cb docs: contract-api and components-index regenerated 2026-11-12 22:40:25 +00:00
aiongg 7fd2b260db ui-contract: the host's tool gesture holds only beside a modal body that keeps the canvas
The registry keeps the dialog's part and the host's part apart: the
host's gestures join the reach only while a modal body keeps the same
canvas, whatever order the two are made in, so a modal that keeps
nothing (an alert) leaves the canvas blocked. Trials: the host's gesture
lapses when the dialog stops keeping the canvas; under a dialog that
keeps nothing it passes no press and no wheel.

Also: the BlockingOverlay story's drive opens it; rows.rs doc wrapped;
api-map TonePickerRow note names pass_canvas_gesture.
2026-11-12 22:38:11 +00:00
aiongg 13da403b9b ui-contract: only the canvas host passes a tool gesture outside a modal body
A control's registration belongs to the modal whose body makes it and
is dropped outside every modal body, so a picker armed in a panel passes
no press under a modal that opens later. The canvas's host passes its
running tool's gestures with runtime::sampler::pass_tool_gesture, which
belongs to the top modal. Trials: a panel picker passes nothing under a
dialog; the host's tool gesture passes and lapses with the dialog.
2026-11-12 22:38:11 +00:00
aiongg 1108d3e032 ui-panels: dialog stories start closed behind a button that opens the dialog
The Dialog and BlockingOverlay stories bind their open state to an
opener button; the close-box drive opens the dialog first. The story
overlay without a card closes with Escape.
2026-11-12 22:38:11 +00:00
aiongg a539851847 ui-contract: a canvas gesture passed outside every modal body belongs to the top modal
The tool host runs the canvas's tool outside the dialog's body; its
registration holds for the top modal layer, here or in another viewport,
and lapses with it. Trial: a gesture the canvas passes itself reaches it
under the open dialog and lapses when the dialog closes.
2026-11-12 22:38:11 +00:00
aiongg 5f279e9a00 ui-contract: a modal's canvas reach names the gestures it passes
The canvas a modal dialog keeps open (runtime::sampler) passes the view
navigation and, beside it, only the presses the dialog names: a
CanvasGesture is a button with the modifiers it needs held, its drag
included. Sampler::pass_canvas_gesture replaces arm_sampler; the
eyedropper rows, the Color Picker and the tone pickers name a primary
press, Curves names its Cmd-click, and every other press stays blocked.

Trials: the kept view passes the wheel (scroll and zoom) and the middle
pan and blocks the primary press; a modifier gesture passes only with
its modifier. Story: Canvas "under a dialog", a live region under an
open modal.
2026-11-12 22:38:11 +00:00
aiongg 01f146b931 Dialogs: automation answers only what a user can press
StandardPrompt and UnsavedChangesDialog build their buttons, their choice
check and their programmatic OK from one offered list; a choice without an
enabled button is refused. HostedParamDialog opens its values once (remembered
values, defaults) before its first show, OK or set, through the helper the
first pass uses; OK builds its result through one helper; set refuses rows
that are hidden or disabled and reads the value as its row's kind.
set_json_field takes the Context. Automation lists dialog ids as decimal
strings, takes a string or a number, and names only the host's dialogs.
2026-11-12 22:27:40 +00:00
aiongg e51e929e48 Dialogs: automation surface for every StackDialog
StackDialog gains json_fields and set_json_field; DialogHost lists its open
dialogs with their fields, sets one by id, and confirms or cancels by id
whatever the type. HostedParamDialog (values by parameter row, with a
programmatic OK), StandardPrompt and UnsavedChangesDialog (their choice)
implement them. craft_automation::dialogs runs ui.dialog.set/confirm/cancel
on a host and lists its dialogs for ui.inspect.
2026-11-12 22:27:40 +00:00
aiongg 15fe3dba92 docs: contract-api and components-index regenerated 2026-11-12 22:04:33 +00:00
aiongg 11e82a60b2 Canvas: trials for the painted display's surround and paint count; Fixture::frame_shapes clears the texture changes it drops 2026-11-12 22:02:35 +00:00
aiongg 70dd577f01 Canvas: RasterDisplay shows an app-painted document beside a source one (AppPaint) 2026-11-12 22:02:35 +00:00
aiongg b02060f515 Keys: typed text a widget takes is held; apps close popups on a shortcut; the chords the focus holds
A letter typed into an open Select list went to the list's type-ahead and also
stayed in egui's input, where an app's own dispatcher ran it as a tool key. The
strip links each press to the text it typed, the begin hook records which texts a
component took, and a widget or popup holds a press whose text it took, as it
holds the presses its routing takes: the press leaves egui's input and the
runtime's shortcuts.

overlay::close_popups closes the running viewport's popup layers. An app whose
dispatcher reads its shortcuts from egui calls it when a shortcut runs; only the
app knows that a press matched one of its bindings.

keys::focus_holds names whether the focused component holds a chord: claimed, or
held by routing as owned_shortcuts decides. route_press splits into a decision
that reads state only (press_route) and the step that acts on it (apply_press),
so the query and the key stage share one decision and one held predicate.
2026-11-12 22:02:35 +00:00
aiongg ff3638f870 Lists: stacking keys move the rows a drag takes; a held release asks for its pass
key_reorder takes the rows acted_on names, so a stacking key on a selected sub-row moves that sub-row and not its
row. While a press holds a release for a later pass, sensing asks for a repaint, so the release goes out in the next
frame without new input.
2026-11-12 22:02:35 +00:00
aiongg 70dfca7f24 Lists: a drag or Delete of a selected sub-row takes the selected sub-rows only
A sub-row belongs to the row above it, so a gesture on one acts on the selected rows of its own kind. The Layers
panel keeps a Smart Filter row selected beside its layer; a drag of that row carried the layer too, and the drop
rule refused the mixed set.
2026-11-12 22:02:35 +00:00