Blend Text Colors Using Gamma was a 1.0 to 2.2 slider where 1.0 meant off, so turning it off and on lost a custom value. ColorSettings now keeps the field's value (blend_text_gamma, 1.00 to 3.00, two decimals) and the box (blend_text_gamma_on) apart; text_gamma() is what the compositor blends in (1 while the box is off), and the compositor takes up to 3.00. edit.colorSettings still takes a bool for blendTextGamma (the box alone) or a number in range (the value, and the box checked), plus blendTextGammaOn. The dialog shows the checkbox with the field beside it: typing a value checks the box, focusing does not, an out-of-range value alerts "A number between 1.00 and 3.00 is required. Closest value inserted." and an emptied field puts its value back. Settings saved as one number still load: 1 as the box off with 1.45, any other value as the box on with that value (#14243).
A Burn press on a hidden layer, a layer with Lock All or Lock Image Pixels, or a group
only said why in the status bar (or with a shared group text). The reference application
opens a modal alert with OK for each and changes nothing.
Adds the Burn tool to brush_refusal's tool_name table and counts Lock Image Pixels as
locked for it. Lock position still burns.
The question Edit > Assign Profile asks on a document with layers now
shows the framework prompt's warning icon beside its text. The other
questions keep their look.
Fixes#16683
Layer > New showed both entries, one of them greyed. The menu rows now keep
"Layer from Background..." while the document has a Background (or none is
open) and "Background from Layer" while it has none, in the same slot. The
menu bar, Help search and ui.menu.list all read these rows; the Keyboard
Shortcuts dialog keeps both commands so either can take a shortcut.
Fixes#16761
craft-libs 5c30761a (next, with craft-libs#3599): a settings change
(agents off and on, another port) reads the agent token file again
instead of reusing a token from an earlier failed start.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
#17012 added setup_window's fourth argument; this test, merged separately, still
passed three, so the ui-egui library tests did not compile on main.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Moves every craft-libs rev to the tip of next, which carries
storytold/craft-libs#3581 (PreferencesLayout::Classic), and the egui patch to the
rev craft::egui_fork::REV names there (b9770908e0).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Measured in the reference application with two boards, a hidden board and a
loose layer: a click applies the box only outside the bounding box of the
visible boards. Inside it the box stays open, also in the gap between two
boards and on a loose layer's pixels there; a hidden board does not count.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Type options bar swatch is the "Text color" colour well now; the demo
still asked for "Set the text color" and panicked before its first image.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Move craft-libs to the newest `next` (83a63bca, with craft-libs#3579)
and egui to the revision `next` pins (b9770908).
craft-libs#3579: the agent link no longer retries a refused token file
every 5 s from the UI thread (each try started whoami and PowerShell,
~300 ms), replaces a token file an older PhotoCraft wrote without
restricting it on Windows, and reuses the checked token when it retries
a taken port.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The window takes craft's classic preferences layout: the page list in a frame, no page
heading, titled groups as group boxes, and OK, Cancel, Prev and Next in a column at the
right, at the reference size. There is no Apply button any more; agents still apply
without closing through the control channel (`apply_window`), and the two tests that
clicked Apply now apply that way or press OK. A new test steps through the pages with
Prev and Next and checks they wrap.
Needs the craft-libs pin to include storytold/craft-libs#3581.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The reference application's Color Picker has no eyedropper button; it samples
by a click on the canvas while the dialog is open, which PhotoCraft already
does. Build every full Color Picker dialog with eyedropper(false): the shared
launcher, the Layer Style picker and the text style picker (the last two never
served the button's press). Remove the dialog's unused screen-pick wiring,
update docs/color-picker.md and the color_picker_demo example. Compact
popovers keep their own screen eyedropper.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The full-resolution develop of the visible area was started but never
collected outside tests since the move to the craft UI framework, so the
preview stayed the up-scaled proxy. The source now wants the develop by
its order (unchanged settings keep it), the after picture collects it each
pass, and a reduced read averages texel blocks so Fit is served too.
PhotoCraft also gave the framework no window placement store, so the
RAW Develop window's remembered size and place saved nowhere. The runtime
install now keeps them in window.json in the settings folder.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
`Surface::channels` already answers in usize, so casting it again is a
warning; the two rectangle widths are the values that need the step to
usize for a byte count.
The Smart Object case newly reaches paths that were refused before, and
the ticket leaves several of them unmeasured, so each is pinned to the
rule the rest of the tool already follows instead of left to be read out
of the code:
- Sample all layers over a Smart Object with a differently coloured layer
beneath it: a layer is added either way, and only the option reads the
composite, which the colour of the layer below shows in the fill.
- A linked Smart Object: the same path, and it stays linked.
- The "layer" parameter decides the path, not the active layer, in both
directions.
- The next press after a removal belongs to the now-active edits layer
and adds no second layer.
- A hidden Smart Object is refused before the rasterize question is
reached: no prompt, no collected stroke, no layer, no history state.
- The card's Don't show again button is clicked, its dismiss key is read
back from the preferences, and a later removal brings no card.
Two of these setups were wrong in the first run of this file: the
pixel-layer case used a Smart Object document, and the card button was
looked up by the wrong accessible name. Both are corrected here.
The notice about the new layer above a Smart Object was posted from the
result of the run call. On this desktop `paint.remove` runs as a
background job, so that call returns only the job number: the card never
appeared where users would see it, and only the inline path (the web
build, and the shell's own tests) ever showed it.
The removal now says in its own result when it wrote to a new layer above
a Smart Object (`smartObject`), and the interface reads that marker on
both paths: straight after an inline run, and in the job-end handler when
the job lands. A cancelled or failed removal has no such result and stays
quiet, and a plain Create new layer removal carries no marker, so nothing
else starts noticing.
Fixes#12555
In an artboard document the canvas outside the boards is pasteboard, also
within the document's canvas size: a click there applies an open Free
Transform box, as in the reference application. A click on a board (layer
pixels or an empty spot) still keeps the box open.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The menu titles sit on the title bar's move band, whose default open hand
shows as Windows' four-way Move cursor and outranks a hover request. Set
MoveBandCursor::Arrow at the root instead, revert the menu bar's hover
request, and replace the tests that ran without a title bar with one that
builds the app with its own title bar and fails without the fix.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Move tool, and its Ctrl stand-in for painting tools, now shows the
arrow with the framework's four-way cross below right of it, hotspot on
the arrow tip, over the canvas, the pasteboard and locked pixels. It stays
the plain arrow inside a selection, and inside the transform box while
Auto-Select and Show Transform Controls are both on. A drag keeps the
plain arrow and Alt's duplicate the copy arrow, as before.
The Remove tool is a pixel tool, so a press on a Smart Object layer opened
the rasterize prompt and nothing was removed until the layer was rasterized.
The reference application instead keeps the smart object intact: the fill
goes to a normal pixel layer named "Remove tool edits" directly above it,
even with Create new layer off, and the first such removal says so.
intercept lets the Remove tool's Smart Object press through to the tool;
the type, shape and fill prompts are unchanged. paint.remove treats a
Smart Object target as the new-layer case whatever "newLayer" says: the
hole is filled from the smart object's rendered pixels, read through
read_target_surface after the same pixel-lock check the painted case
makes, and the fill lands above it. Its precondition now admits a Smart
Object with pixels to sample. The options bar sends newLayer for that
target as well, so the params say what will happen, and after such a
removal the app posts the notice with its dismiss key, so the card offers
Do not show again and later removals stay quiet.
A second removal of the same smart object, Sample All Layers over one, and
the notice after it was closed are not measured in the reference: they
keep the new-layer path's behaviour, pinned by tests.
Fixes#12555
A file's pattern keeps the id the file carries, so the key cannot be argued apart from a
pattern id by shape: what the position in the folder list buys is a key per folder, so
two folders of one name keep their chevrons apart, and a pattern id would have to be
spelled like `folder/0/Name` to be mistaken for a folder key.