Commit Graph
16651 Commits
Author SHA1 Message Date
hnoerenberg cc51cd4de1 fix(history): follow the history when it moves the source record
While a state source is set the history keeps the answer: a source state deleted or discarded leaves no source (#2966), Clear History holds it back until its undo, and an action folding its steps renames the row (#3536). Reading the recorded id first and the history's own row second follows all three, instead of only the two the panel does directly.
2026-11-26 20:41:12 +01:00
hnoerenberg a6b4d29801 fix(history): default History Brush source is the open snapshot (#12845)
The History Brush, Fill > History and the Art History Brush restore from one
per-document source. With none set in the History panel the engine asked the
history for it, and the history answers row 0: the oldest state still held.
Once the history is full row 0 is a recent step, so a click painted that step
instead of the image the document opened with.

The default now resolves to the open snapshot, the first History panel
snapshot (the document as opened, named after it), which the states' trimming
never removes. The engine records its id per document, together with the id of
a state chosen with history.setSource - the history reports row 0 both for a
chosen row 0 and for nothing chosen, and it must not be edited here. Deleting
that snapshot leaves the default empty, as for any deleted source; with
History Options > Automatically Create First Snapshot off the default keeps
today's behaviour, the oldest state held.
2026-11-26 20:26:58 +01:00
David Mann 9d9cce18e3 Merge pull request #17101 from davidmann4/fix/canvas-checker-edge-17099
Canvas: no checkerboard line at the image edge (#17099)
2026-11-26 18:08:17 +01:00
David Mann aabb06ddc0 Merge pull request #10232 from wwewtech/fix/x11-clipboard-image-xclip
fix(clipboard): read xclip image clipboards on X11 (#10231)
2026-11-26 17:42:46 +01:00
David Mann eff5ee712e Merge pull request #17097 from davidmann4/fix/appearance-size-row
Preferences: the Appearance Size row keeps Comfortable (#17096)
2026-11-26 17:28:00 +01:00
David Mann 570c4c6e6b Merge remote-tracking branch 'origin/main' into fix/canvas-checker-edge-17099 2026-11-26 17:24:34 +01:00
David MannandClaude Opus 5.5 c743b5399e Canvas: no checkerboard line at the image edge (#17099)
The GPU picture snaps its origin to whole device pixels so texels stay
crisp, but the canvas draws the checkerboard under it and the edge
around it at the exact, unsnapped place. Where the two differ (an edge
on a half pixel, or the far edge of a width that is not whole pixels)
a 1-pixel line of checkerboard showed along the image, or the picture
reached past the edge.

The texels keep the snapped origin; only the document's outer edge
moves (at most half a pixel) to the exact place, in the vertex stage,
and viewport pages no longer cut that half pixel at the document edge.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 17:24:30 +01:00
David Mann 85e8ff5399 Merge queue batch #17091: #15229, #17051
Merge queue batch: 2 PRs (#15229, #17051)
2026-11-26 17:03:03 +01:00
David MannandClaude Opus 5.5 307761b442 Preferences: the Appearance Size row keeps Comfortable (#17096)
The Appearance page's Size pick was dropped: appearance_row copied back
only the mode and the theme slots, so the row showed Compact again on the
next frame. PhotoCraft also kept no size, sent none to the suite and never
gave the root a density.

Add interface.density (compact/comfortable), drawn by the Appearance page,
kept in step with the suite's shared size like the mode and themes, and
set as the root's density each frame.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 16:49:20 +01:00
David Mann 960510334b WIP: canvas checkerboard line at the image edge (#17099) 2026-11-26 16:43:11 +01:00
David MannandClaude Opus 5.5 f7bf8af519 WIP: Preferences Appearance Size keeps Comfortable (#17096)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 16:24:37 +01:00
David Mann ed906be8e3 Merge #17051 into the merge queue batch
Vertical Type Mask: an idle right-click opens the selection or layer menu (#12091)
2026-11-26 15:43:52 +01:00
David Mann ec55582a0f Merge #15229 into the merge queue batch
Frame tool: a right-click opens the layer picker with Isolate Layers
2026-11-26 15:43:52 +01:00
David Mann 038d035110 Merge queue batch #17085: #16401, #15961, #16961, #17062, #17068
Merge queue batch: 5 PRs (#16401, #15961, #16961, #17062, #17068)
2026-11-26 15:42:56 +01:00
David Mann 67c1dac04a Merge #17068 into the merge queue batch
Assign Profile: the layers question shows a warning icon (#16683)
2026-11-26 14:36:51 +01:00
David Mann a3289d1cd9 Merge #17062 into the merge queue batch
Layer > New: list Layer from Background or Background from Layer, not both (#16761)
2026-11-26 14:36:51 +01:00
David Mann 743d1b6c80 Merge #16961 into the merge queue batch
Package: skip PSD-embedded smart objects
2026-11-26 14:36:50 +01:00
David Mann da14de9dc3 Merge #15961 into the merge queue batch
fix(ui): the Burn tool's refusals are the reference application's alerts (#12672)
2026-11-26 14:36:50 +01:00
David Mann 549f77ed24 Merge #16401 into the merge queue batch
Fill and Stroke: Preserve Transparency greyed off on the Background, greyed on with locked transparency (#14651)
2026-11-26 14:36:49 +01:00
b55a4526b7 Merge origin/main into #15229: port the Frame layer picker to the framework canvas menu
Main moved the canvas layer picker into canvas_tool_menu's MenuKind::Layers and the control
channel's pointer onto the tool host (#15449), so the PR's egui LayerMenu and dispatch.rs edits
no longer apply. Re-applied on main's code: is_gesture answers for the Frame tool, open()
nests a frame's image under its frame for the Frame tool (MenuKind::Layers gains depth and
isolate), entries() indents those rows and ends them with a separator and Isolate Layers, and
choose() runs select.isolateLayers from it. The pasteboard fallback off the image is main's
context_popup already. Tests rewritten on main's helpers.

Co-Authored-By: hectorviov <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 14:25:20 +01:00
David Mann 4a4e3cff33 Merge queue batch #17021: #16972, #17008, #17010
Merge queue batch: 3 PRs (#16972, #17008, #17010)
2026-11-26 13:43:54 +01:00
hnoerenberg 3025430470 fix(canvas): the Vertical Type Mask menu uses the measured rows
The review on #12091 measured this tool's menu with an active selection in the
reference application: no Distort and no Perspective, and Delete and Fill
Selection after the three fill rows - the table #12577, #12866 and #12042 already
measured for the Type, Red Eye and Object Selection tools. `rows` now gives the
Vertical Type Mask tool that table instead of `SELECTION_MENU`; the generic layer
menu for the case without a selection, the other tools' routes and every
enablement rule stay as they were. `SELECTION_MENU` itself is untouched: the
marquee, the wand and the other selection tools keep it.

Tests: `with_a_selection_the_right_click_opens_the_measured_selection_menu` and
`the_selection_menu_is_the_table_the_measured_tools_share` - the rows and the
`ui.inspect` list are `MEASURED_SELECTION_MENU`, row for row the same as the Type
tool's selection menu in the same document, and Distort and Perspective are pinned
as rows of the marquee's menu only. Both run red at 8367ed381e first (2 failed,
6 passed), green with the switch (8 passed).
2026-11-26 13:25:54 +01:00
David Mann dc7b9cabef Merge #17010 into the merge queue batch
Remove tool: a stroke on a Smart Object writes to a new edits layer
2026-11-26 12:37:37 +01:00
David Mann 40f290f5c5 Merge #17008 into the merge queue batch
Move tool: the arrow with a four-way cross (#16819)
2026-11-26 12:37:37 +01:00
David Mann 576cc90f5e Merge #16972 into the merge queue batch
fix(layer-style): the pattern field shows a swatch and its folders
2026-11-26 12:37:37 +01:00
David Mann 5399c579a2 Merge pull request #17016 from davidmann4/fix/prefs-dialog-layout
Preferences window laid out like the reference application (#17014)
2026-11-26 12:34:01 +01:00
x-labb a7cdd13677 fix(ui): the Burn tool's refusals are the reference application's alerts (#12672)
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.
2026-11-26 12:30:38 +01:00
RickiNano 0a518cc46c Assign Profile: the layers question shows a warning icon (#16683)
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
2026-11-26 10:37:40 +01:00
RickiNano d1f43d4472 Merge remote-tracking branch 'origin/main' into s572-16401
# Conflicts:
#	crates/ui-egui/src/dialogs/blend_options.rs
#	crates/ui-egui/src/dialogs/fill_ui.rs
#	crates/ui-egui/src/dialogs/fill_ui/tests.rs
#	crates/ui-egui/src/dialogs/stroke_ui.rs
#	crates/ui-egui/src/dialogs/stroke_ui/tests.rs
2026-11-26 10:23:47 +01:00
RickiNano 2e9222cc3d Layer > New: list Layer from Background or Background from Layer, not both (#16761)
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
2026-11-26 09:22:23 +01:00
skylar taylor-barrick 558043fa1b Nightly: stop blocking a refused launch on macOS (#17046)
Nightly launch fix under Skylar's Exec 454: the Launcher's trailing `--` no longer reaches the file list where that applied, and a refused launch no longer blocks on macOS (the reason goes to stderr and the app exits 2).
2026-11-26 00:47:41 -06:00
skylar taylor-barrick 643a810fa2 Pin the nightly callers to craft-common-actions be00e5cc (#371) (#17033)
Merged under Skylar's explicit Exec 430 override. Moves every nightly pin from craft-common-actions be00e5cc to 8389cad8 (#375), which carries the Windows ctime rule that stops the signer refusing a just-written JSON.
2026-11-26 00:22:23 -06:00
hnoerenberg 8367ed381e feat(canvas): the Vertical Type Mask tool's idle right-click opens a menu
A right-click on the canvas with the Vertical Type Mask tool, while no mask is
being edited, opened nothing: `canvas_tool_menu::applies` did not list that tool,
so once the type layer hit test (which leaves the Type Mask tools out on purpose,
to them existing type is pixels) missed, the router's last step
`applies(tool).then_some(MenuKind::Tool)` had nothing to route to. The reference
application opens the selection menu there, or the generic layer menu when nothing
is selected.

`applies` now takes `Tool::VerticalTypeMask`, and `rows` gives it one branch:
`SELECTION_MENU` while the document has an active selection, `COUNT_MENU` - the
layer menu #12042 added for the Horizontal Type tool - while it has none. No new
row table and no menu-local rule: the rows are the ones those tools show today,
enablement stays `menus::is_enabled` and a row runs through `menus::invoke`, so
which entries are greyed (not measured for this tool) keeps the shared rule. A
running mask edit still reaches its own edit menu first, and off the image the
pasteboard menu still comes first; the Vertical Type and Horizontal Type Mask
tools, not measured, stay on their no-menu path. The right-click itself starts no
mask, changes no layer and journals nothing.

Tests: `crates/ui-egui/src/canvas/canvas_tool_menu/vertical_mask_idle_menu_tests.rs`
(8 tests, the file #12091 names). The one assertion in
`type_off_text_tests::unmeasured_type_tools_keep_opening_nothing` pinned this tool
opening nothing, the behaviour #12091 replaces; it now covers only the two tools
that stay unmeasured.
2026-11-26 07:18:41 +01:00
Ian 49c76cf95d test: verify embedded package payloads 2026-11-25 21:54:19 -05:00
skylar taylor-barrick f0205ae336 Pin the nightly callers to craft-common-actions fc7124a1 (#369, #370) (#17025)
Merged under Skylar's explicit override (Nightly 792) after green CI, CodeRabbit on this head with no open threads, and an independent adversarial review with no blockers.
2026-11-25 20:20:06 -06:00
David MannandClaude Opus 5.5 8108ec8a30 test(i18n): the Preferences preview test checks OK, not the removed Apply button (#17014)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 02:47:17 +01:00
David Mann e2be7f4958 Merge remote-tracking branch 'origin/main' into fix/prefs-dialog-layout 2026-11-26 02:02:06 +01:00
David Mann c5aea7e75e Merge pull request #17028 from davidmann4/fix/17027-setup-window-args
Make the ui-egui library tests compile again (#17027)
2026-11-26 01:59:52 +01:00
David Mann 1d4ea41cea Merge remote-tracking branch 'origin/main' into fix/prefs-dialog-layout
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	crates/engine-core/Cargo.toml
#	crates/ipp/Cargo.toml
2026-11-26 01:55:38 +01:00
David Mann b2debb0617 Merge pull request #17007 from davidmann4/fix/input-stage-stall
Agents: no UI freeze every 5 s from a refused token file (#17006)
2026-11-26 01:54:00 +01:00
David Mann 65fc820f1a Merge pull request #17020 from davidmann4/fix/artboard-transform-click-outside
Free Transform: in artboard documents a click outside the boards applies the box (#17019)
2026-11-26 01:41:29 +01:00
David MannandClaude Opus 5.5 735f15b492 Agents: move craft-libs to next with the token cache fix (#17006)
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]>
2026-11-26 01:39:05 +01:00
David Mann 292e8ce69d Merge remote-tracking branch 'origin/main' into fix/input-stage-stall 2026-11-26 01:35:48 +01:00
David MannandClaude Opus 5.5 0cb83015b3 test(ui): pass the settings folder to setup_window in bar_cursor_tests (#17027)
#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]>
2026-11-26 01:25:31 +01:00
David Mann 57535a8f8d Merge main into fix/prefs-dialog-layout 2026-11-26 01:17:27 +01:00
David MannandClaude Opus 5.5 cd91e8bb6e Pin craft-libs to next e1fcf7e17a (classic Preferences layout)
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]>
2026-11-26 01:17:15 +01:00
David Mann a5f2c31031 Merge pull request #17013 from davidmann4/fix/raw-develop-window
RAW Develop: sharp preview and a remembered window (#17012)
2026-11-26 01:10:46 +01:00
David Mann 6d5223e2a0 Merge pull request #16994 from superplay2021/fix/menu-bar-cursor
Menu bar: show the arrow over menu titles
2026-11-26 01:08:42 +01:00
David Mann fbeed0d238 Merge pull request #17018 from davidmann4/fix/color-picker-no-screen-eyedropper
Color Picker: no screen eyedropper button, as in the reference application (#17017)
2026-11-26 01:01:00 +01:00
David Mann 76b094f033 Merge main into fix/prefs-dialog-layout 2026-11-26 01:00:48 +01:00