Commit Graph
298 Commits
Author SHA1 Message Date
Martin Ball 3220cbf9d9 dialogs-w12: net change of 4 commits
- dialogs-w12: written from its sheet
- dialogs-w12: repair 1
- dialogs-w12: review fixes (review-1)
- dialogs-w12: review fixes (review-1b)
2026-11-18 18:18:25 +00:00
Martin Ball def1c54d40 fmt: chrome framework batch 2026-11-18 16:52:16 +00:00
Martin Ball 8cf5a10121 alt text: a disabled text part marks the node that stands for it disabled; gradient tile trial compares focus outlines by their normalised parameter 2026-11-18 16:21:12 +00:00
Martin Ball ebcb3f909a chrome-w5: swatch story labels own their names (Label from &'static str) 2026-11-18 16:02:44 +00:00
Martin Ball 1bbb502203 chrome-w5: net change of 3 commits
- chrome-w5: written by an agent
- chrome-w5: review fixes (review-1)
- chrome-w5: review fixes (review-1b)
2026-11-18 16:01:11 +00:00
Martin Ball 5b9bf4c985 canvas-w4: net change of 5 commits
- canvas-w4: repair 1
- canvas-w4: finished by an agent
- canvas-w4: finished by an agent
- canvas-w4: finished by an agent
- canvas-w4: review fixes (review-1)
2026-11-18 14:03:47 +00:00
Martin Ball 8304cc416d Contract stubs: craft-color-ui craft-draw craft-imaging craft-font-manager 2026-11-18 08:42:03 +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