Commit Graph
8520 Commits
Author SHA1 Message Date
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 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 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 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 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 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
FredAppsandCodex 531f12d235 Add bounded Sony rtmd timecode prefix parser (#2789)
Co-authored-by: Codex <codex@openai.com>
2026-11-21 14:42:45 +07: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 cfcc72f204 ui-contract: line fill trials use Id::unique 2026-11-21 07:41:14 +00:00
aiongg 4614338402 Merge remote-tracking branch 'upstream/next' into wc-regressions
# Conflicts:
#	crates/ui-contract/src/layout/body.rs
#	crates/ui-contract/src/layout/mod.rs
#	crates/ui-widgets/src/layout_components/mod.rs
2026-11-21 07:32:55 +00:00
aiongg 7bf0a9b6dd The grip of a collapsed icon group is a faint hairline
The grip bar above each icon group of a collapsed column is painted
`stroke.thin` wide in `text.faint`, as the reference's faint grips, and
in `text.normal` under the pointer or while dragged.
2026-11-21 07:16:45 +00:00
aiongg e038a18e0d A native window resized on macOS keeps its top-left corner
AppKit keeps a window's bottom-left corner when its size changes (winit's
`request_inner_size` is `setContentSize`), so every size the app sent moved
the window's top edge by the height it gained or lost: a collapsed dock
palette expanded by its double arrow grew upward, often past the top of the
screen, and the dock then recorded that place as the user's. `act` follows
each `SetInnerSize` on macOS with the top-left corner the caller knows the
window at.

The test kit gains `AppKitWindow`, which runs window commands as AppKit
does; the macOS dock trials use it. New trials: a palette collapsed and
expanded by its double arrow, and a collapsed palette dragged by its title
row and by its group grip, on a Retina Mac.

Refs storytold/photocraft#15486
2026-11-21 07:16:45 +00:00
aiongg 786c71f812 craft-ui: remove Divider::length; regenerate contract-api.md
Divider::length has no caller since the ribbon groups fill their line; its story and trial go with it (the filling
divider trial stays). docs/contract-api.md is regenerated with the contract-api bin and lists ContainerProps::least_height
and Row::least_height.
2026-11-21 07:07:21 +00:00
aiongg 9e48bc7598 pages: Go To a point inside a page puts that point at the view's top
A go_to with a fraction above 0 started from the end of the row above, so the point landed one page gap below the
view's top. Only Go To a page's top (fraction 0) puts the view's top where the row above ends.
2026-11-21 07:07:21 +00:00
aiongg 8e8af629d6 craft-ui: a scrolling collection pages its rows on a page move a row's control left
A page or end move a control in a row leaves untaken (a segmented control, whose own roving group takes no page keys)
goes to the collection, its rows' scroll owner, but the collection never read the queued moves, so nothing scrolled.
scroll_rows takes them and pages the rows.
2026-11-21 07:07:21 +00:00
aiongg f1578248db craft-ui: a levelled unit runs half a pixel past its measured width
At its level a unit ran bounded at exactly the width its Count probe measured, so content that took that width could
wrap on a rounding. It runs at that width plus measure_tolerance, as other bounded re-runs of measured content do.
2026-11-21 07:07:14 +00:00
aiongg 61c6e3cbcd craft-ui: a levelled unit's children take no slots on its row's line
The content of a levelled unit stood on the row's line for every purpose, so each direct child of a unit took a slot
as tall as the line and reported its line to the row: a unit of two controls was two lines high. The unit's content
takes the line only to fill it (`fill_size`, `line_height`); its children are placed in the unit's own flow and
report nothing to the row (`RowLine::places`).
2026-11-21 07:07:12 +00:00
aiongg 8da82d585b craft-ui: a fill-height container takes only its row's settled line
In the measuring run of a row that shares a line with an inline header or a non-full-height end region, the row's line
carried the shared height, and a container that fills its height on it was given that height, so taller content was
cut to the header's line. A container takes the row's line only once this pass's measuring run of the row settled it
(`RowLine::settled`); while the row measures, it measures its content. The line rule joins the capped decision: one
check, `given_room`, gives a capped container its room on a settled line or when its content outgrew the room.
2026-11-21 07:06:23 +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
bflatastic 6ff51120eb craft-review: handle Picked::Saved in the signature file pick 2026-11-21 13:55:57 +07:00
bflatastic 96b44e4d14 Merge branches 'port/stubs-6' and 'port/stubs-7' into port/stubs 2026-11-21 13:53:17 +07:00
bflatastic 1f60297144 Contract stubs: craft-color-ui, craft-dialogs, craft-draw, craft-imaging, craft-layers 2026-11-21 13:52:28 +07:00
aiongg 45ad4f55d7 FloatingGroup::scale is a declared prop (display scale, pixels per point) 2026-11-21 06:46:13 +00:00
bflatastic cfa2db38b3 Contract stubs: craft-font-manager, craft-text, craft-pages 2026-11-21 13:36:18 +07:00
bflatastic 08445f8c87 Contract stubs: craft-menu, craft-print, craft-table, craft-automation 2026-11-21 13:32:34 +07: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
bflatastic 0151995e6f Contract stubs: craft-pdf, craft-ui-patterns 2026-11-21 13:14:04 +07:00
aiongg 3f84f9eb43 menu: the ribbon measures right in its first frame
A group sized the spacer under its content from the content height the last real run kept (ContentHeight), so in the first frame every group stood one body too tall, and a host laying out under the ribbon saw a taller ribbon first (WordCraft scrolled its caret into view 64 pt off). The titles' line (BodyHeight) and their centring (TitleCentre) were the same last-pass state.

Each group is a labelled stack that fills the row's line: its title sits at its foot under a filling spacer, its separator fills its height, and its title row centres the title across the group's width in this pass. The row's least height (three control rows and a title line) is the row's least line height. ContentHeight, BodyHeight and TitleCentre are gone.
2026-11-21 06:11:12 +00:00
aiongg f0808f3d2a craft-ui: a row's least line height (ContainerProps::least_height, Row::least_height)
An unwrapped row's line is at least the least height, as if a child of more than one line that high stood in it, so the children that fill the line take at least it.
2026-11-21 06:11:12 +00:00
aiongg ae4c12a4b1 craft-ui: a levelled unit runs in the width its row gave its level
In a row that scrolls along x, a unit's content ran in the scroll region's unbounded room, so a centred row in it centred in the view, and fill-width children in its content columns never widened to the column. At its level the unit runs in the width the shrink step gave that level, so its content lays out as in any room of that width.
2026-11-21 06:11:11 +00:00
aiongg 2b68a30906 craft-ui: a container that fills its height on a content-height row's line runs its body in the line
Such a container took the line's height as its rect, but its body still ran at its content height, so the children in it that fill (a spacer, a separator, a footer) never reached the line. Once the row's measuring run settled the line, the container is given its height and its body runs in it, as a fill-width row on the line of a row given its height already is. In the row's own measuring run there is no line yet and the container measures its content.
2026-11-21 06:11:11 +00:00
aiongg 7a430a8e4f craft-ui: a levelled unit stands on its row's line
A levelled unit's content ran in a room of its own with the row's line cleared, so a child of it that fills its height took its own measured height instead of the line the row settled on. The unit keeps the row's line; only the probes that measure each level run off it.
2026-11-21 06:11:11 +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
bflatastic f4d0549502 Contract stubs: craft-ui-panels, craft-ui-canvas, craft-ui-shell 2026-11-21 12:52:00 +07: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