printing_disabled() ignores an empty PHOTOCRAFT_NO_PRINT, so the docs'
"anything but 0" was wrong for the empty value.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Swatches keep their texture key and the pattern or shape they draw from, and ask the texture store when they paint:
a swatch kept past an eviction (Fill holds its swatches from when it opened) loads its picture again, and building a
browser's swatches loads no texture, only shown rows do.
- A pattern swatch is keyed by its pixel generation, so a pattern replaced under the same id draws anew.
- The preset views share held patterns and one held style library while the library and the presets are unchanged,
so the Styles source keeps its memo key between passes.
- A style's thumbnail key covers its effect values and the patterns' pixels.
- patterns::sync leaves groups already in line with the library unwritten, so an open Patterns panel no longer moves
the presets' revision (and the menu model) in every pass.
The canvas showed the scroll bars and the rotation compass before the tool
controls. A control shown later is above the earlier ones, and the Crop frame
declares parts over the whole canvas (the turn area outside the frame, and the
default frame itself), so it took every press on the bars. Show the bars and the
compass after the tool controls, before the contextual task bars.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
main's craft-libs pin carries storytold/craft-libs#2282, so the two reach
tests no longer need #[ignore]; they pass on the merged tree.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main's #14465 filled the dialog's interpolation from the preference and
kept it out of the remembered values. This PR removes the dialog's
Interpolation row, so the dialog now sends no interpolation at all and
the command reads Preferences > General > Image Interpolation itself
(the engine's rotate_canvas_interpolation_pref_tests). The default and
the not-remembered flag for the row are gone, and #14465's dialog test
now checks that no interpolation is filed before or after an OK.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
main carries storytold/craft-libs#2285 in its craft-libs pin and maps
PathEdit::PullAnchor in direct_select/edits.rs, so the four drag tests no
longer need #[ignore]; they pass on the merged tree.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
One memoized view around the whole status bar made the bar a child of the status slot's row: since craft-libs
02be56cfbb a memoized view in a row moves down onto the row's line, so the bar was shifted about 5 px and its
readout was clipped at the window's bottom edge. The bar now stays the slot's direct child, as on main, and its
body (readout, message) and trailing group (render path, redraw, job) are a memoized view each, as the options
bar's lead is.
Brings in storytold/craft-libs#2758 (New Document: Background Contents
before the advanced fields, the save-preset icon on the Name row, section
captions), #2762, #2767, #2770, #2729, #2785 and #2569.
previews, stroke trails and Object Finder hover masks now take a Serials.
The app holds one (texture_serials) for all of them, since a preview of one
name is made in several places (a transform begins in one, re-renders in
another). The Object Finder job sends the region only; its mask is made on
the UI thread, as a cache hit's already is.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Discord and GitHub shared a globe icon since the framework move; they get the
speech bubble and the chain link back. The recent cards grew to fill the row
(about 390 points at a desktop width); they keep one size again, about 230
points, as many to a row as fit.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Applying Lens Blur to a Smart Object already refuses an alpha channel as
the depth map: a smart filter re-renders from its params alone, without
the document's channels (#7400). layer.smartFilter.setParams did not, so
since the Lens Blur dialog sends a chosen channel as `depthMap: "channel"`
(#15883), OK in a Smart Filter's Lens Blur dialog could record a source
the re-render cannot read. setParams now refuses it with the same message,
merged or replaced, and the filter and history stay as they were.
Follow-up to the review of integration batch #16092.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
app.open is requested by a path relative to the automation read root. It went
into Open Recent as is, where it names nothing: Home drew a blank card and
clicking it failed. The workspace now reports the file's location below the
root that holds it, and app.open (also the directory .pcraft path) lists that.
The document's save-back path stays root-relative; without a location the open
is not listed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lens Blur's Depth Map Source names an alpha channel by its index in the
document the dialog opened on. With #15883 that index now reaches the
command, so when the control channel makes another document active under
the open dialog (`ui.window.open`), preview and OK would blur by the other
document's channel at the same index. The dialog now captures its document
at open, like Match Color captures its destination, and preview and the
held OK refuse a channel source on another document. Back on the first
document, OK applies it. A Smart Filter edit keeps its own target check.
Found by review on the integration batch.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
craft-libs next's hayro resolves degenerate subpaths before stroking
(ISO 32000-2 8.5.3.2: only round caps paint them), so for butt caps the
zero-length subpath no longer reaches the importer and the page stays
editable. The test now checks that: no warning, one shape with only the
visible line, its dashes kept. The guard in push_shape stays for paths
that still carry such a subpath.
next now has storytold/craft-libs#2550 (the default agent folder and the
agent_folders answer), #2612 (snap targets reach past their spans), #2631
(scroll bar arrows take no keyboard focus) and #2634 (Enter in the hex
field confirms).
- next vendors vello_common and vello_cpu for hayro; the patch section
follows it.
- craft_pdf::raster::Options gained max_coverage; the PDF importer keeps
craft-pdf's default (None).
- storytold/craft-libs#2363 gates a component's story-suite registration
on its crate's own `suite` feature and emits it ungated without one,
which needs craft's test kit in every build. ui-egui declares `suite`
(off): PhotoCraft runs no craft story suite.
With document_chrome the accessible scroll bar is the track, one step
arrow (the bar's thickness) below the view's top. The two chrome settle
trials measure replaying that the memoized title bar and dock groups only
do once PhotoCraft's state is tracked (#15709).
craft-libs next merged storytold/craft-libs#2533: memoized views replace
the settling regions. The app follows it:
- the shell slots, the dock chrome, the panels and the tool rail no
longer take content versions (the framework memoizes them), so the
region versions and their trial go, with the keys that only fed them;
- Tool is MemoProps, as the tool rail's props;
- the menu bar's English-name hook is a capture-free function, reading
the names the bar's model published;
- request_own_repaint is request_repaint;
- the drag trials count replayed memoized views.
Snap targets reach past their spans (reach_past_spans), as layer edges do
in the reference application; this needs storytold/craft-libs#2612.
- Home screen: the rail's navigation (Home selected, Learn), the
community links as its footer and the PhotoCraft title (home_layout).
- Document scroll bars: document_chrome (wider bars, arrows, corner).
- Save for Web: a typed width and height reach the export, replacing
the percent; the ignored-slices notice shows, translatable.
- Stroke's Width declares px; New Layer's Opacity shares the Mode row.
Each with a test that fails without the change.
Moves every craft-libs dependency to storytold/craft-libs next 62189858a
and egui to the fork rev that next pins (6525c879). This brings
craft-libs#2424 (Home screen rail and empty-state card) and the Home
screen spacing fix.
Call sites follow the new craft-libs API: Picked gained Failed and
Downloaded (a failed save keeps its message, a browser download counts
as nothing chosen, as the app writes its own saves), SettingsDocument's
apply is the PreferencesDraft trait method, and the control channel's
document map takes the page index (one page per document).
Same fix as craft-libs#2557 for the window side: with a flag or the
person's own folder covering every direction, the default was created
and never used.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With Preferences > AI Integrations' folders empty, agents had no file
access, and the launcher starts `mcp` with no root flags.
- An empty folder setting named by no flag uses the shared default agent
folder Documents/ArtCraft/Agents/PhotoCraft (craft-libs#2550), in the
open window (agent link, --control) and in the live headless session.
- agent_folders tells the agent which folders it may use: the headless
session's roots, or the open window's saved folders with the default.
- Pin craft-libs to bafb452 + the craft-libs#2550 commit until it reaches
next.
Co-Authored-By: Claude Opus 5.5 <[email protected]>