Commit Graph
7178 Commits
Author SHA1 Message Date
aiongg 0f8a553365 Merge pull request #2796 from aiongg/rework-d1
Dialogs and prompts: Curves fields, Levels midtone, Windows prompt order, preset cards
2026-11-21 12:42:10 -05:00
David Mann 77c7c62345 Merge pull request #2860 from davidmann4/crop-grown-backdrop
RasterDisplay: a region fill past the document for Crop's grown-canvas preview (photocraft#16185)
2026-11-21 17:27:44 +01:00
David Mann 8fbff30223 Merge pull request #2830 from davidmann4/fix/2812-panels-read-mods
Panels and widgets read the modifiers, not the pointer frame
2026-11-21 17:27:30 +01:00
David Mann 2dd38baf49 RasterDisplay: a region fill past the document, under the picture (photocraft#16185)
Crop's preview of a crop that grows a Background shows the area it adds in the
background colour, as the commit fills it, instead of the checkerboard.
2026-11-21 15:46:10 +01:00
David MannandClaude Opus 5.5 806fe5b278 Preset browser trial follows #2756: a pointer move beside it replays it
#2756 made the browser read its rows from a PresetSource and read the
pointer and the modifiers only for its rows' events, so the browser part
of this branch is next's now. The trial builds its rows from a source
and checks the pointer move only: at rest the browser reads no
modifiers. Its tile view still fails without the tile grid change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:15:56 +01:00
David Mann 4cb54cc1dd Merge remote-tracking branch 'origin/next' into fix/2812-panels-read-mods
# Conflicts:
#	crates/ui-patterns/src/patterns/presets/browser.rs
2026-11-21 15:07:50 +01:00
aiongg 7d8b961515 Merge pull request #2756 from aiongg/frame-t3
Model-view-update: overlays and focused views replay; preset lists and menu facts as tracked inputs
2026-11-21 09:05:14 -05:00
David Mann 53d9f8028c Merge pull request #2838 from davidmann4/fix/home-rail-look-before-port
Home layout: the rail's look from before the PhotoCraft port (photocraft#15476)
2026-11-21 15:01:40 +01:00
David MannandClaude Opus 5.5 3b572a3954 Every panel and widget reads the modifiers, not the pointer frame (#2812)
The same read as in the Layers and Channels panels: pointer::frame(..).mods
notes the pointer as a tracked input, so a memoized view holding the
component ran on every pointer move in the window. pointer::mods returns
the same modifiers and notes only the modifiers. Fifteen more sites read
the frame for its modifiers only (the preset browser, the tile grid, the
section footer, the dock's drop, the canvas guides, the crop tool, the
bins, Color Range, the raw develop dialog, the table conditions, the form dialogs,
Save for Web) and the text style panel; each reads pointer::mods now.

The preset browser also reads the pointer's buttons, press and release
for its rows' events; it reads the frame only when there are events, so
a pass without one does not depend on the pointer.

In PhotoCraft this left Swatches, Gradients, Patterns, Styles, Shapes,
Tool Presets, Character and Paragraph Styles, Brushes and Glyphs running
on every pointer move over the canvas; with the change every docked
panel replays.

Trial: the preset browser in a host view replays on a pointer move
beside it, in its list view (fails without the browser change) and its
tile view (fails without the tile grid change), and Alt held runs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:01:27 +01:00
David Mann 687aad26e9 Merge pull request #2810 from davidmann4/fix/photocraft-16113-memo-row-line
A memoized view in a row sits on the row's line (photocraft#16113)
2026-11-21 13:55:54 +01:00
David MannandClaude Opus 5.5 ec5bcc602d Layers and Channels panels read the modifiers, not the pointer frame (#2812)
Both panels read pointer::frame(..).mods on every pass: the Layers
panel for its rows' held modifiers and its drop test, the Channels
panel before it takes its commands. pointer::frame notes the pointer
as a tracked input, so a memoized view holding either panel ran on
every pointer move in the window. pointer::mods reads the same
modifiers and notes only the modifiers.

Trials: a pointer move beside each panel replays its host view and Alt
held runs it; both fail without the change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 12:28:28 +01:00
David Mann 02be56cfbb A memoized view in a row sits on the row's line
A memoized view's content starts a layout room of its own (Env::start_room), so the view sat at the top of the
unwrapped Row around it while every other one-line child sits with its centre on the row's line. Since craft-menu's
bar became a memoized view, PhotoCraft's menu titles sat about 4 pt above the icon beside them (photocraft#16113).

The view's room now moves down by the whole pixels that put the centre of its extent (this pass's measuring run, else
its last run) on the row's line. The room keeps its size, so a kept run replays moved with it; a view taller than the
line reaches stays at the row's top, as place_in_cell keeps a child of more than one line.
2026-11-21 12:04:22 +01:00
David MannandClaude Opus 5.5 efb06e9951 Home layout: the rail's look from before the PhotoCraft port
The desktop Home layout (`StartScreen::home_layout`) drew its rail with the
dialog button look and inline links: pill New and Open, Home as a filled pill,
Learn and the community links underlined in the link colour, and the page
title as a Display heading. The rail is back to how PhotoCraft drew it before
it moved onto the framework (photocraft#15449):

- New and Open at the control radius.
- Every link a full-width row with its icon: muted at rest, normal under the
  pointer; a URL row opens its URL (its tooltip), a command row fires it.
- The selected row (Home) keeps normal ink and has an accent bar at its
  leading edge.
- The page title as a Heading.

Only the Home layout changes; the other start-screen layouts keep their links.

Part of photocraft#15476

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 11:54:42 +01:00
David Mann fb8aae1df6 WIP: memoized view in a row sits on the row's line (photocraft#16113) 2026-11-21 11:43:38 +01:00
2946b2041a Icons on a Brand or Scrim surface paint their accent parts in their own ink; containers pass that ink down (#2569)
* #7149 item 4: an icon on a strong fill paints its accent parts in its own ink

A container that paints a Brand or Scrim surface now passes the strong-fill ink to what it holds, and Draw::icon paints an app icon accent layer in the icon colour when the ink is OnDark.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* design exceptions: the icon trial has a third fixed-tint site

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ui-contract: every filled surface sets its own container ink

A panel nested in a brand or scrim container no longer inherits the strong-fill ink. A frame or a surfaceless container keeps the ink it sits in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* buttons trials: import ShowContainer for the nested Stack trials

next dropped ShowContainer from the shared import line, so the merged
tree failed to compile (E0599 on Stack::show in accent_icon_tints_in).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-21 10:08:46 +00:00
David Mann fc1628e201 Merge pull request #2729 from davidmann4/fix/crop-resize-past-canvas
Crop: an edge or corner drag may take a document crop past the canvas
2026-11-21 10:43:15 +01:00
aiongg 4b5b1b8893 Regenerate docs/contract-api.md 2026-11-21 08:58:37 +00:00
aiongg f4501c6edf New Document card trial measures the row against the left column's end 2026-11-21 08:55:26 +00:00
aiongg c2e74ed124 Levels fields take their width from NumberField's own measure 2026-11-21 08:47:10 +00:00
aiongg 39ab010b9b Regenerate docs/contract-api.md 2026-11-21 08:40:32 +00:00
aiongg 074e0cc8f0 Windows puts a destructive proceed with the committing buttons, before Cancel
Delete and Replace commit, so Windows orders them after the accepting button and before the closing answers and
Cancel; macOS and Linux keep their order. The column footer doc names Alternate's place.
2026-11-21 08:39:47 +00:00
aiongg 2ceaf2410a The hosted Curves trial reads the selected point in Input and Output and moves it from Input 2026-11-21 08:39:46 +00:00
aiongg 04a5a30436 Only pictures whose height follows their width are held, at their placed width
A band picture (a plot, a strip, the vectorscope, the navigator and reading previews) keeps its height whatever its
width, so a second sweep of its column changed nothing. Pictures whose height follows from their width state it
through MeasureCx::picture_size (the Curves graph, the colour wheel and disc, an image preview at its aspect);
picture_width stays the band picture's width and holds nothing. The held picture reports its placed width, padding
included, as a held fill-width child does, so a padded picture that is the column's widest child does not sweep again.
2026-11-21 08:39:46 +00:00
aiongg ef10de8220 Regenerate docs/contract-api.md 2026-11-21 08:16:09 +00:00
aiongg 51f3a7f193 The New Document preset grid fills its column and sets its cards' text for presets 2026-11-21 08:16:09 +00:00
aiongg 9db1302b5e TileGrid cards set their name and detail by CardText: centred regular for presets, start-aligned strong for files 2026-11-21 08:16:09 +00:00
aiongg 0afbb57410 A dialog answer that closes the question has its own role, so Windows orders Yes, No, Cancel 2026-11-21 08:02:56 +00:00
aiongg 7fb78caf54 Levels fields size from the number field's own value width 2026-11-21 08:02:56 +00:00
aiongg 3a8c030cc4 Pictures sized from their least are held children of a content column
A picture (`MeasureCx::picture_width`) in a content-sized Stack column takes its least in the column's measuring run,
which offers no room, and shows across the width the column settles on. A square picture was then taller in the real
run than its column had measured it, and everything under it was pushed past the column's end: the Curves dialog lost
its tone bar, the Input/Output fields and the hint (photocraft#15543).

Such a picture now reports itself held in the column's first sweep, in the same held record fill-width children use,
with its kind (`HeldKind::Picture`). The column sweeps again at its settled width, where the picture is offered that
width as room, so it measures at the width it shows. This covers the colour wheel and disc too.

Trials: the hosted Curves dialog shows the graph with its tone bar, Input, Output and the hint inside the dialog; a
square picture in a content column pushes what follows below its shown size; a column sweeps again only for a
picture narrower than it.
2026-11-21 07:49:27 +00:00
aiongg 4052526240 Merge pull request #2785 from aiongg/layers-id-hash-doc
craft-layers: LayerTree::Id's Hash tells distinct ids apart
2026-11-21 02:05:36 -05:00
aiongg 1443ed8dd8 Merge pull request #2767 from aiongg/memo-lint-state
No hidden state in UI crates: the lint's last entries (#2336)
2026-11-21 02:05:12 -05:00
aiongg 45ad4f55d7 FloatingGroup::scale is a declared prop (display scale, pixels per point) 2026-11-21 06:46:13 +00:00
aiongg 5f11477f6d craft-layers: LayerTree::Id's Hash tells distinct ids apart 2026-11-21 06:24:14 +00:00
aiongg e3773a63eb Merge remote-tracking branch 'upstream/next' into frame-t3-fix
# Conflicts:
#	crates/color-ui/src/ui/panel.rs
2026-11-21 06:21:06 +00:00
aiongg 643bac8228 Merge pull request #2770 from aiongg/rework-windows
Windows and dock: palette state, minimized windows, drag at the pointer, palette popups
2026-11-21 00:52:33 -05:00
aiongg 76580a0f6c Merge pull request #2758 from aiongg/rework-dialogs
Dialogs and fields: Image Size, Canvas Size, New Document, resample order
2026-11-21 00:52:20 -05:00
aiongg cf1f0c41f6 Merge pull request #2774 from aiongg/layers-id-plain
craft-layers: tree ids are plain data, keyed by their Hash
2026-11-21 00:51:53 -05:00
aiongg 1c6eb5e52a ui-contract: the replay audit prints both sides of a shape difference
egui's display names a shape by its rects only, which looked equal when
the fill differed.
2026-11-21 05:50:51 +00:00
aiongg 28d9be1f75 ui-contract: the replay audit compares journal entries as a replay calls them
A replay calls its journal entries unshifted when the shift leaves every
record as it is (a pinned record, one that shows an overlay), as egui's
records do. The audit shifted them anyway, and RecordShift::clip cut the
clip of a menu layer's rows to the clip around the view (TabRow with its
menu open). Entry::at holds the rule for the replay and the audit.
2026-11-21 05:50:51 +00:00
aiongg 6392a66312 ui-contract: a memoized view replays only at the opacity it ran at
A view inside a layer that fades in or out ran at one opacity and its
record holds the faded colours; a replay at another opacity painted them
stale (presets picker list after a pick closes the popover). The opacity
is part of the view's place, as the layer and layout are.
2026-11-21 05:50:51 +00:00
aiongg 71b91c7d66 Merge pull request #2762 from aiongg/panel-states-memo
Panel states as memo props: Color, Actions and scope panels (#2336)
2026-11-21 00:39:04 -05:00
aiongg 683fe06031 craft-layers: tree ids are plain data, keyed by their Hash 2026-11-21 04:33:02 +00:00
aiongg cdab24a5fc Brush stories: the footprint note holds its serials and mask together 2026-11-21 04:31:24 +00:00
aiongg 4a063b6083 Serials::mint: the method is not an iterator's next 2026-11-21 04:26:33 +00:00
aiongg c29f9208b4 Minimized column height: then_some (clippy unnecessary_lazy_evaluations) 2026-11-21 04:19:11 +00:00
aiongg 52b875b623 api-map: MenuBarUi::english is a removal; the note names the model's english fields 2026-11-21 04:08:45 +00:00
aiongg c877a0bbe3 craft: the facade's tracked-serde feature, from craft-tracked's optional serde 2026-11-21 04:08:45 +00:00
aiongg 29ce80c9a5 Motion: a tween's last step keeps the run from replay without asking for another frame
A tween that moves in a pass leaves its slot in another state than the run found it in, so a record of the run is not
replayed; only a tween still running asks for a repaint. The last step of a modal's nudge asked for one more frame, so
the dialog nudge trial saw a repaint after the nudge came to rest.
2026-11-21 04:08:45 +00:00
aiongg 1f07fbe259 No hidden state in UI crates: the lint's last entries (#2336)
Texture identities come from an owner-held Serials; the font picker's family data is a derived value keyed by the catalog generation; face file sizes are read at scan; the LUT scan lives in craft-cms and its rescan reads the stepped clock.
2026-11-21 04:02:10 +00:00
aiongg 161d2c0a42 Merge storytold next into rework-windows 2026-11-21 03:59:28 +00:00