Commit Graph
243 Commits
Author SHA1 Message Date
aiongg f6290898c4 Merge remote-tracking branch 'upstream/next' into rc-next-regressions
# Conflicts:
#	crates/ui-contract/src/layout/mod.rs
#	crates/ui-shell/tests/it/shell/title_bar.rs
2026-11-24 13:35:21 +00:00
David Mann 5bbeb937e9 Merge pull request #3288 from aiongg/next-ci-reds
Make next's own CI green on Linux
2026-11-24 12:33:08 +01:00
bflatastic 0e41edc671 Merge remote-tracking branch 'origin/next' into fix/vc-chips-headers 2026-11-24 14:31:44 +07:00
aiongg 50a9ed02ae Right-click on guides, rulers and the transform box is theirs again; percent fields keep the caller's decimals; a mixed font family shows an empty field
- Guides and the rulers' strips and corner sense CONTEXT_CLICK, so a right-click opens their menu instead of reaching the tool host (the press machine gives a secondary press only to CONTEXT_CLICK shapes since 21e77e2b58).
- TransformBox::own_context_menu: the caller hangs a context menu on the box, and every part takes the right-click. TransformOverlay sets it for the whole-box reach, where it opens the mode menu.
- NumberField: a percent field's one-decimal default yields to the caller's fixed or maximum decimals, and shows none with commit_decimals(0) ("10%").
- FontPicker: a selection of several families leaves the family field empty, on screen and in its accessible value, as the reference applications do.
2026-11-24 07:25:06 +00:00
aiongg eadfc623d3 Merge remote-tracking branch 'upstream/next' into next-ci-reds
# Conflicts:
#	crates/ui-contract/src/testing/key_trials.rs
2026-11-24 07:17:18 +00:00
bflatastic 1a17a4963c ui-canvas: TaskBar::hang_gap(TaskBarHang::ClearOfHandles) hangs the bar the handle ring and a section gap from its anchor 2026-11-24 13:06:08 +07:00
bflatastic 361012ff9f ui-canvas: TaskBar::grip(TaskBarGrip::Bar), one rounded bar lit under the pointer and while the bar moves (BodyCx::moving) 2026-11-24 12:56:14 +07:00
bflatastic 51eaf9fd25 ui-contract: a page key the keymap binds to a command that runs now runs it ahead of the document canvas's page scroll, focused or not; an unbound one still pages 2026-11-24 12:19:01 +07:00
bflatastic 48d19d2810 ui-contract: a command fired from a button runs as a command; only a menu's or the palette's fire stands for the key a component claims 2026-11-24 12:08:24 +07:00
skylartaylor 52503acd71 Fix the macOS test failures next picked up from the PdfCraft framework sync (#3232)
- atomic: a file the user may write but not read (mode 0200) saves again on macOS; its extended
  attributes can't be read, so there are none to keep.
- menu, ui-shell, pages, ui-contract, ui-canvas tests: follow the macOS conventions the code already has. The
  in-window bar test pins its target as the other bar tests do; macOS has no Menu key and no Cmd+Home/End move;
  its platform copy key is Option; a press with Control there is a secondary click, so Control comes after the press.
2026-11-24 04:48:57 +00: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
bflatastic 0726c0f87d ui-contract, ui-canvas: KeyUse::command_keys and Canvas::editor_command_keys: a canvas editor that has the keys leaves chords with the platform's command modifier and function keys to the app's commands under any typing rule, its text editing chords kept; off by default: under TypingRule::AllWait a type tool's editor ran none of the app's Cmd chords or function keys 2026-11-24 00:58:13 +07:00
Dylan M. Taylor cd4704b357 Merge branch 'pdf-port/sync' into pdf-port/sync-look 2026-11-23 09:35:58 -05:00
Dylan M. Taylor 05f6b87d41 fw sync: TaskBar::compact opt-in (small members in a tight frame, Pad::Tight, Bar::compact) for PdfCraft's text box Done/Discard bar 2026-11-23 08:23:45 -05:00
Dylan M. Taylor 0eed29dcc2 Merge branch 'pdf-port/sync' into pdf-port/sync-rest 2026-11-23 07:44:04 -05:00
Dylan M. Taylor efe4040927 fw sync: opt-in eased wheel zoom on the canvas (NavigationOptions::eased_wheel_zoom)
Upstream bd3641bf3 reads the pass's zoom from its own events, and the canvas applies a Cmd/Ctrl-wheel
notch at once. Production eased a notch over the frames after it (egui's wheel smoothing), and its
find-during-zoom behaviour relies on that. With eased_wheel_zoom (off by default) a zoom-modifier wheel
notch is owed and paid by the pass clock as egui eases a wheel (90% in a tenth of a second); a pinch, a
trackpad and steps under 8 points zoom at once; a press, a key move or a view command drops what is owed.
Trial: canvas::navigate::an_eased_wheel_zoom_spreads_a_notch_over_the_frames_after_it_and_lands_where_the_plain_one_jumps.
2026-11-23 07:43:54 -05:00
bflatastic f8714b2374 ui-canvas: ToolHost::navigates: a press the host says navigates (a finger once a pen has been seen) runs the momentary Hand, latched for its gesture 2026-11-23 19:35:36 +07:00
bflatastic 95e4ec879e behavior, ui-canvas: RulerUnits::with_labels(TickLabels::Signed) writes ruler ticks signed with only the decimals they need (-2.5, 0.3, 1), VectorCraft's form; TickLabels::Distance stays the default 2026-11-23 19:35:36 +07:00
Dylan M. Taylor cfd3adbe6c fw sync: L-321: MiddleAutoscrollFeel::Reader opt-in (production's speed, short-hold latch, ends on canvas blur)
NavigationOptions::middle_autoscroll, Edge (upstream's Autoscroll::step on the offset
past the dead zone, a release after a drag ends the run) by default. Reader is the
port's MiddleScroll feel PdfCraft's production tests pin: speed |d|^2.2 x 0.04 pt/s
from the whole distance, a release ends the run only after two stepped held passes past
the dead zone, and the run ends when the canvas loses the focus with the button up.
Trial: a_reader_autoscroll_keeps_a_short_hold_and_speeds_up_with_the_whole_distance.
2026-11-23 07:12:37 -05:00
bflatastic 0c633a83cd ui-canvas: a rulers corner drag lands at its release only while its edit is open: after the host cancelled it, the release proposed and committed again and moved the zero point 2026-11-23 18:05:09 +07:00
bflatastic a29bfe866b ui-canvas: the rulers' corner drag proposes where it lands at its start and its release, so a drag of one move sets the zero point 2026-11-23 13:37:04 +07:00
Dylan M. Taylor 438ae3da78 fw sync: review/pages/draw/text compile: comment selection and status fields, note popup scope, story binds, memoized-view preview trial, trials registered 2026-11-22 23:31:49 -05:00
Dylan M. Taylor a297595c4a fw sync: automation dock_method takes PanelSpecs; platform BrowserFiles writes to an embedding page (page_saves) before downloading, web-host's page_save feeds it (L-317); compile fixes in canvas/patterns trials 2026-11-22 23:30:13 -05:00
Dylan M. Taylor 0228bb2569 fw-canvas: resolve the origin/next sync conflicts (canvas autoscroll, wheel schemes, rulers, editor part, crop scope, task bar kinds, transform box handles; trials and stories) 2026-11-22 23:00:58 -05: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
bflatastic 8242da0a92 ui-canvas: Space moves the Zoom tool's rectangle while held, once let go since the press, and the release zooms to the moved rectangle 2026-11-23 09:26:44 +07:00
bflatastic 6468047eab ui-contract: a key the key stage takes from egui (a claimed chord, the canvas's Space) stirs the pass, so a held pointer drags and hovers again when it goes down or up 2026-11-23 09:03:28 +07:00
bflatastic 0e9af5befe Merge remote-tracking branch 'origin/next' into sync/next
# Conflicts:
#	crates/ui-panels/src/docking/group.rs
2026-11-23 08:00:44 +07:00
bflatastic aec1c35895 ui-contract: a modal layer keeps the document canvas's claimed chords from it while nothing is focused, as it keeps the arrows 2026-11-23 06:12:13 +07:00
bflatastic 9a1040272f ui-contract: with nothing focused, the document canvas's claimed chords hold, so a tool takes the Delete and Backspace it claims instead of the app's Edit > Clear 2026-11-23 05:34:16 +07:00
bflatastic 4a8fff263d ui-canvas: a tool drag held in the band inside the canvas edge scrolls the view, under the one edge rule hovers already use 2026-11-23 04:52:12 +07:00
bflatastic 534db793a0 Merge remote-tracking branch 'origin/next' into sync/next
# Conflicts:
#	crates/font-manager/tests/it/picker.rs
#	crates/ui-shell/tests/it/shell/app_shell.rs
2026-11-23 04:35:03 +07:00
David MannandClaude Opus 5.5 269c33ea55 Crop: a move of a turned document crop may take the frame past its bounds
A turned frame stopped at the image's edge on a move (photocraft#16460);
the reference application lets it go past and fills the area there, as for
an upright frame (photocraft#16404). Only the turn itself still keeps the
frame inside the turned image (photocraft#10869).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 22:25:17 +01:00
bflatastic 9b89c55e5b ui-canvas: trial that two clicks in one frame reach the tool, the second as a double click 2026-11-23 03:47:17 +07:00
bflatastic d467ed3dcd Merge remote-tracking branch 'origin/next' into sync/next
# Conflicts:
#	crates/font-catalog/src/tests.rs
#	crates/font-manager/src/picker.rs
#	crates/font-manager/src/picker/rows.rs
#	crates/font-manager/src/picker/stories.rs
#	crates/ui-patterns/src/patterns/panels/palette.rs
#	crates/ui-patterns/src/patterns/presets/browser.rs
#	crates/ui-widgets/src/list/mod.rs
#	crates/ui-widgets/src/list/view.rs
2026-11-23 02:15:44 +07:00
bflatastic e695aadc6d ui-contract, ui-widgets: a number field's value reads the unit it draws after its number ("160 pt") through Access::unit; trials that read a field's text read its text runs (AccessTree::run_texts_of) 2026-11-23 01:59:53 +07:00
David MannandClaude Opus 5.5 1b14d4e3e9 Navigator: a view past the document stays; only the Navigator's own moves are kept inside it (photocraft#16328, photocraft#12025)
Every pass the Navigator pulled the view's centre back into the document
and wrote it back when it differed, also when it had moved nothing. With
Overscroll on, a view the scroll bars or the Hand put on the pasteboard
went back to the document's edge at once: the scroll bars stopped there
(the thumb never reached its track's ends) and their drags ended on the
change, while the Navigator panel was shown. Only a centre the Navigator
moved in its pass is kept inside the document now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 19:44:49 +01:00
bflatastic b3d3c18ba8 ui-contract, ui-canvas: a nudge carries the keys held when its arrow went down, in the order of the frame's events (Intents::nudge_held, ToolKey::Nudge::held) 2026-11-23 00:50:27 +07:00
David MannandClaude Opus 5.5 1f1437c4d9 Crop: a move past the canvas with Auto Center Preview, snapping and the Crop tool's defaults
The overlay test also moves the image with Auto Center Preview on, and a CropTool test moves an
upright frame past the canvas with the default settings (image mode, Auto Center, Delete Cropped
Pixels on), at 31 % and with snapping to the document's edges, as the app runs it.

Part of storytold/photocraft#16404.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:56:28 +01:00
bflatastic d017edbad0 ui-canvas: clippy 1.100 clean: no must_use on builders of a must_use type; the task bar's More story drive finds its button without expect 2026-11-22 22:36:55 +07:00
David MannandClaude Opus 5.5 8f8d03b771 Crop shield: one unfeathered mesh, no seam between its pieces
`paint_outside` filled each convex piece of the area outside the frame on its own, feathered on all
its edges, so along an edge two pieces share both faded out and the translucent shield left a thin
strip less covered than the rest: a light line from the frame's corner to the window's edge. The
pieces are now one mesh without feathering (`Draw::data_fill_tiled`), whose triangles meet with no
gap and no overlap. Crop and Perspective Crop both paint through it.

Fixes storytold/photocraft#16410.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:46:51 +01:00
David MannandClaude Opus 5.5 4d059df7ce Crop: a move of an upright document crop may take the frame past its bounds
An edge or corner drag of a document crop already goes past the canvas (photocraft#16043); a move
of the frame (Classic Mode) or of the image under it (image mode) still stopped at the canvas
edge, so a crop could not take in the area past it by a move. In the reference application it
does. A move of an upright document crop now goes past the bounds too; a turned frame's move, turns,
drawn frames, nudges and a placed picture's crop keep their limits.

Fixes storytold/photocraft#16404.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:38:14 +01:00
David MannandClaude Opus 5.5 7536627202 Navigator: a view box drag follows every pointer move over a settling canvas
The canvas settles the view a drag proposes to whole device pixels, so the view the app writes
back differs from the Navigator preview's proposal by a fraction of a pixel. The preview used the
default `same_value` (exact equality), so the host-change check ended its drag after the first
move and the canvas only caught up on the release. It now compares with the tolerance the canvas
scroll bars use (photocraft#16006), shared as `settled_as_proposed`.

Fixes storytold/photocraft#16403.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:38:14 +01:00
Martin Ball 9906b2b9da Merge pull request #2983 from batistalucasv/fix/canvas-scrollbar-thickness-margin
ui-canvas: restore comfortable vertical scrollbar thickness and right edge margin
2026-11-22 12:06:23 +00:00
bflatastic 301120c9e4 ui-canvas tests: the outline trial runs at a zoom the canvas does not pixel-align, so its fractional pan reaches the outline 2026-11-22 18:26:44 +07:00
bflatastic 2d51905115 ui-canvas tests: the grid order trial leaves out the empty shapes a paint slot leaves behind 2026-11-22 18:26:42 +07:00
David Mann e953d47a37 Merge pull request #2978 from davidmann4/fix/16328-held-thumb-release
Canvas scroll bars: a thumb's pressed extent belongs to its press (photocraft#16328, photocraft#16329)
2026-11-22 12:09:32 +01: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
batistalucasv 7c11091487 ui-canvas, pages: allow Canvas and PageView editors to report inactive edits (#2966) 2026-11-21 22:20:32 -05:00
batistalucasv ed9beb494f ui-canvas: restore comfortable vertical scrollbar thickness and right edge margin 2026-11-21 23:08:20 -03:00