Commit Graph
272 Commits
Author SHA1 Message Date
David Mann db14409326 Merge pull request #3344 from davidmann4/fix/16658-16659-full-window-title-liquify-labels
Full-window dialogs keep their title clear of the window buttons; Liquify labels its View Options choices (photocraft#16658, photocraft#16659)
2026-11-24 19:20:58 +01:00
David Mann 518f3c7775 Merge pull request #3359 from davidmann4/fix/lasso-cursor-arrow
Lasso cursors: an arrow on the hotspot with the tool icon beside it (photocraft#16671)
2026-11-24 18:27:56 +01:00
David MannandClaude Opus 5.5 85245ecc41 Merge next into fix/16658-16659-full-window-title-liquify-labels
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 17:37:57 +01:00
David MannandClaude Opus 5.5 5b190db66a Lasso cursors: an arrow on the hotspot with the tool icon beside it (photocraft#16671)
The Lasso, Polygonal Lasso and Magnetic Lasso showed only their icon, with
the icon box's empty top-left corner on the pointer, so the outline started
at a blank spot beside the lasso. They now show the solid arrow with its tip
on the pointer and the tool's icon below right of it, as the reference
application does and as the Paint Bucket and Ruler pointers already do.

PaintedCursor::PointerTool gains an optional badge, drawn at the icon's lower
right, so the add / subtract / intersect mark stays; pointer_tool_badged
builds it. pointer_tool keeps its signature.

Tests: the three lassos show the arrow with their icon and the operation's
badge (fails on next: the lasso returned PaintedCursor::Tool); a badged arrow
pointer keeps ink on its hotspot at 1x, 1.25x and 2x with the badge at the
icon's lower right.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:35:25 +01:00
David MannandClaude Opus 5.5 b43aa12593 ui-canvas: a full-window dialog's own window is at least OWN_WINDOW_MIN_SIZE (640 x 480), so a placement saved while it shrank opens usable
A placement saved while photocraft#16595 shrank RAW Develop's window could be 1 pt wide. place() raised it only to the
full-window overlay's minimum, 0 x 0, and since the window now keeps its size nothing grew it again. The minimum reaches
the OS window's min size and the floor a restored placement is fitted to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:41:10 +01:00
David MannandClaude Opus 5.5 9b897a57a5 Full-window dialogs keep their title clear of the window buttons; Liquify labels its View Options choices (photocraft#16658, photocraft#16659)
- `WindowHost::lights_room`: the room the macOS traffic lights take over the content (inset frame, not in full screen).
- `FullWindowDialog`'s title row starts after that room where the header lies under it, as the shell's title bar does.
- Liquify's `Rows::choose` shows each select in a `Field`, so Mesh Size, Use and Mode are drawn beside their selects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 14:29:27 +01:00
Dylan M. Taylor b138b533fe Merge remote-tracking branch 'upstream/next' into pr-2809-merge
# Conflicts:
#	crates/automation/Cargo.toml
#	crates/automation/src/access.rs
#	crates/automation/src/synthetic.rs
#	crates/automation/tests/it/access.rs
#	crates/automation/tests/it/synthetic.rs
#	crates/behavior/src/codec.rs
#	crates/behavior/src/edit_history.rs
#	crates/behavior/src/lib.rs
#	crates/behavior/src/wheel.rs
#	crates/color-ui/src/ui/paint_chip.rs
#	crates/color-ui/src/ui/pair.rs
#	crates/color-ui/src/ui/palette.rs
#	crates/color-ui/src/ui/palette/stories.rs
#	crates/dialogs/src/service.rs
#	crates/draw/src/ui/transform/transform_box.rs
#	crates/draw/src/ui/transform/transform_box/stories.rs
#	crates/draw/tests/it/transform_box.rs
#	crates/font-manager/src/glyphs.rs
#	crates/font-manager/src/picker.rs
#	crates/font-manager/src/picker/rank.rs
#	crates/font-manager/src/picker/rows.rs
#	crates/font-manager/src/picker/stories.rs
#	crates/font-manager/tests/it/picker.rs
#	crates/host/src/lib.rs
#	crates/menu/src/context.rs
#	crates/menu/src/mac.rs
#	crates/menu/src/model.rs
#	crates/pages/src/ui/view.rs
#	crates/platform/README.md
#	crates/platform/src/browser_files.rs
#	crates/print/src/ui/dialog.rs
#	crates/print/src/ui/mod.rs
#	crates/print/src/ui/panel.rs
#	crates/print/src/ui/stories.rs
#	crates/print/tests/it/dialog.rs
#	crates/text/src/ui/character.rs
#	crates/text/src/ui/character/rows.rs
#	crates/text/src/ui/editor.rs
#	crates/text/tests/it/editor.rs
#	crates/text/tests/it/main.rs
#	crates/ui-canvas/src/canvas/mod.rs
#	crates/ui-canvas/src/canvas/split/stories.rs
#	crates/ui-canvas/src/canvas/tool_host.rs
#	crates/ui-canvas/src/canvas_controls/outline/mod.rs
#	crates/ui-canvas/src/canvas_controls/task_bar.rs
#	crates/ui-canvas/src/canvas_controls/task_bar/stories.rs
#	crates/ui-canvas/tests/it/canvas/navigate.rs
#	crates/ui-canvas/tests/it/canvas/tool_keys.rs
#	crates/ui-canvas/tests/it/canvas_controls/task_bar.rs
#	crates/ui-contract/src/contract/collection/props.rs
#	crates/ui-contract/src/contract/cx/pointer.rs
#	crates/ui-contract/src/contract/items/access.rs
#	crates/ui-contract/src/contract/items/drag.rs
#	crates/ui-contract/src/contract/items/lead.rs
#	crates/ui-contract/src/contract/label.rs
#	crates/ui-contract/src/contract/mod.rs
#	crates/ui-contract/src/contract/run.rs
#	crates/ui-contract/src/contract/steps/report.rs
#	crates/ui-contract/src/contract/steps/update.rs
#	crates/ui-contract/src/primitives/mod.rs
#	crates/ui-contract/src/primitives/sensing.rs
#	crates/ui-contract/src/primitives/text_adapter.rs
#	crates/ui-contract/src/primitives/text_input.rs
#	crates/ui-contract/src/runtime/access/emit.rs
#	crates/ui-contract/src/runtime/access/text.rs
#	crates/ui-contract/src/runtime/commands/board.rs
#	crates/ui-contract/src/runtime/commands/mod.rs
#	crates/ui-contract/src/runtime/drag.rs
#	crates/ui-contract/src/runtime/egui/access.rs
#	crates/ui-contract/src/runtime/egui/access/tree.rs
#	crates/ui-contract/src/runtime/egui/input.rs
#	crates/ui-contract/src/runtime/env.rs
#	crates/ui-contract/src/runtime/focus/nav.rs
#	crates/ui-contract/src/runtime/frame.rs
#	crates/ui-contract/src/runtime/keys.rs
#	crates/ui-contract/src/runtime/keys/claims.rs
#	crates/ui-contract/src/runtime/keys/input.rs
#	crates/ui-contract/src/runtime/keys/route.rs
#	crates/ui-contract/src/runtime/pointer.rs
#	crates/ui-contract/src/runtime/windows.rs
#	crates/ui-contract/src/testing/fixture.rs
#	crates/ui-contract/src/testing/host_key_trials.rs
#	crates/ui-contract/tests/it/collection/rows.rs
#	crates/ui-contract/tests/it/drag/mod.rs
#	crates/ui-contract/tests/it/runtime/wheel.rs
#	crates/ui-macros/src/props.rs
#	crates/ui-panels/src/dialog/mod.rs
#	crates/ui-panels/src/dialog/prompts.rs
#	crates/ui-panels/src/dialog/recovery.rs
#	crates/ui-panels/src/dialog/trials.rs
#	crates/ui-panels/src/dialog/words.rs
#	crates/ui-panels/src/rails/drawer.rs
#	crates/ui-panels/src/rails/drawer/stories.rs
#	crates/ui-panels/src/rails/tool/trials.rs
#	crates/ui-panels/src/sections/footer.rs
#	crates/ui-panels/tests/it/rails/drawer.rs
#	crates/ui-patterns/src/patterns/dock/area.rs
#	crates/ui-patterns/src/patterns/form_dialogs/about.rs
#	crates/ui-patterns/src/patterns/form_dialogs/dialog.rs
#	crates/ui-patterns/src/patterns/form_dialogs/dialog/stories.rs
#	crates/ui-patterns/src/patterns/form_dialogs/host_requests.rs
#	crates/ui-patterns/src/patterns/form_dialogs/mod.rs
#	crates/ui-patterns/src/patterns/form_dialogs/param.rs
#	crates/ui-patterns/src/patterns/form_dialogs/properties.rs
#	crates/ui-patterns/src/patterns/form_dialogs/properties/stories.rs
#	crates/ui-patterns/src/patterns/form_dialogs/rows.rs
#	crates/ui-patterns/src/patterns/form_dialogs/rows/stories.rs
#	crates/ui-patterns/src/patterns/panels/history.rs
#	crates/ui-patterns/src/patterns/preferences/document/model.rs
#	crates/ui-patterns/src/patterns/preferences/model.rs
#	crates/ui-patterns/src/patterns/preferences/page.rs
#	crates/ui-patterns/src/patterns/preferences/rows.rs
#	crates/ui-patterns/src/patterns/preferences/window.rs
#	crates/ui-patterns/src/patterns/preferences/window/stories.rs
#	crates/ui-patterns/src/patterns/presets/browser.rs
#	crates/ui-patterns/tests/it/docking/group_view.rs
#	crates/ui-patterns/tests/it/form_dialogs/dialog.rs
#	crates/ui-patterns/tests/it/form_dialogs/params.rs
#	crates/ui-patterns/tests/it/preferences/model.rs
#	crates/ui-shell/src/shell/start.rs
#	crates/ui-shell/src/shell/start/stories.rs
#	crates/ui-widgets/src/buttons/icon_button.rs
#	crates/ui-widgets/src/buttons/mod.rs
#	crates/ui-widgets/src/buttons/stories.rs
#	crates/ui-widgets/src/choice/swatch.rs
#	crates/ui-widgets/src/choice/swatch_table.rs
#	crates/ui-widgets/src/display/text.rs
#	crates/ui-widgets/src/form/slider_field.rs
#	crates/ui-widgets/src/layout_components/mod.rs
#	crates/ui-widgets/src/list/mod.rs
#	crates/ui-widgets/src/list/row/paint.rs
#	crates/ui-widgets/src/list/row/show.rs
#	crates/ui-widgets/src/list/stories.rs
#	crates/ui-widgets/src/list/view.rs
#	crates/ui-widgets/src/list/view_stories.rs
#	crates/ui-widgets/src/menu/mod.rs
#	crates/ui-widgets/src/menu/stories.rs
#	crates/ui-widgets/src/pickers/select.rs
#	crates/ui-widgets/src/tabs/document.rs
#	crates/ui-widgets/src/text/number.rs
#	crates/ui-widgets/src/text/zoom_field.rs
#	crates/ui-widgets/src/tile_grid/grid.rs
#	crates/ui-widgets/src/tile_grid/grid/stories.rs
#	crates/ui-widgets/src/tile_grid/mod.rs
#	crates/ui-widgets/tests/it/label/tooltip.rs
#	crates/ui-widgets/tests/it/popover/popup.rs
#	crates/ui-widgets/tests/it/tabs.rs
#	crates/ui-widgets/tests/it/text/mod.rs
#	crates/ui-widgets/tests/it/text/number.rs
#	crates/ui-widgets/tests/it/tile_grid/grid.rs
#	crates/window/Cargo.toml
#	docs/components-index.md
#	docs/porting.md
2026-11-23 19:01:32 -05:00
Dylan M. TaylorandClaude 7c0ae3e639 fw sync: merge craft-libs next e3ca63165 (149 commits) into pdf-port/sync
Conflicts resolved (upstream's design and defaults win; the port's opt-ins stay):
- ui-contract fonts: upstream's served-faces provider, catalog job queue and byte budget;
  the port's FaceBytes::chain (Word subset siblings, F-8) re-done on the provider: a served
  face lists its served chain faces before the interface faces, a sibling landing after its
  owner remakes egui's fonts once, drawing a face marks its chain drawn. The port's chain
  trial moves onto upstream's rig, plus a late-sibling trial.
- text editor HostCx follows FacesCx's job-based document_face and document_face_bytes.
- ui-widgets Swatch: upstream's SwatchFill (split, spectrum, image, empty) with the port's
  Swatch::optional / SwatchFace::optional (new SwatchFill::None, the "no colour" diagonal)
  and Swatch::icon (glyph on the empty well) on top; both word sets kept.
- draw PaintBar: upstream's MixerLoad fill.
- font-manager: upstream's sample band; host rows (port) use it too.
- ui-panels / ui-patterns dock grips: upstream's drag_origin and named slack.
- platform clipboard tests: both trials kept.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-23 12:54:08 -05:00
Dylan M. Taylor 173d63d915 fw sync: cargo fmt --all (including drift that predates the sync) 2026-11-23 03:04:16 -05:00
bflatastic 0a4d309686 Merge remote-tracking branch 'origin/next' into sync/next
# Conflicts:
#	Cargo.toml
#	crates/font-manager/src/picker/rank.rs
#	crates/font-manager/src/picker/rows.rs
#	crates/ui-panels/src/docking/group.rs
#	crates/ui-panels/src/docking/iconic/trials.rs
#	crates/ui-patterns/src/patterns/dock/area.rs
#	crates/ui-widgets/src/choice/mod.rs
#	crates/ui-widgets/src/choice/swatch.rs
#	crates/ui-widgets/src/choice/swatch/stories.rs
#	docs/contract-api.md
2026-11-23 13:53:35 +07:00
Dylan M. Taylor cb3101725c sync skeleton: origin/next 118f1d2ff9 into pdf-port/gaps ea77c1676f, markers left
257 conflicted files staged with their conflict markers (630 hunks). The one
modify/delete, crates/ui-patterns/src/patterns/preferences/body.rs (deleted
upstream, modified by the port), keeps the port's file for its area to carry
into upstream's preferences/page.rs. Plan: landing/fw-sync-plan.md.
2026-11-22 22:42:09 -05:00
aiongg 5ddae9f82d Hue/Saturation: AdjustedFn borrows for the editor's lifetime; swatch trials drop an unused import 2026-11-23 02:35:34 +00:00
bflatastic 96f769a6e8 imaging: the magnetic lasso fastens points only when the pointer moves, so a hover rerun by a key under a still pointer leaves the outline as it was 2026-11-23 09:31:56 +07:00
aiongg 25c3f64902 Hue/Saturation: name the adjusted callback type AdjustedFn (clippy type_complexity) 2026-11-23 02:24:25 +00:00
aiongg e55137b72f Select and Mask previews again after a document edit
The workspace keyed its pending preview on the request alone, so after
HostedWorkspace::set_source the same request found the old job and no
preview of the edited document started. The key carries
WorkspaceCx::revision, as Vanishing Point and Wide Angle do.
2026-11-23 02:20:42 +00:00
aionggandRickiNano a309c143ab Hue/Saturation: pick the range with seven round swatches
The range dropdown becomes a radio group of round swatches: Master as the
hue wheel, then Reds to Magentas. An edited range shows its centre colour
before and after that range alone, with a dot under it. The range's centre
stands above Hue ("240°", "0° / 30°"), and Colorize shows one read-only
swatch of what it makes of a mid grey.

adjusted(&dyn Fn(&HueSaturation, Srgba) -> Srgba) replaces
adjusted_spectrum: one engine callback for the lower spectrum bar, the
range swatches and the Colorize swatch. HueRangeValue::centre gives a
range's centre.

Restores storytold/photocraft#14753.

Co-authored-by: RickiNano <81099017+RickiNano@users.noreply.github.com>
2026-11-23 02:20:42 +00:00
aiongg 8f82948bc6 Ruler: Shift snaps to 45 degrees keeping the shorter leg
Restores storytold/photocraft#11985.
2026-11-23 02:20:42 +00:00
aionggandhnoerenberg a8a3a594de Curve graph: one grab radius for every point, past the plot edge too
Point parts take presses, and one nearest-point picker serves plot and
point presses, so a point at the plot edge is grabbed from outside it.

Restores storytold/photocraft#14443.

Co-authored-by: hnoerenberg <hnoerenberg@users.noreply.github.com>
2026-11-23 02:20:37 +00:00
bflatastic 603697c7a2 automation, draw, imaging, menu: clippy 1.100 clean: no must_use on builders of must_use types; tests return directly, take Copy rows uncloned, name the remembered answers type 2026-11-22 22:36:59 +07:00
bflatastic b950fb234a ui-patterns: PresetRow::preview with its counted anonymous key goes; callers give a keyed face through preview_face (pattern swatches by texture, contours by their points) 2026-11-22 21:01:09 +07:00
bflatastic ccda1c03b3 imaging: the Filter Gallery session carries its layer-id counter (next_layer), kept across undo, instead of a process-wide static; ids are unique within a session 2026-11-22 21:01:08 +07:00
bflatastic eaa3433662 framework: public enums and records the port added are #[non_exhaustive]; HoldSetting, PopupRegion, ParamPresets, CardSource::preset and WebDocument::vector take constructors for the crates that build them 2026-11-22 20:01:00 +07:00
bflatastic 4e76008c1e Merge remote-tracking branch 'origin/next' into sync/next
# Conflicts:
#	crates/font-manager/src/picker.rs
#	crates/ui-canvas/src/canvas/mod.rs
2026-11-22 14:20:34 +07:00
aiongg 6ca8b40158 Layout: a control finds an egui grid's cell through the UiStack, with_env is the one scope wrapper, an egui cell is decided at what its row needs
- Env::of sets Scoped::egui_cell when its walk from a Ui to the entry it finds passes an egui::Grid's Ui; scopes that pass the env on keep it, a body or a component's children end it. It replaces Ui::is_grid in the label step and the container hooks.
- In an egui cell the row is decided at what the label and the control at its ideal width need, from the cell's left edge, narrowed as well as widened.
- flow_scope folds into with_env (Overrides::id_salt); the dock group header and the Liquify footer are craft Rows.
- text_edit and the selectable text read the caller's env before they make their child Ui.
- Grid docs: rows after an egui container are placed over it.
2026-11-21 22:46:06 +00:00
aiongg f4bd0ae95f Layout: what a body sets up for its children in flow stops at egui containers; labels unbounded only in an egui::Grid cell
Env::of clears the start_room facts (grid cursor, row line and room, shrink step, first line, flow start, fill share,
content column, offered width) when the entry it finds was installed for an ancestor of the Ui, not for the Ui
itself. Copies made from it (with_env, MemoView's counting install, with_item_facts) and the measure keys start from
the cleared facts. Env::installed_for, row_line_of and grid_of go.

Craft code that runs children in a Ui it makes installs its env there: run_sharing and measure_sharing's no-share
block, run_spread's sweeps, Lazy and MemoView, Pages, measure_slot, the levelled unit's probe, a content-height pane at
a caller rect (a room of its own), PaintUi's children. flow_scope is the craft form of ui.scope, push_id and
with_layout around craft content; the dock group header and the Liquify footer use it, and the select search row and
the date popup's Today row are craft Rows. A craft Grid documents that an egui container in it is no cell.

The label step's signal is egui's Ui::is_grid (egui_cell): in an egui::Grid cell a labelled control or container
decides its label at its own width and widens at the cell's right edge in either direction. ui.horizontal keeps
wrapping and stacking at the room's end.
2026-11-21 21:50:53 +00:00
Dylan M. Taylor 024517d26e Clip transform previews in source space 2026-11-21 16:01:15 -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
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
bflatastic 5f4c1f282d cargo fmt on the merged crates 2026-11-22 01:57:31 +07:00
Dylan M. Taylor 2b7f93a914 Keep transform preview geometry aligned during edits 2026-11-21 13:31:55 -05:00
Dylan M. Taylor 89032df543 Merge commit 'refs/prep/next' into dot-checkbox-2433 2026-11-21 13:21:38 -05:00
bflatastic 03ef0d0817 Merge remote-tracking branch 'origin/next' into sync/next
# Conflicts:
#	crates/automation/Cargo.toml
#	crates/automation/src/client.rs
#	crates/automation/src/control.rs
#	crates/automation/src/screenshot.rs
#	crates/automation/src/synthetic.rs
#	crates/automation/tests/it/main.rs
#	crates/automation/tests/it/synthetic.rs
#	crates/color-ui/src/palette.rs
#	crates/color-ui/src/ui/area.rs
#	crates/color-ui/src/ui/disc/stories.rs
#	crates/color-ui/src/ui/mod.rs
#	crates/color-ui/src/ui/paint_chip.rs
#	crates/color-ui/src/ui/pair/stories.rs
#	crates/color-ui/src/ui/palette/stories.rs
#	crates/color-ui/src/ui/panel.rs
#	crates/color-ui/src/ui/picker/stories.rs
#	crates/color-ui/src/ui/picker_dialog.rs
#	crates/color-ui/src/ui/swatches/library.rs
#	crates/color-ui/src/ui/swatches/panel.rs
#	crates/color-ui/src/ui/swatches/stories.rs
#	crates/color-ui/src/ui/wheel/stories.rs
#	crates/color-ui/tests/it/main.rs
#	crates/color-ui/tests/it/panels.rs
#	crates/color-ui/tests/it/picker.rs
#	crates/dialogs/src/lib.rs
#	crates/dialogs/src/native.rs
#	crates/dialogs/src/portal.rs
#	crates/dialogs/src/service.rs
#	crates/draw/src/ui/brush_presets/panel.rs
#	crates/draw/src/ui/brush_presets/picker.rs
#	crates/draw/src/ui/brush_presets/stories.rs
#	crates/draw/src/ui/gradient/palette/mod.rs
#	crates/draw/src/ui/pattern/editor.rs
#	crates/draw/src/ui/pen/stories.rs
#	crates/draw/src/ui/transform/mod.rs
#	crates/draw/src/ui/transform/transform_box.rs
#	crates/draw/src/ui/transform/transform_box/stories.rs
#	crates/draw/src/ui/transform/transform_fields.rs
#	crates/draw/tests/it/brush_presets.rs
#	crates/draw/tests/it/main.rs
#	crates/draw/tests/it/transform_box.rs
#	crates/font-manager/src/axes.rs
#	crates/font-manager/src/picker.rs
#	crates/font-manager/src/picker/rows.rs
#	crates/font-manager/src/picker/stories.rs
#	crates/font-manager/tests/it/main.rs
#	crates/font-manager/tests/it/picker.rs
#	crates/host/src/files.rs
#	crates/i18n/src/lib.rs
#	crates/imaging/src/ui/layer_style/styles.rs
#	crates/keymap/src/keymap.rs
#	crates/keymap/src/matcher.rs
#	crates/layers/src/ui/filter/mod.rs
#	crates/layers/src/ui/filter/stories.rs
#	crates/layers/src/ui/mock.rs
#	crates/layers/src/ui/panel/mod.rs
#	crates/layers/src/ui/panel/stories.rs
#	crates/layers/src/ui/tree.rs
#	crates/layers/tests/it/panel_drag_menu.rs
#	crates/layers/tests/it/panel_filter.rs
#	crates/menu/src/bar.rs
#	crates/menu/src/driver.rs
#	crates/menu/src/model.rs
#	crates/menu/src/shortcuts/pages.rs
#	crates/menu/src/shortcuts/state.rs
#	crates/menu/src/shortcuts/stories.rs
#	crates/menu/src/shortcuts/view.rs
#	crates/menu/tests/it/main.rs
#	crates/menu/tests/it/native.rs
#	crates/menu/tests/it/shortcuts/mod.rs
#	crates/pages/src/ui/mod.rs
#	crates/pages/src/ui/view.rs
#	crates/platform/README.md
#	crates/platform/src/clipboard_tests.rs
#	crates/platform/src/open.rs
#	crates/print/src/ui/stories.rs
#	crates/text/src/ui/character.rs
#	crates/text/src/ui/character/stories.rs
#	crates/text/src/ui/find.rs
#	crates/text/src/ui/find/dialog.rs
#	crates/text/src/ui/find/stories.rs
#	crates/text/src/ui/ruler.rs
#	crates/text/src/ui/ruler/paint.rs
#	crates/text/src/ui/ruler/run.rs
#	crates/text/tests/it/main.rs
#	crates/text/tests/it/ruler.rs
#	crates/ui-canvas/src/canvas/mod.rs
#	crates/ui-canvas/src/canvas/tool.rs
#	crates/ui-canvas/src/canvas/tool_host.rs
#	crates/ui-canvas/src/canvas_controls/grid/mod.rs
#	crates/ui-canvas/src/canvas_controls/grid/stories.rs
#	crates/ui-canvas/src/canvas_controls/guides/stories.rs
#	crates/ui-canvas/src/canvas_controls/task_bar.rs
#	crates/ui-canvas/src/canvas_controls/task_bar/stories.rs
#	crates/ui-canvas/tests/it/canvas/navigate.rs
#	crates/ui-canvas/tests/it/canvas/rulers.rs
#	crates/ui-canvas/tests/it/canvas/tool.rs
#	crates/ui-canvas/tests/it/canvas_controls/grid.rs
#	crates/ui-contract/src/contract/body/presses.rs
#	crates/ui-contract/src/contract/items/drag.rs
#	crates/ui-contract/src/contract/items/hooks.rs
#	crates/ui-contract/src/contract/items/lead.rs
#	crates/ui-contract/src/contract/overlay/placement.rs
#	crates/ui-contract/src/contract/overlay/props.rs
#	crates/ui-contract/src/contract/overlay/ui.rs
#	crates/ui-contract/src/contract/steps/label.rs
#	crates/ui-contract/src/contract/text.rs
#	crates/ui-contract/src/contract/tooltip.rs
#	crates/ui-contract/src/layout/body.rs
#	crates/ui-contract/src/primitives/draw.rs
#	crates/ui-contract/src/primitives/icon.rs
#	crates/ui-contract/src/primitives/mod.rs
#	crates/ui-contract/src/primitives/textures/thumbnails.rs
#	crates/ui-contract/src/runtime/commands/board.rs
#	crates/ui-contract/src/runtime/commands/mod.rs
#	crates/ui-contract/src/runtime/drag.rs
#	crates/ui-contract/src/runtime/egui/input.rs
#	crates/ui-contract/src/runtime/egui/plugin.rs
#	crates/ui-contract/src/runtime/frame.rs
#	crates/ui-contract/src/runtime/keys.rs
#	crates/ui-contract/src/runtime/keys/input.rs
#	crates/ui-contract/src/runtime/keys/route.rs
#	crates/ui-contract/src/runtime/pointer.rs
#	crates/ui-contract/src/runtime/wheel.rs
#	crates/ui-contract/src/runtime/windows.rs
#	crates/ui-contract/src/runtime/windows/viewport.rs
#	crates/ui-contract/src/style/cx.rs
#	crates/ui-contract/src/style/span.rs
#	crates/ui-contract/src/testing/access.rs
#	crates/ui-contract/src/testing/icon_trials.rs
#	crates/ui-contract/tests/it/body/mod.rs
#	crates/ui-contract/tests/it/runtime/mod.rs
#	crates/ui-contract/tests/it/runtime/wheel.rs
#	crates/ui-contract/tests/it/runtime/windows.rs
#	crates/ui-contract/tests/it/text/editor.rs
#	crates/ui-gallery/src/mock/panels.rs
#	crates/ui-panels/src/dialog/mod.rs
#	crates/ui-panels/src/docking/group.rs
#	crates/ui-panels/src/rails/drawer/stories.rs
#	crates/ui-panels/src/rails/tool.rs
#	crates/ui-panels/src/rails/tool/stories.rs
#	crates/ui-panels/src/rails/tool/trials.rs
#	crates/ui-panels/src/sections/footer.rs
#	crates/ui-panels/tests/it/dialogs.rs
#	crates/ui-patterns/src/patterns/dock/hide.rs
#	crates/ui-patterns/src/patterns/dock/panes.rs
#	crates/ui-patterns/src/patterns/form_dialogs/dialog.rs
#	crates/ui-patterns/src/patterns/form_dialogs/dialog/stories.rs
#	crates/ui-patterns/src/patterns/form_dialogs/list_manager.rs
#	crates/ui-patterns/src/patterns/form_dialogs/list_manager/stories.rs
#	crates/ui-patterns/src/patterns/form_dialogs/mod.rs
#	crates/ui-patterns/src/patterns/form_dialogs/new_document.rs
#	crates/ui-patterns/src/patterns/form_dialogs/new_document/cards.rs
#	crates/ui-patterns/src/patterns/form_dialogs/new_document/details.rs
#	crates/ui-patterns/src/patterns/form_dialogs/param.rs
#	crates/ui-patterns/src/patterns/form_dialogs/pdf_export.rs
#	crates/ui-patterns/src/patterns/form_dialogs/pdf_export/stories.rs
#	crates/ui-patterns/src/patterns/form_dialogs/report.rs
#	crates/ui-patterns/src/patterns/form_dialogs/report/stories.rs
#	crates/ui-patterns/src/patterns/form_dialogs/rows.rs
#	crates/ui-patterns/src/patterns/form_dialogs/save_for_web.rs
#	crates/ui-patterns/src/patterns/form_dialogs/save_for_web/hosted.rs
#	crates/ui-patterns/src/patterns/form_dialogs/save_for_web/model.rs
#	crates/ui-patterns/src/patterns/form_dialogs/save_for_web/options.rs
#	crates/ui-patterns/src/patterns/form_dialogs/save_for_web/stories.rs
#	crates/ui-patterns/src/patterns/panels/palette.rs
#	crates/ui-patterns/src/patterns/panels/palette/stories.rs
#	crates/ui-patterns/src/patterns/preferences/document/model.rs
#	crates/ui-patterns/src/patterns/preferences/page.rs
#	crates/ui-patterns/src/patterns/preferences/window.rs
#	crates/ui-patterns/src/patterns/preferences/window/stories.rs
#	crates/ui-patterns/src/patterns/presets/browser.rs
#	crates/ui-patterns/src/patterns/presets/browser/stories.rs
#	crates/ui-patterns/src/patterns/presets/manager.rs
#	crates/ui-patterns/src/patterns/presets/mod.rs
#	crates/ui-patterns/src/patterns/presets/named.rs
#	crates/ui-patterns/src/patterns/presets/picker.rs
#	crates/ui-patterns/tests/it/docking/drop_session.rs
#	crates/ui-patterns/tests/it/docking/native.rs
#	crates/ui-patterns/tests/it/form_dialogs/hosted.rs
#	crates/ui-patterns/tests/it/form_dialogs/list_manager.rs
#	crates/ui-patterns/tests/it/form_dialogs/mod.rs
#	crates/ui-patterns/tests/it/form_dialogs/params.rs
#	crates/ui-patterns/tests/it/form_dialogs/save_for_web.rs
#	crates/ui-patterns/tests/it/panels/palette.rs
#	crates/ui-patterns/tests/it/presets/browser.rs
#	crates/ui-shell/src/shell/app_shell.rs
#	crates/ui-shell/src/shell/app_shell/stories.rs
#	crates/ui-shell/src/shell/mod.rs
#	crates/ui-shell/src/shell/start.rs
#	crates/ui-shell/src/shell/start/stories.rs
#	crates/ui-shell/tests/it/commands/mod.rs
#	crates/ui-shell/tests/it/shell/app_shell.rs
#	crates/ui-shell/tests/it/shell/mod.rs
#	crates/ui-widgets/src/bars/bar.rs
#	crates/ui-widgets/src/buttons/button.rs
#	crates/ui-widgets/src/buttons/face.rs
#	crates/ui-widgets/src/buttons/mod.rs
#	crates/ui-widgets/src/buttons/stories.rs
#	crates/ui-widgets/src/choice/mod.rs
#	crates/ui-widgets/src/choice/swatch.rs
#	crates/ui-widgets/src/choice/swatch/stories.rs
#	crates/ui-widgets/src/choice/swatch_table.rs
#	crates/ui-widgets/src/choice/swatch_table/stories.rs
#	crates/ui-widgets/src/display/text.rs
#	crates/ui-widgets/src/list/row.rs
#	crates/ui-widgets/src/list/row/paint.rs
#	crates/ui-widgets/src/list/stories.rs
#	crates/ui-widgets/src/list/view_stories.rs
#	crates/ui-widgets/src/menu/bar.rs
#	crates/ui-widgets/src/menu/item.rs
#	crates/ui-widgets/src/menu/search.rs
#	crates/ui-widgets/src/menu/stories.rs
#	crates/ui-widgets/src/pickers/mod.rs
#	crates/ui-widgets/src/pickers/reference_point.rs
#	crates/ui-widgets/src/pickers/reference_point/stories.rs
#	crates/ui-widgets/src/tabs/strip.rs
#	crates/ui-widgets/src/text/number.rs
#	crates/ui-widgets/src/text/number/stories.rs
#	crates/ui-widgets/src/tile_grid/grid.rs
#	crates/ui-widgets/tests/it/buttons.rs
#	crates/ui-widgets/tests/it/label/mod.rs
#	crates/ui-widgets/tests/it/label/tooltip.rs
#	crates/ui-widgets/tests/it/main.rs
#	crates/ui-widgets/tests/it/menu/bar.rs
#	crates/ui-widgets/tests/it/menu/mod.rs
#	crates/ui-widgets/tests/it/menu/rows.rs
#	crates/ui-widgets/tests/it/menu/search.rs
#	crates/ui-widgets/tests/it/pickers/select_list.rs
#	crates/ui-widgets/tests/it/text/mod.rs
2026-11-22 01:16:36 +07:00
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
bflatastic 893caadf6d forms-w1: net change of 2 commits
- forms-w1: written from its sheet
- forms-w1: finished by an agent
2026-11-21 23:21:24 +07:00
bflatastic e62c14cd6c Selection sites: dp.C12 applied, markers removed 2026-11-21 22:07:59 +07:00
vangel76 a8813a11b9 Merge upstream next into the checkbox sweep port 2026-11-21 15:47:41 +01:00
bflatastic a4230e52d7 effects-w3: net change of 1 commits
- effects-w3: written from its sheet
2026-11-21 21:27:17 +07:00
bflatastic 4d4790ee71 appearance-w5: net change of 2 commits
- appearance-w5: written from its sheet
- appearance-w5: repair 1
2026-11-21 21:27:15 +07:00
bflatastic a4e2c92fe9 canvas-w1: net change of 2 commits
- canvas-w1: written from its sheet
- canvas-w1: repair 1
2026-11-21 21:26:18 +07: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 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
bflatastic 5e06e0cace Contract stubs: refresh (i18n, keymap, behavior, font-catalog, platform, window, appkit, wayland, automation, dialogs, ui-contract, ui-widgets, ui-panels, ui-canvas, ui-patterns, color-ui, draw, pages, print, font-manager, text, layers, craft) 2026-11-21 19:03:27 +07: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
aiongg c2e74ed124 Levels fields take their width from NumberField's own measure 2026-11-21 08:47:10 +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 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 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