Commit Graph
12585 Commits
Author SHA1 Message Date
Dylan M. TaylorandClaude Opus 5.5 4d1b4434bf Rulers: leave out a tick label that would run into the next labelled tick
A label as long along its strip as the room between labelled ticks (a host table
that labels every unit at a low zoom, or a vertical strip's stacked characters)
is not painted, so no label overlaps the next one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 19:29:56 +00:00
Dylan M. TaylorandClaude Opus 5.5 4fe5bbd953 Framework sync: merge craft-libs main (9949e08d6)
Conflicts:
- items/press.rs: the port's cell_press takes the modifiers; it now reads upstream's pick_mods, the release's own.
- run/typed.rs and primitives/record.rs: the face record keeps the port's Name, so a decorative or labelled-by face stays one. Upstream's rule is added: an empty own text falls back to the label.
- Test imports take both sides; menu bar test comments take upstream's wording for its row naming.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 17:02:52 +00:00
Dylan M. TaylorandClaude Opus 5.5 61fc6d2626 update: the UpdateCheckDialog doc link resolves by its label
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 16:28:01 +00:00
aiongg 9949e08d6f Merge pull request #3438 from storytold/design-port/pr-input-focus
Input and focus fixes: wheel over text fields, Scroll Into View on list rows, click modifiers, shown-only chords, face names, right-click outside menus, mixed sliders
2026-11-29 10:52:12 -05:00
Dylan M. Taylor 1f6c3a21f8 feat(nightly): add shared craft-nightly profile isolation crate (#4270)
* feat(nightly): add shared craft-nightly profile isolation crate

* fix(nightly): preserve startup isolation and document profile migration

* feat(craft): expose craft-nightly through facade crate

* fix(nightly): reject misplaced protocol flags and use zero-access Windows metadata query
2026-11-29 10:31:11 -05:00
David Mann bfd8fec34b Merge pull request #4276 from davidmann4/fix/eyedropper-ring-persist
color-ui: an Eyedropper built anew each pass keeps the held sampling ring (photocraft#17931)
2026-11-29 16:26:55 +01:00
Dylan M. Taylor caa0e85b8e Merge branch 'merge-fw/lint' into merge-fw/main 2026-11-29 15:21:38 +00:00
Dylan M. TaylorandClaude Opus 5.5 b2a4cfc26f Clippy: port test code and the cancel response of upstream callers
ToolHost::cancel returns the port's ToolHostResponse (must_use); the fill, liquify, raw develop and vanishing point cancels take it as wide_angle and select_mask do, as their tools request no URLs. Port tests: unused Props import, Id::unique for a fixed id, a one-range Vec from once, as_chunks, Result::inspect, and the dropper trial's hover and sample phases as helpers under the complexity cap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 15:18:56 +00:00
Dylan M. TaylorandClaude Opus 5.5 3562f506fe Side-menu ink trial: the menu stands on Brand; a Chrome rail reads in text contrast
The port's side-menu ink follows the surface it stands on. The trial now stands its menu on SurfaceKind::Brand, as upstream's side menus do, with both assertions kept, and adds the port's case: on a chrome rail, in light and dark, the icon button takes the rows' ink and that ink reaches text contrast on the chrome.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 15:18:56 +00:00
Dylan M. TaylorandClaude Opus 5.5 4259eb1dd7 Design lint: stories, picture and comment row
The gallery story reads clicks with contract::clicked; the fitted picture stories take a documented FIT_ROOM in a scoped child instead of allocate_ui; a centred picture fits at its style height's aspect; the comment card's tile is one Stateful with a selected look.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 15:18:47 +00:00
Dylan M. TaylorandClaude Opus 5.5 c5229798f1 Design lint: ui-contract ids, AccessKit and trial colours through the contract
The container measure id comes from runtime::egui::memory::unique; numeric AccessKit steps from runtime::egui::access::step_move. The flag-mark trial walks its segments by angle and length with a plain ink; the icon trials bind rendered layers outside asserts, and the fixed run's tint is checked to leave colours as drawn instead of against Color32::WHITE, so the marker count matches its exception again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 15:18:47 +00:00
Dylan M. TaylorandClaude Opus 5.5 7bcd2b9464 ui-shell: AppShell::page_kind is a prop; ScreenModeFollow::follow takes FollowBy
page_kind was a hand setter (design lint). follow had eight arguments (clippy too_many_arguments); the window-side inputs are one FollowBy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 15:18:46 +00:00
Dylan M. TaylorandClaude Opus 5.5 3e06f8189d Design lint: Bar and CommandPalette setters come from the props macro
CommandPalette::state and Bar::background_press are #[prop] fields. Bar::look(BarLook) becomes Bar::over_picture(), since choosing the look also clears the container surface; Bar forwards no container builders, so its own surface() stays. The bar stories stand the bar over the stage with Stack::show_at and read clicks with contract::clicked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 15:18:46 +00:00
Dylan M. TaylorandClaude Opus 5.5 878ebe405b Design lint: the theme colour menu spaces its sections with stacks; ColorPick::Scheme is non-exhaustive
The tight gap between the theme and standard sections is a Stack gap, not add_space. ColorPick::scheme builds the variant. The trial file drops an unused Props import (clippy).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 15:18:33 +00:00
Dylan M. TaylorandClaude Opus 5.5 7aa8f46dc6 Design lint: ServeOptions and ColumnRule::FitToView are non-exhaustive
ServeOptions gets clock and ended setters beside From<ServerLimits>; ColumnRule gets fit_to_view. The trials build them through those.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 15:18:33 +00:00
aiongg 94bf0e02fc Merge pull request #3452 from storytold/lightcraft-pr/fw-runtime-fork
Runtime: fork a window's UI state into another context for headless capture
2026-11-29 10:14:34 -05:00
skylar taylor-barrickandFredApps 76416ccd31 Dock dividers move with the move that starts their drag (#3461)
* docking divider: a drag moves the divider with the move that starts it

The move that carries a press past slop arrives as PressPhase::DragStart with the pointer position, but divider::drag dropped it, so every container moved its divider a pass later. Drag::Start now carries its coordinate (Start(f32), mirrored for right-to-left like To) and Drag::coord gives the coordinate of either. SplitArea, DockColumn, StackSections, the iconic column's edge, SplitViews, the column bar and the margin handles begin their gesture as before and then apply the start's coordinate in the same pass.

Drag is public, so Start(f32) is an API change for code that matches Drag::Start.

Trial a_column_divider_follows_the_move_that_starts_its_drag_in_the_same_pass

* docs: regenerate contract-api.md

---------

Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-29 10:07:14 -05:00
Dylan M. Taylor d49ee8d237 Merge main and regenerate contract API after inspector changes 2026-11-29 10:07:01 -05:00
skylar taylor-barrick 8b78923296 Inspector and accessibility names (#3215)
* Inspector: name generic components by their type and list a text field's value

The component name dropped the path before the generic arguments, so Select<'_, String> was
recorded as `String>`. A text node's value, which AccessKit reads, now also shows in the
inspector's facts.

* Inspector: test generic component names and text field values

* Keep the components of a replayed memoized view in the enclosing inspected region

* SwatchPair: each well's access node is named by its own label, not the pair's

* rustfmt

* Inspector: clippy tidy-ups in the replay step and its trial

* Inspector: a text field's value is journaled like the other steps, so a replayed view keeps it; the pair trial checks each name is its well's radio button

* inspect: list a text value whichever order the node's facts arrive in

A text value noted before its node's facts in the same pass was dropped, as it
was only written on facts that already existed. The open region now keeps the
noted value per component and writes it on the facts when they arrive, so the
order no longer matters; a value the node states itself still wins. The steps
journal and replay as before.

The trial drives the record's calls in each order: text value before facts,
facts before text value, facts reported again, and a node's own value.

* Inspector trial: a null-rooted id and a let-else in place of expect, for next's lints

* Inspector trial: assert the region ran instead of panicking, for next's lints

* docs: regenerate contract-api.md

* contract-api: an entry's summary is its first sentence, not its first line

The generator showed the first line of each item's doc comment, so an entry whose doc comment wrapped
mid-sentence ended on a dangling word: the press latch's `release` stopped at "an earlier", `swallows` at
"true for the", and about a quarter of the file's entries were cut off the same way.

The summary now carries the wrapped lines to the end of the first sentence, stopping at a colon that
introduces a list, so every entry reads whole. Only the clipped tails change: each completed entry keeps
its text and gains the rest of the sentence from the item's own doc comment. docs/contract-api.md is
regenerated with it.

* contract-api.md: regenerated after the merge of main (the generator's own output, not a hand merge)

* contract-api: a summary stops at its first sentence's end inside a line

`doc_summary` only stopped at the end of a line, so a doc line that held two sentences (`... release or
cancel. A press that begins while nothing is latched is not swallowed.`) carried both, and the entry was
two sentences long.

`sentence_end` now finds the boundary inside the line: a full stop, question or exclamation mark that ends
the line, or that a space and a capital letter follow, and never a run of dots (`(LRI ... PDI)`) or one of
the short forms e.g., i.e., cf., vs., etc., approx. The summary stops there; a colon that introduces a list
below still ends it too.

docs/contract-api.md is regenerated with the rebuilt binary.

* memo keys: whether a region is open; contract-api: no Self:: link targets

A memoized view's key held the props, the `fn` and what the scope around it hands down, but not whether an
inspected region was open. A view that settled outside a region kept a run that recorded no inspection steps
(`runtime::inspect::run` notes one only while a region is open), so when a region later wrapped the unchanged
view it replayed that run and the region's record showed none of its components: the inspector listed nothing
for what the region showed.

Whether a region is open now feeds the key, one byte after the show address, so a view settled outside a
region runs in the pass that shows it inside one and records the region's steps; a run made inside a region is
not replayed outside one either. `contract::inspect_region` trials both directions and the region's recorded
components, and `record`'s doc says why. Without the key byte that trial fails.

`doc_summary` also drops the target of a link that names the item's own type (`Self::zoom_x`), which rustdoc
resolves in the source and this file has no page for: the entry keeps its reference text, as the file writes
every name it cannot link. docs/contract-api.md is regenerated with the rebuilt binary: 77 lines, the 82 link
targets and nothing else, and a second run leaves it byte-identical.

Focused trials pass: ui-contract's `contract::inspect_region` (new), `memo`, `derived` and `contract::fixes`,
ui-widgets' `memo` and `runtime::inspect` (the region's components through a replay included), and
craft-menu's `keytips`.

* docs: regenerate the contract catalog on current main
2026-11-29 10:04:40 -05:00
David Mann 3fb7f93211 Merge pull request #4274 from davidmann4/perspective-crop-start-snap
Perspective Crop: a box drag starts on the document bounds the canvas snaps to (photocraft#11803)
2026-11-29 15:48:51 +01:00
David Mann 347f772c2e Merge pull request #4273 from davidmann4/fix/brush-picker-range-alert
Brush Preset picker: a Size or Hardness typed out of range reports the range alert
2026-11-29 15:48:40 +01:00
David MannandClaude Opus 5.5 779b536f71 Perspective Crop: a document of broken size snaps the drag start neither to a corner nor to an edge
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 15:23:46 +01:00
David MannandClaude Opus 5.5 bf378c95ee Brush Preset picker: take the Size alert before Hardness's, out of the head's closure
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 15:20:48 +01:00
David MannandClaude Opus 5.5 42a7f08637 color-ui: an Eyedropper built anew each pass keeps the held sampling ring (photocraft#17931)
EyedropperTool::ring reads the ring the button holds and EyedropperTool::held hands it to the next pass's
tool, so an app whose sample closure borrows its state, and so rebuilds the tool every pass, paints the
ring in a pass with no pointer input too instead of flickering.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 15:18:17 +01:00
David MannandClaude Opus 5.5 9a0766e3d9 Perspective Crop: snap the drag start through the canvas's Snap, not a field of its own
The tool builds no snapping of its own: the edge snap now goes through
ToolContext::snap_of (the canvas's tolerance, View > Snap To, the
suspend key, the nearer target when both edges are in reach), and the
corner rule asks the new ToolContext::snaps_to_document_bounds. So
PerspectiveInput stays as it was and apps need no change beyond the
canvas Snap they already give.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 15:14:54 +01:00
David MannandClaude Opus 5.5 8a6336c117 Perspective Crop: a box drag's start can snap to the document bounds (photocraft#11803)
PerspectiveInput gains `snap: Option<StartSnap>`. With it, a box drag
pressed beyond a document corner starts at that corner, and one within
the snap distance of an edge starts on the nearer edge, from the drag's
first move. Clicked corners keep their place. A size that is negative or
not finite snaps nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 15:10:05 +01:00
David MannandClaude Opus 5.5 5aa7919fe7 Brush Preset picker: a Size or Hardness typed out of range reports the range alert
BrushSizeField passes on its slider field's range alert, and the picker's
output carries the head's alert as out_of_range, so the host can show it
while the picker stays open (storytold/photocraft#11817).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 15:09:40 +01:00
Dylan M. TaylorandClaude Opus 5.5 7abd484260 Framework sync: cargo fmt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:54:35 +00:00
Dylan M. TaylorandClaude Opus 5.5 c219d0c6fa Framework sync: merge craft-libs main (186a229c8, with the egui numpad rev)
Conflicts: the paragraph trials keep both sides' trials; the pass pointer keeps upstream's stirred (moved to a new position) and the port's moved (a move event this pass); the shell's slot visibility, overlay and covering tests combine the port's page rule with upstream's standard-mode bar reveal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:53:40 +00:00
Dylan M. Taylor 781be5c8bf Revert "LOCAL egui override: the workspace egui is the local fork clone (932a73b2 + storytold/egui#48); drop with the craft-libs egui rev move"
This reverts commit 0c98aae844.
2026-11-29 13:50:07 +00:00
Dylan M. Taylor 051b57c190 Merge branch 'merge-fw/fonts' into merge-fw/main 2026-11-29 13:49:55 +00:00
Dylan M. Taylor cc09418f5f Merge branch 'merge-fw/trials' into merge-fw/main 2026-11-29 13:49:55 +00:00
Dylan M. Taylor 025f9ecc3a Merge branch 'merge-fw/toggle' into merge-fw/main 2026-11-29 13:49:54 +00:00
BFlat 186a229c8d Merge pull request #4259 from dotCooCoo/fix/color-panel-cancel-restore
color-ui: ramp, hex, readout, gamut chip and well edits start from the host's complete color
2026-11-29 20:25:11 +07:00
BFlat abb4ad8cc9 Merge pull request #4251 from dotCooCoo/fix/automation-readonly-field-edits
shortcuts: automation cannot press, assign or remove a shortcut where the user cannot edit one
2026-11-29 20:25:06 +07:00
BFlat bec8baa0d3 Merge pull request #4239 from dotCooCoo/fix/paragraph-controls-measure-host-rows
text: the Paragraph controls' host rows count in their measured height
2026-11-29 20:25:00 +07:00
BFlat fa4d56bb89 Merge pull request #4240 from dotCooCoo/fix/line-label-centers-on-control
ui-contract: a Line field's label sits on its control's line inside a row
2026-11-29 20:24:54 +07:00
BFlat e18f4d8819 Merge pull request #4242 from dotCooCoo/fix/palette-pinned-top
ui-patterns: the command palette keeps its top and field in place as the query changes its rows
2026-11-29 20:24:48 +07:00
BFlat 8e6ba308e7 Merge pull request #4247 from dotCooCoo/fix/combo-box-least-width
ui: a combo box narrows below its widest option, as a text field does
2026-11-29 20:24:43 +07:00
BFlat b48026cb3e Merge pull request #4261 from dotCooCoo/fix/properties-dialog-measuring-tab
form_dialogs: a properties dialog keeps its bound tab when the body does not run
2026-11-29 20:24:37 +07:00
David Mann 955c64f119 Merge pull request #4263 from davidmann4/shortcuts-undo-toggle
menu: Keyboard Shortcuts dialog can offer one Undo button that steps the last change
2026-11-29 14:12:12 +01:00
David Mann f4ebe19d64 Merge pull request #4264 from davidmann4/fix/new-doc-advanced-options-14035
New Document: Advanced Options holds Color Profile and Pixel Aspect Ratio; the depth reads 32 bit (photocraft#14035)
2026-11-29 14:10:52 +01:00
David MannandClaude Opus 5.5 cb477ef88e New Document test: unfold Advanced Options past the double-click time, with the header found again
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:25:50 +01:00
David Mann 0526210afd menu: the undo toggle tests compare with the keys as stored, not as Windows shows them 2026-11-29 13:14:24 +01:00
David MannandClaude Opus 5.5 8d09ceca38 New Document test: fold Advanced Options without motion, so the check runs after the fold ends
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:00:39 +01:00
David Mann 5dab5d4317 menu: a queued undo key no longer allowed is dropped, and the toggling button acts only as it reads 2026-11-29 12:51:26 +01:00
David Mann 0990990739 menu: the undo keys re-check after each step, so a second step in a frame cannot reach past the last change 2026-11-29 12:43:53 +01:00
David MannandClaude Opus 5.5 a959117beb New Document: Advanced Options holds Color Profile and Pixel Aspect Ratio; the depth reads 32 bit
The details pane puts Color Profile and Pixel Aspect Ratio in an Advanced Options disclosure under
Background Contents, open by default; folding it keeps their values. The float depth entry reads
"32 bit" (storytold/photocraft#14035).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 12:36:19 +01:00
David Mann ff93186c9f menu: Keyboard Shortcuts dialog can offer one Undo button that steps the last change
Options::undo = UndoButtons::Toggle puts one button in the footer in place of
Undo and Redo: it undoes the last change and turns into Redo, which applies it
again and turns back into Undo. Starting to record a shortcut disables it until
the next change, so it never reaches past the change before. The undo and redo
keys follow the button. The default (History) is unchanged.
2026-11-29 12:36:15 +01:00
dotCooCoo 3709b7690b form_dialogs: a properties dialog keeps its bound tab when the body does not run
PropertiesDialog wrote the shown tab back to its `tab` binding after
every pass, starting from tab 0. A pass in which the body did not run
(a measuring run that ends before the body, or a closed dialog) wrote
0 back, so a dialog bound to its second tab showed the first one after
its first frame. The tab is now written back, and Reset Panel applied,
only when the body ran.
2026-11-29 02:57:22 -08:00