Commit Graph
8520 Commits
Author SHA1 Message Date
Dylan M. Taylor 037eeb7ffc Keep portrait frames for Organize pages 2026-11-21 15:52:58 -05:00
Dylan M. Taylor f6f56c94d9 Test room for Organize page controls 2026-11-21 15:51:32 -05:00
aiongg 7547d34702 Layout: a labelled control in a flow egui lays out without wrapping decides its label at its own width
egui::Grid offers a column with no width from the last frame its least cell width (40 points). A check box's label
after it was decided in that width, so it wrapped, its cell grew taller than the one-line cells beside it, and
egui::Grid centred the shorter cells lower: in PhotoCraft's Conditional Mode Change dialog, Bitmap and RGB Color
no longer shared a row. The column then stayed that narrow.

In a Ui that egui lays out (no body installed its env for it) where egui extends text instead of wrapping it
(Ui::wrap_mode: ui.horizontal, an egui::Grid without a max column width), the label step's row has no end: the
label keeps its natural width, a beside label never stacks for want of room, and the step's flow widens from the
row's start edge to what the label and control need. Craft's own rows, bars and grid cells, and vertical and
wrapping flows, keep their bounded room.
2026-11-21 20:43:45 +00:00
Dylan M. Taylor 7068065754 Remove unfinished Organize layout trial 2026-11-21 15:40:14 -05:00
Dylan M. Taylor 7487619fe4 Handle Organize trial output 2026-11-21 15:39:45 -05:00
aiongg 0aa781ecf0 Trials for content rails, scrolling lists and the settled frame after a grow
Content start and end rails sit at their sides in left-to-right and
right-to-left windows, hold their content and settle in one pass with
each rail's content run once. A content slot holding a vertically
scrolling list, content-sized or filling its height, is as tall as the
list's rows and the body keeps the rest of the window. The count trial's
grow half also checks that the next frame is settled.

SlotSize::Content documents that the slot never takes more than the room
the window leaves it, and that raw egui content allocates its own extent
along the slot's edge.
2026-11-21 20:37:02 +00:00
aiongg 5366157e63 A content slot records its extent only from its own real run
The shell recorded a content slot's extent from any run of its content,
including the scope's measuring run, which alone runs for an embedded
shell out of sight. The slot's own body now says whether it ran for real,
and only that run records. A content slot's pane no longer carries an
extent: a pane at a rect ignores it.

The out-of-sight trial also holds a content slot, which does not run.
2026-11-21 20:37:02 +00:00
Dylan M. Taylor 6c31c15bbd Exercise landscape pages in Organize trial 2026-11-21 15:29:01 -05:00
Dylan M. Taylor 345aa013fc Add trial for Organize tile proportions 2026-11-21 15:28:45 -05:00
Dylan M. Taylor 54255f5927 Keep checkbox sweep runtime below the contract layer 2026-11-21 15:27:58 -05:00
Dylan M. Taylor 31bed444bb Show labels beside About link icons 2026-11-21 15:25:03 -05:00
Dylan M. Taylor 0cfe8611e1 Preserve form edits across interactive split panes 2026-11-21 15:24:15 -05:00
Dylan M. Taylor 970d4d8769 Add trial for labelled About links 2026-11-21 15:20:05 -05:00
Dylan M. Taylor 858806e997 Keep document tab titles readable when shrinking 2026-11-21 15:18:31 -05:00
aiongg aae6c5a458 Layout: a body's row line and grid cells are for its direct children only
A component an app shows inside an egui container (an egui::Grid, ui.horizontal) in a Row or Grid body read the body's
env up the Ui stack and was placed as one of the body's children: a labelled check box in an egui::Grid inside a
full-width form row took a slot as high as the row's whole line, so every grid row was as tall as the block
(PhotoCraft's Conditional Mode Change dialog), and a check box in ui.horizontal in a Grid body took the grid's cells.

Env::installed_for says whether a Ui has an env entry of its own; row_line_of and grid_of give the row's line and the
grid's cells only there. The spread row's sweeps install the row's env for the Ui its children run in.
2026-11-21 20:15:40 +00:00
Dylan M. Taylor b2fb0af164 Keep rail footer controls compact 2026-11-21 15:01:04 -05:00
Dylan M. Taylor 6ac171676c Add gallery story for many document tabs 2026-11-21 15:00:35 -05:00
Dylan M. Taylor 31ff198227 Add regression trial for scrolling document tabs 2026-11-21 14:56:18 -05:00
Dylan M. Taylor 54fa31df1b Keep tile actions visible over pictures 2026-11-21 14:55:27 -05:00
Dylan M. Taylor f131044b83 Show insert targets in tile grids 2026-11-21 14:52:48 -05:00
aiongg 2d8b842954 A content-sized shell slot runs its content in the room it can grow into
A SlotSize::Content slot ran its content in the rect it was laid out at,
the extent its content took in the last pass. A child that fills its
height there is capped at that room, so content of fill-height
containers (the ribbon's groups) could never grow the slot past its
first height, and their controls ran past their containers' feet.

The slot's pane is now as large as its content from its outer edge
(ShellPane::at_content_extent, which covers bottom and side panes as
well as the top), in the room from that edge to the far edge of what
the slots before it leave. The window is still laid out at the kept
extent, and remeasure lays it out again when the pane's extent differs.
2026-11-21 19:48:46 +00:00
Dylan M. Taylor ee356c24da Restore scrolling extent of dock rail icons 2026-11-21 14:37:20 -05:00
Dylan M. Taylor d0af908563 Constrain dock rail icons to available space 2026-11-21 14:31:41 -05:00
bflatastic 086cbb61a2 ui-contract: part_senses is not suite-only (a collection row reads it for pressing parts) 2026-11-22 02:29:39 +07:00
Dylan M. Taylor 5a40cb64f4 Restore rail pending complete layout fix 2026-11-21 14:25:35 -05:00
aiongg 9ccaa3bdd6 Merge pull request #2872 from aiongg/memo-sizing-key
Memoized views replay in sizing passes (#2336)
2026-11-21 14:24:39 -05:00
bflatastic 2b261f3511 Merge remote-tracking branch 'origin/next' into sync/next
# Conflicts:
#	crates/imaging/src/ui/layer_style/list.rs
2026-11-22 02:24:04 +07:00
Dylan M. Taylor 739a4cdcc6 Constrain dock rail icons above footer 2026-11-21 14:23:46 -05:00
Dylan M. Taylor fc4b1c7bb7 Restore field edits before closing modeless dialogs 2026-11-21 14:23:03 -05:00
Dylan M. Taylor 235ae08721 Restore insert gap paint pending full affordance 2026-11-21 14:22:01 -05:00
Dylan M. Taylor 699f08b901 Merge pull request #2433 from vangel76/fix/checkbox-sweep-3333
Check or clear related checkboxes in one drag
2026-11-21 14:21:44 -05:00
Dylan M. Taylor 5d96200534 Restore rail layout pending complete fix 2026-11-21 14:21:39 -05:00
Dylan M. Taylor a8aeb9858b Add compact action card tiles 2026-11-21 14:20:24 -05:00
bflatastic 1f671adbeb Docking trials: upstream's macOS click holds the primary button through FakeSystem::set_buttons_held 2026-11-22 02:16:28 +07:00
bflatastic a9ae38864a A memoized view in a shrinking row reports no fit rank: report_shrink's rank argument added to upstream's new caller 2026-11-22 02:16:27 +07:00
bflatastic 5ecba486c3 Merge remote-tracking branch 'origin/next' into sync/next
# Conflicts:
#	crates/behavior/src/overlay.rs
#	crates/ui-canvas/src/canvas_controls/guides/mod.rs
#	crates/ui-contract/src/contract/label/step.rs
#	crates/ui-contract/src/contract/overlay/placement.rs
#	crates/ui-contract/src/contract/tooltip.rs
#	crates/ui-patterns/tests/it/docking/native.rs
#	crates/ui-shell/tests/it/shell/app_shell.rs
2026-11-22 02:11:13 +07:00
Dylan M. Taylor e84a6b5dec Show insertion affordances in tile grids 2026-11-21 14:07:07 -05:00
Dylan M. Taylor d6a77f18ae Constrain rail icons to space above footer 2026-11-21 14:04:55 -05:00
Terra854 6a061a30bd audio: decode FLAC frames through TrackDecoder (#2868)
* audio: decode FLAC frames through TrackDecoder

* audio: keep FLAC state out of the decoder enum layout
2026-11-21 14:04:27 -05:00
bflatastic d14207f668 One alias for a host's name check (NameRefuses) in the PDF and print dialogs; the swatch thumb painter's boxed type named; a doubled must_use dropped 2026-11-22 02:03:59 +07:00
bflatastic 5f4c1f282d cargo fmt on the merged crates 2026-11-22 01:57:31 +07:00
bflatastic a3cbd1070f Trials: Id::unique for upstream's deprecated Id::new; an unused import 2026-11-22 01:53:46 +07:00
bflatastic 4a76442e8f Port trials follow upstream's APIs: the guides rig without a body rect, in-place tidy and English names on the menu model, page-aware document points 2026-11-22 01:53:46 +07:00
bflatastic 5e71eb0e3c ui-canvas: upstream's task bar drag trial expects the port's offset for an unpinned drop 2026-11-22 01:53:45 +07:00
bflatastic 6647bdd488 text: upstream's Find trial reads the contract's find and replace fields 2026-11-22 01:53:44 +07:00
Dylan M. Taylor d20a82481b svg: share CSS transform, style, unit, and viewBox syntax helpers (#789) (#2887)
* svg: share CSS transform, style, unit, and viewBox syntax helpers (#789)

* svg: fix expected 3-decimal mm formatting in roundtrip_text_and_units
2026-11-21 13:53:27 -05:00
aiongg e826abef73 focus: a leaf can open a focus scope; the canvas text editor returns the focus to the canvas
Component::FOCUS_SCOPE gives a leaf the scope ContainerProps::focus gives a container, through the leaf
shape's focus hook. TextEditor opens a scope that restores (FocusPolicy::TAB_LAYER), so a session that
ends hands the focus back to the stop it came from, the canvas, instead of the stop before the editor
(the rulers' corner, whose arrows moved the zero point after a commit; photocraft#15555). Regenerates
docs/contract-api.md.
2026-11-21 18:49:26 +00:00
aiongg 9de310681e focus: a stop that inherits the focus from a removed one is not revealed
A removal hands the focus to a neighbour nobody chose to show, so no scroll owner reveals it: a deleted
guide or a closed canvas text editor no longer pans the canvas to the stop beside it (photocraft#15555).
2026-11-21 18:49:26 +00:00
aiongg d67796f469 focus: trials for the focus after a removed stop and after a closed canvas text editor
Both fail on this branch: a stop that inherits the focus from a removed one is revealed, and a closed
editor on a canvas with rulers hands the focus to the rulers' corner instead of the canvas.
2026-11-21 18:49:26 +00:00
aiongg 13353a0fd3 Merge pull request #2778 from aiongg/wc-regressions
Go To lands on the page, reveals stay in their scroll owner, the ribbon measures in its first frame
2026-11-21 13:48:35 -05:00