Commit Graph
7182 Commits
Author SHA1 Message Date
aiongg f016e24751 Merge storytold/next into rework-d2
Brings in craft-libs#2756 (frame-t3), #2810 (a memoized view in a row sits on the row's line) and #2838 (home rail look).

- egui pin and Cargo.lock: rework-d2's egui rev, which contains #2756's; frame-t3's serde line for craft-tracked.
- menu bar: EnglishFn goes with frame-t3's removal of english; rework-d2's docs stay.
- Env::start_view_room: keeps both column flags, then Shrink::Fit when the view fits.
- lazy::Place: both opacity and fits.
- Lazy::run_keyed: a memoized view's room is the row's cap when the row narrows it, else the flow region, and then moves down onto the row's line (on_row_line); the cap is horizontal and the move vertical, and the move keeps the room's size, so a kept run replays moved with it.
2026-11-21 14:23:08 +00: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 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
aiongg 282d45bb28 Help gives the help line's Text, which its callers show 2026-11-21 11:19:46 +00: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
aiongg 6c72055339 A memoized row unit's room follows the row, not its own content; a call's key is its own
A memoized view the row does not narrow shows as in no room, in the row's flow region, and its content sizes from its
content along x; only a row that narrows it cuts its room to the width it gives. The cap of a view the row did not
narrow was its own counted width, so new content changed the view's room and the discard pass ran it again. The
shrink record carries whether the row narrowed the unit.

The replay decision of a pass covers the kept run; each call compares its own key. A row's counting sweep calls the
view with another key (its content shows unbounded): that call no longer decides the pass against the real call
after it, and a sizing call takes the extent the last sizing run measured for its own key.
2026-11-21 10:42:23 +00:00
aiongg 2ef7bbff38 A field labelled above sits on a row's line by its control, as a control labelled above does
A container labelled above its body reports its body's first control line as the line it sits on in a row, so a
button beside a field labelled above sits level with the field's control, not its label.
2026-11-21 10:33:46 +00:00
aiongg b62b64af52 FloatingGroup::scale is a declared prop (display scale, pixels per point) 2026-11-21 10:20:12 +00:00
aiongg 9bb77ccba4 Preferences docs name host-labelled rows; trials for their search and for a palette's context menu popup 2026-11-21 10:18:40 +00:00
aiongg 69ed953094 Preferences: host-labelled rows show their rule's help and follow its enabled state 2026-11-21 10:18:40 +00:00
aiongg 8983476f09 Memo trial: a view in a shrinking row runs at most once per measuring sweep of the row 2026-11-21 10:18:40 +00:00
aiongg 75e8e49ef5 Overlay placement: only a menu's layer covers its anchor 2026-11-21 10:18:40 +00:00
aiongg 688df999d5 Layout: a labelled control's row takes its place in flow through place_in_cell, its control on the line 2026-11-21 10:18:40 +00:00
aiongg 8db22341b4 A memoized view in a Stack fits its content to its room, as in a shrinking row; the menu bar folds in any Stack 2026-11-21 10:18:40 +00: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 bb2e565a2e Merge rework-d2d: Info panel, host-labelled rows, page label column, egui text band width 2026-11-21 09:23:35 +00:00
aiongg df6c100b78 Repin egui to storytold/egui next 72cb386ac: a word laid out in room equal to its width keeps its width
egui's galley cache rounded a finite wrap width to whole points and then
clamped the reported width to it, so "200" (22.47 pt) laid out at 22.47 came
back 22.0 and an Info readout row stacked under its label. The fork rounds to
GUI_ROUNDING instead.

The repin also brings next's two commits ahead of the old pin (AccessKit
parent map reader, replayed widgets as used ids).

Trials: ui-contract text::band (a word in room equal to its width, Wrap and
Elide, at 1x and 2x) and the Info panel trial at G=200, K=44%.
2026-11-21 09:23:14 +00:00
aiongg dfe6c94183 A memoized view is a unit of the shrinking row around it; the menu bar takes its titles' width (photocraft#15533)
A memoized view's content started a layout room of its own that cleared the row's shrink step, so a view in a row
took the row's whole remaining room. The in-window menu bar, a memoized view that filled X, then ate the title bar's
gap and the document title was never drawn.

A memoized view in a shrinking Row is now one of its units, as a body unit is: it reports what its content takes in
no room in the counting sweep and what it takes with every leaf at its least in the least probe, and shows at most
the width the row gave it. That width is the room of its place, so a new width runs the view and an unchanged one
replays; whether the view is a row unit is a fact of its place too. Its content's leaves fit that room.
Env::local_mut clears the cached scope key, so a sweep that edits its scope keys again.

MenuBar no longer fills: it measures every title's width, and the "…" title alone as its least, so a short row
narrows it and the last titles fold into "…".
2026-11-21 09:02:19 +00:00
aiongg c1bf37c69d Preferences: one label column per page across its groups; AppearancePage rows join it 2026-11-21 08:51:55 +00:00
aiongg e576f99df7 Preferences: custom rows whose host draws its own labels (RowKind::CustomRows, SettingRule::custom_rows) 2026-11-21 08:51:15 +00:00
aiongg 9bafed916f Info panel: two aligned halves per block, % after CMYK, rules between blocks 2026-11-21 08:47:14 +00:00
aiongg 03cf32f21b Options bar: icon-only buttons draw at the tool size (photocraft#15536) 2026-11-21 08:05:19 +00:00
aiongg 57a1de2594 cargo fmt: layout exports 2026-11-21 08:03:17 +00:00
aiongg 4e965a7638 NumberCodec writes a value that rounds to zero without a sign (photocraft#15548) 2026-11-21 08:01:10 +00:00
aiongg d2a5ebe4a9 Layout: a labelled control's row and place_in_cell share one centring rule (photocraft#15536) 2026-11-21 08:01:10 +00:00
The Daniel 5bb2886281 Labelled controls sit on the bar's line like other controls
A check box or radio with its label after it was placed at the top of
the room, while every other control is centered on the row's line. In
an options bar shown in a slot shorter than it asks for (36pt where the
bar wants 40), the check box stood at the bar's top edge, 6pt above the
fields beside it. It now sits on the row's line, and a tall room no
longer makes its row taller.
2026-11-21 07:58:25 +00:00
aiongg 7a6827f5bf Overlay placement: a menu hung at a point also covers its anchor (photocraft#15552)
Most context menus hang from Anchor::Point (table header, rulers, ribbon,
places, versions, dock group menu). layer_covers_anchor decides every case in
one place: the pointer, the rect a context request named, and a point for a
layer whose key class is OwnerClass::Menu. Point-anchored layers that are not
menus (the iconic flyout, a popover at a point) keep their rule.

docs/contract-api.md regenerated.
2026-11-21 07:57:24 +00:00
aiongg 2126170565 Overlay placement: a context menu that fits neither side covers its anchor (photocraft#15552)
PlaceRequest gains covers_anchor. Below or above the anchor, an overlay with it
that fits on neither side but fits the bounds keeps the preferred side and its
height and slides over the anchor; only one taller than the bounds is capped.
The overlay host sets it for a layer hanging from the pointer or from the rect
a context request named, so placement's room and the first pass's content room
are the cap within the bounds, and the menu shows every row without scroll
strips. Dropdowns, menu-bar menus and submenus keep their rule.
2026-11-21 07:48:59 +00:00
aiongg fb45d473df Dock workspace: tabs closed together reopen together (photocraft#15545)
When one apply_all batch closes several tabs of a group (Close Tab Group, or a
preset that closes panels one at a time), each closed panel's Location records
the set in closed_with. Reopening any of them restores the set in group order,
each by its own record, with the requested one in front. A tab closed in a
batch of its own stays closed: the set only counts members whose records name
each other.
2026-11-21 07:42:39 +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