Commit Graph
151 Commits
Author SHA1 Message Date
aiongg 4c563057cd Merge branch 'red/t5' into fw/mac1 2026-11-16 21:35:40 +00:00
aiongg e546c64d77 Merge branch 'red/t4' into fw/mac1 2026-11-16 21:35:40 +00:00
aiongg edd7a2afcd A host cancels an open press by its owner through the press lifecycle Escape uses; BezierOverlay's parts follow the press's tool
cancel_press_of(ctx, owner) marks the arena holding the owner's open press; its next lifecycle run ends the press with
PressCancel::Host, which step 9 turns into a HostChanged cancel of the gesture. PartsCx reads the component's press
slot, so BezierOverlay declares its parts under the tool the press began with, as it handles them. The overlay lets go
of a press that is cancelled or that none of its parts carries, and a release with nothing held does nothing.
2026-11-16 21:29:20 +00:00
aiongg ebf36dc279 A Single Row or Column Marquee click inside the selection selects the line at the press snapped as a point, leaving out the selection's own edges 2026-11-16 21:21:53 +00:00
aiongg 4ad172d12d Tool host: a drag's readout ends with its gesture; trial 2026-11-16 21:17:26 +00:00
aiongg c53698127e TransformBox snapping follows PhotoCraft: inside drags snap the box's bounds, the reference point snaps to the box's nine points only, Distort corners snap to guides only and Ctrl keeps their snapping, and a folded-short corner reports no line 2026-11-16 21:15:37 +00:00
aiongg db27e2c1c7 Crop overlay: a crop that fills what a turn uncovers keeps the press frame; Content-Aware Fill sets it 2026-11-16 21:12:00 +00:00
aiongg 95b0a3e714 Design-lint clean: the scroll thumb's width per state, Canvas::layer_bounds as a prop, centring relations in the tool rail trial 2026-11-16 19:55:05 +00:00
aiongg a0e01972e0 Fit Layers asks for the layers' bounds only when it runs
Canvas::layer_bounds takes a LayerBounds provider; ViewCommands::apply and available take it in place of
ViewTarget::layers, which is gone. Fit Layers is available when the canvas has a provider and calls it only in
the pass that applies the command. Trial: showing the canvas asks for no bounds; firing Fit Layers asks once.
2026-11-16 17:42:23 +00:00
aiongg 9b8dbfb332 Shell slots and dock panel bodies settle when they give a content version
Slot::content and AppShell::content give a slot the version of the app data it shows; DockPanels::content
gives one per panel body. With one, the slot or body runs in a settling Lazy. Trials: a versioned slot and a
versioned panel body run only when their version changes; a stroke whose tool asks for repaints runs no
versioned panel beside the canvas and one pass per move frame.
2026-11-16 17:42:23 +00:00
aiongg 9341d4d478 Settling children: a content version, repaints scoped to the child that asks, input elsewhere leaves versioned children settled
Lazy::content gives the version of the app data a settling child shows; it runs when the version changes.
frame::request_repaint asked inside a settling child runs only that child; outside every one it still runs
them all. frame::request_own_repaint moves only what the caller shows: the tool host and the canvas zoom ease
use it. Input other than pointer motion unsettles only the children without a content version.
2026-11-16 17:42:11 +00:00
aiongg 8090388f3b Merge branch 'fw/det' into fw/mac1
# Conflicts:
#	crates/ui-widgets/src/bars/status_readout.rs
2026-11-16 16:48:00 +00:00
aiongg 45a14a4dad Rulers: minor tick token, mid tick 6/9, ticks end at the divider band, vertical labels step by the label size, horizontal labels sit one gap below the strip top 2026-11-16 16:45:11 +00:00
aiongg 568b6ec337 Dock area: a group's padding reads its active panel's spec by reference; canvas scroll bars drop an unused import 2026-11-16 16:28:19 +00:00
aiongg 7cd391de7e One floating scroll indicator for every scroll area
ScrollBarLook is one look: a clear track and a thin dim thumb line along the track's outer edge
at rest (stroke.thick), the whole track thickness (handle.sm) over a tinted track under the
pointer or while pressed. The docked kind (chrome track, edge rule, inset thumb) goes:
canvas and timeline bars take the same look. CxCore::scroll_bar_state gives a bar's state,
hovered while the pointer is anywhere on the bar, for every painter of a bar.
2026-11-16 16:12:12 +00:00
aiongg 63a4811416 cargo fmt 2026-11-16 14:34:57 +00:00
aiongg f647f41e82 Merge branch 'dl/api' into dl/all 2026-11-16 13:39:11 +00:00
aiongg b39d967677 Merge branch 'dl/contract' into dl/all 2026-11-16 13:39:10 +00:00
aiongg fbe5a16ffe design-lint: api/non-exhaustive: #[non_exhaustive] on public types and variants, constructors where other crates build them 2026-11-16 13:31:29 +00:00
aiongg d580ecfc16 design-lint: rustfmt the files of the contract fixes 2026-11-16 13:25:07 +00:00
aiongg 62523e765b design-lint: contract/egui-import, contract/memory, test/cfg-test: ui-canvas's picture slot is a contract PaintSlot (PaintUi::reserve_slot); tool fixture and brush story ids and memory through runtime::memory and StoryData; ruler tick trial in the integration binary 2026-11-16 13:19:50 +00:00
aiongg 0347762847 Merge branch 'fw/merge-f' into fw/merge-fb 2026-11-16 13:01:41 +00:00
aiongg 4119da5b95 Merge branch 'fw/merge-d' into area/fwb2 2026-11-16 12:57:54 +00:00
aiongg b3f6f9a4fb merge-c4: Q9: the precise cursor trial discards the tool host's reply 2026-11-16 12:50:35 +00:00
aiongg 802cf26cc6 merge-f: F6: trial for the Show Transformation Values gate over tool readouts and huds; Fixture::root_value 2026-11-16 12:47:53 +00:00
aiongg a809ccadc6 merge-fwd: item 1: FW3: windows::mount_window decides a viewport mount's own window (not from a full-screen or Wayland-maximized opener) at all six sites; trials 2026-11-16 12:37:57 +00:00
aiongg 518da9acb9 merge-c4: Q9: the canvas publishes the precise cursor in its CanvasSpace (Canvas::precise_cursors, toggled by Caps Lock); ToolHost::precise_cursors goes 2026-11-16 12:37:53 +00:00
aiongg c36394fe4b merge-fwd: item 3: the window reads the focused canvas's leftover Escape last (with_window_intents), leave_to_window goes; a full-window dialog closes on Escape from its focused canvas; trial 2026-11-16 12:35:28 +00:00
aiongg bacbfc1ffb merge-c4: 3.2: Rotate View Clockwise and Counterclockwise step in screen space, so a mirrored view turns the same way (#4931) 2026-11-16 12:35:07 +00:00
aiongg 7ca2ec0a0e Move items to the layer that owns them: pointer art and surround painting up to primitives, member_gesture_running next to the arena members, gesture_key down to runtime::edit; the font defaults test no longer needs a system emoji font 2026-11-16 04:56:54 +00:00
aiongg 4fb088234a craft-ui-canvas: doc links to guides::reading::running 2026-11-16 02:32:06 +00:00
aiongg cc00dbd368 Clippy and test-target lints: redundant must_use, type aliases for complex types, boxed large variants, argument structs, struct-update initialisers, deprecated egui calls, unused imports and dead code; the swatch library's reorder test runs as a trial 2026-11-16 02:30:55 +00:00
aiongg 2d93badb1d Merge remote-tracking branch 'upstream/next' into area/fwb2-f12 2026-11-16 01:42:32 +00:00
aiongg dc65acc35a tfix5-f12: the Escape a focused document canvas's sessions and tool leave reaches the window's intents (keys::leave_to_window from the tool host; with_window_intents answers while the document canvas is focused); trial 2026-11-16 01:26:07 +00:00
aiongg 5329642822 tfix5-f12: a momentary tool takes the press over the canvas's session members (pointer::withhold_members, set by the tool host each pass); trial: a held Space pans over a crop corner and leaves the crop 2026-11-16 01:23:00 +00:00
aiongg f1f0333a5b Merge storytold next into the framework branch 2026-11-16 01:01:38 +00:00
aiongg 6dabf1503d tfix5-f8: content moves take every move from the press; MoveGesture::left_press is their only click rule; a selection drag that ends where it began cancels 2026-11-15 23:33:58 +00:00
aiongg 7e54540765 tfix5-f8: a secondary click with the momentary Hand asks for the canvas menu; the canvas background senses CONTEXT_CLICK so the press machine tells a secondary click from a drag 2026-11-15 23:20:57 +00:00
aiongg 245f0dba01 tfix4-f6d: FullWindowWorkspace::closed runs on every close of a hosted workspace; Content-Aware Fill stores its settings there only 2026-11-15 22:03:17 +00:00
aiongg fb8838ed41 tfix3-f5: a tool that takes every move gets every move from the press, inside the click distance too; other tools keep click-vs-drag 2026-11-15 19:02:41 +00:00
aiongg 733cb1ece6 ui-canvas: Shift+Alt with the secondary button is the HUD colour picker's chord, not a brush resize 2026-11-15 18:40:02 +00:00
aiongg 4f7cf0bbfb Merge branch 'area/fwb2-f3' into area/fwb2 2026-11-15 17:02:15 +00:00
aiongg 55fd41e76c tfix3-f3: one held OK (HeldAnswer) for every hosted family: HostedParamDialog and HostedWorkspace use it, HostedAdjustDialog gains held_ok/take_ok/answer_ok 2026-11-15 17:01:32 +00:00
aiongg 80e47af962 tfix3-f4: hit reach read, snap kinds, warp frame, fill expand/contract, finite pointer requests, pen host end, exact right-angle cap, empty tone channels 2026-11-15 16:58:16 +00:00
aiongg 2bc5fd1782 tfix-dialog: a held OK is a state the host reports (HeldOk), and confirm finishes an accepted one
StackDialog::held_state / DialogHost::held_state tell a filed OK (Waiting), an accepted one and a refused one
apart from a refused confirm. HostedParamDialog and HostedWorkspace answer confirm with the accepted held answer;
Export As and Save for Web confirm without a path ask for the save dialog as their buttons do. ui.dialog.confirm
does not report a filed held OK as a refusal.
2026-11-15 14:26:31 +00:00
aiongg 563be77452 ui-canvas: path_runs flattens per segment with a bounded point count and breaks runs at non-finite segments 2026-11-15 13:52:13 +00:00
aiongg 28a75794ac fwb2-fix: impl CanvasTool for &mut T
(cherry picked from commit 49d548b68291223f2025372e422d83c2f575083b)
2026-11-15 12:06:38 +00:00
aiongg 791b10e9b0 fwb2-fix: ToolHost::controls_pressing
(cherry picked from commit 93d1dbd7d798831fda938917098eebdf72c1181f)
2026-11-15 12:06:38 +00:00
aiongg ebc8d95afd ui-canvas: the host's gesture keeps its button in its last pointer only 2026-11-15 10:47:36 +00:00
aiongg c4e9efbe18 ui-canvas trials: Play's scripted line runs inside the shown document and the trial runs the injected steps to the end 2026-11-15 10:41:52 +00:00