FredApps
b04d18a735
Select UI suite items through explicit registries
2026-11-19 12:20:08 +01:00
FredApps
f8dddb2a55
Split UI test kit from story suite
2026-11-19 09:25:07 +01:00
David Mann
93e68f35a1
Merge remote-tracking branch 'origin/next' into anchor/12708-edit-existing
...
# Conflicts:
# crates/draw/src/ui/pen/bezier/mod.rs
# crates/draw/tests/it/bezier.rs
2026-11-19 02:31:29 +01:00
David Mann and Claude Opus 5.5
4d78bb2de2
Add Anchor: Alt selects or copies the whole subpath
...
In the reference application Alt does not turn Add Anchor Point into
Delete Anchor Point: an Alt click on a segment selects every anchor of
its subpath and adds nothing, an Alt drag moves a copy of the subpath
(the copy ends up selected), an Alt click on an anchor deletes nothing,
and the cursor is the arrow with a plus.
The overlay now does the same under Add Anchor, reusing Direct
Selection's Alt segment press (`PathEdit::DuplicateSubpath`, or the
subpath itself on a path that takes no copies). Delete Anchor with Alt
still adds an anchor.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-18 23:03:09 +01:00
David Mann and Claude Opus 5.5
0274c3e5a0
Add Anchor: select and edit existing anchors and handles
...
In the reference application the Add Anchor Point tool edits the
anchors and handles a path already has as Direct Selection does; only
a press on a segment adds an anchor. The overlay took a press on an
anchor and did nothing with it, and never took a handle.
Under Add Anchor a press on an anchor now selects and drags it as
Direct does (Shift adds to the selection), a press on a shown handle
drags it (Alt moves it alone), and a click on empty canvas deselects
the anchors and keeps the path. Alt on an anchor is still Delete
Anchor's click, and a click on a segment still adds an anchor.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-18 22:59:49 +01:00
aiongg
e79a3ed16e
TransformBox: trial that a frame run twice reports each drag move once
...
A frame's second pass runs the box's update again with the press still
held at the same point. The proposal it makes equals the one the first
pass reported, and the gesture reports an equal proposal only once, so a
host that applies each Update applies it once per move. The trial runs
a drag with every frame run twice and counts the updates.
2026-11-18 20:59:41 +00:00
aiongg
cd157c7e8c
clippy: update's Linux cancel trials are a cfg(test) module; tail expressions in the corner and raster trials
2026-11-17 17:47:17 +00:00
aiongg
35b0b38909
Rename our craft-color to craft-color-ui; keep storytold main's craft-color (frame colour tags) at crates/color
2026-11-17 12:54:32 +00:00
aiongg
98226eb219
Merge branch 'look/align' into fw/mac1
2026-11-17 08:04:37 +00:00
aiongg
5ccb18f828
A transformed box's corner near the origin holds the precision of the box's largest coordinate: a host's f32 write-back of a rotated text box no longer reads as a document change that cancels the handle drag after its first step
2026-11-17 08:02:42 +00:00
aiongg
db4365d954
TransformFields panel form: the angle's rotate glyph sits beside its field in the column's label column, as W, X and H do; the bar keeps it inside
2026-11-17 07:59:12 +00:00
aiongg
fe8fdf6eea
TransformBox corners take the first quarter of each side's band beside them, at most the band's width along it, as PhotoCraft's box does
2026-11-17 07:13:24 +00:00
aiongg
110f62f255
Merge branch 'fw/press-route' into fw/mac1
...
# Conflicts:
# crates/ui-contract/src/primitives/sensing.rs
2026-11-17 06:31:19 +00:00
aiongg
053d567561
Press routing by kind: a press's click and its drag each go to the root whose shape is on top for that kind; under a drag-only grip a child keeps its click, a drag-only root below a button takes the drag; TransformBox parts take the click with the drag so a press on the box is the box's alone; DIAG covers the two trials (CRAFT_DIAG_TEST)
2026-11-17 06:20:27 +00:00
aiongg
951a1755fd
TransformFields panel form: the number fields fill their grid cells
2026-11-17 06:16:55 +00:00
aiongg
c410d7ddbf
TransformBox takes PhotoCraft's zones: a corner or side handle reaches handle.md from its point, and each side's band reaches outside the box only, so inside the box off the handles a press reaches what lies under it
2026-11-17 06:16:10 +00:00
aiongg
4a3c72f2db
Look align: text parts ignore the host's egui size floor; options bars at the standard control size; selects in a bar fit their widest entry; check box labels in body type; title band glyphs at size.icon.sm with a faint kind caption; Inspector names its target at section weight; Transform fields fill two columns, W and H first
2026-11-17 06:13:31 +00:00
aiongg
ab8612ef7c
Gradient palette shows its presets as small chips: PresetBrowser's PresetTiles::Chips variant, grid headers and tail rows a collection row high
2026-11-17 05:11:53 +00:00
aiongg
5c50580db9
Sensing: a press past the root's clip (automation's) is taken by a part that shows inside the clip, never by one the clip hides wholly; suite drives skip wholly hidden parts of a canvas control (the clip of its arena), and the corner widgets' drive grips a widget the fixture shows
2026-11-17 04:15:51 +00:00
aiongg
9db1bef17f
Value gestures: a host that keeps a number in f32 echoes the proposal rounded to it; Slider, SliderField, AngleDial and TransformBox read that echo as their own value (craft_behavior::same_in_f32), so a live drag runs on as one gesture
2026-11-17 02:39:48 +00:00
aiongg
86ff913c14
cargo fmt
2026-11-17 01:37:58 +00:00
aiongg
0ea70922fb
Merge branch 'red/t6e' into fw/mac1
2026-11-17 01:05:29 +00:00
aiongg
8f46d3c69a
Merge branch 'red/t45e' into fw/mac1
...
# Conflicts:
# crates/ui-contract/src/runtime/focus/nav.rs
# crates/ui-widgets/tests/it/body/scroll.rs
2026-11-17 01:05:29 +00:00
aiongg
98477eec5c
Gradient palette: the presets take their content height up to five small control heights, then scroll
...
In a content-sized popover (the paint chip's Gradient tab) the palette's preset browser filled the
popover's whole room, so the gradient options under it (Reverse, Dither, Align) fell below the
window. The old palette scrolled past five small control heights, as PhotoCraft's 120 px preset
list does; the browser's room_height gives that bound.
2026-11-17 00:34:27 +00:00
aiongg
2c7ce20114
Empty-part cursor: copy the part result before the cursor call
2026-11-17 00:29:18 +00:00
aiongg
4d600ed6da
Transform box: arrows move the whole box unless the keyboard picked a part
2026-11-17 00:22:35 +00:00
aiongg
8a30a026fe
The anchor tools' empty-canvas part shows the tool's off-path cursor
2026-11-17 00:21:36 +00:00
aiongg
959927e686
rustfmt the crates round C changed
2026-11-17 00:18:07 +00:00
aiongg
a4570cb03c
Merge branch 'red/t2c' into fw/mac1
...
# Conflicts:
# crates/draw/src/ui/pen/curvature_mode.rs
2026-11-16 23:37:48 +00:00
aiongg
4b28aad62f
Merge branch 'red/t3c' into fw/mac1
2026-11-16 23:37:38 +00:00
aiongg
79a5564061
rustfmt the crates round B changed
2026-11-16 23:32:27 +00:00
aiongg
93bfcb46fe
Pen: the knot a press acts on is named knot, so the snapped point at stays the new anchor's place
2026-11-16 23:32:16 +00:00
aiongg
dd0c65a680
BezierOverlay: an open press declares and handles its parts from the paths it began on; Add and Delete Anchor report a press on empty canvas (pressed_empty), whose doc says which tools report it
2026-11-16 23:01:15 +00:00
aiongg
d824fa99d7
Curvature Pen: a press away from every end point carries on the subpath the host names (PenTool::carry_on), adding its anchor to it
2026-11-16 22:50:40 +00:00
aiongg
fcde55c303
bezier trials: a host-cancelled press restores nothing; arrow trial empties the Tab-arrival selection
2026-11-16 22:48:42 +00:00
aiongg
cb14f32232
Merge branch 'red/t4d' into fw/mac1
2026-11-16 22:47:46 +00:00
aiongg
d69d80d2cd
Merge branch 'red/t10' into fw/mac1
2026-11-16 22:47:46 +00:00
aiongg
b865bd53ad
Merge branch 'red/t9' into fw/mac1
2026-11-16 22:47:46 +00:00
aiongg
5d9a02e86b
Merge branch 'red/t7' into fw/mac1
...
# Conflicts:
# crates/behavior/src/geometry/draft.rs
# crates/behavior/tests/geometry/draft.rs
2026-11-16 22:47:46 +00:00
aiongg
a8d15655ac
Pen trial: the carried-anchor press lands on a middle anchor, since a press on the first anchor of a draft of three closes it
2026-11-16 22:47:33 +00:00
aiongg
6de8fd7139
rustfmt the crates round A changed
2026-11-16 22:44:29 +00:00
aiongg
d3b57ecae9
TransformBox RotateZone::Border: the outside rotates only within a reach of the box's sides; further out a press is the box's and does nothing, with the arrow pointer (PhotoCraft's type box with Command held, pc-prod-e76 type_transform.rs:145-152, 213-216, 310-318); TransformOverlay::rotate_zone passes it to the box
2026-11-16 22:22:26 +00:00
aiongg
0233569408
TransformBox move reach: the corners are round, every point within the reach of the border and no further (a strip along each side and a sector outside each corner), as PhotoCraft's type move reach (pc-prod-e76 type_transform.rs:156-196)
2026-11-16 22:22:26 +00:00
aiongg
cdea1067e7
Pen and Curvature Pen place and pull their anchors at the point the canvas snaps the pointer to (View > Snap To and the pixel grid), as the other drawing tools do
2026-11-16 22:04:17 +00:00
aiongg
e902b2d306
Merge branch 'red/lag' into fw/mac1
2026-11-16 22:03:51 +00:00
aiongg
b1d4d02aa6
Snap rounds the points it gives to whole document units when the app turns on the pixel grid, after the target snap and with snapping off or suspended; the transform box reads the grid from the canvas snap and loses its own pixel_grid prop
2026-11-16 22:03:47 +00:00
aiongg
7d991dcb64
TransformBox: the whole outside is four parts, the outside nearest each corner, under the band parts' keys, so a band press at any corner keeps rotating after the Move controls hand the drag to Free Transform
2026-11-16 22:02:45 +00:00
aiongg
88a153964a
Tool stories run their tool in the canvas body
...
The story body is the canvas body: it shows the canvas controls, runs the
tool through the StoryHost on the canvas's tool pass, then shows what reads
the tool's state, so the canvas shows a press and its moves in the same pass.
The run closure applies the tool's events and the story buttons' edits to the
document after the canvas. The body gets the document mutably, since some
tools edit it themselves.
2026-11-16 22:02:07 +00:00
aiongg
46b2a85470
Merge branch 'red/lag' into red/t4d
2026-11-16 22:00:35 +00:00
aiongg
0734fdde26
Merge branch 'red/lag' into fw/mac1
2026-11-16 21:52:46 +00:00