Commit Graph
8503 Commits
Author SHA1 Message Date
dotCooCoo dc2e7e8a54 Merge main into feat/craft-testkit-guards 2026-11-25 15:09:52 -08:00
Elvis33LE 2b7d18f1fb deps: migrate craft-image-codecs to jpeg-encoder 0.7.1 2026-11-25 22:35:17 +01:00
aiongg 93c2e08256 Merge pull request #3568 from aiongg/next-sync-1125b
Merge main into next: font-store Windows copies (#3467)
2026-11-25 15:06:45 -05:00
aiongg 6a53eb858d Merge pull request #3561 from aiongg/update-local-mirror
update: local-mirror, the feature that accepts a developer's loopback update server
2026-11-25 14:51:39 -05:00
aiongg 5a88f53924 Merge pull request #3563 from aiongg/float-popup-focus
Floating windows: a modal takes the keyboard from a window it blocks, menus in popup windows keep their state; egui b9770908e
2026-11-25 14:45:46 -05:00
aiongg 4d89973576 Merge main into next (font-store: Windows copies, #3467) 2026-11-25 19:44:12 +00:00
aiongg ccb5e70367 Merge pull request #3562 from aiongg/unreached-read-only-contract
CI: unreached-rs skips craft-pdf's read-only contract; compact is a derived prop
2026-11-25 14:28:51 -05:00
aiongg 0393de7e1c Merge the workspace lint fix (#3562) 2026-11-25 19:25:56 +00:00
aiongg 6a78a88ace Window trials: the settle loop runs its frames one by one (clippy) 2026-11-25 19:21:48 +00:00
Martin Ball 3b833ae55d Merge pull request #3549 from batistalucasv/fix/3548-preserve-frame-input
ui-test-kit: preserve FrameInput installed before Windows::frame_with_files
2026-11-25 19:21:28 +00:00
aiongg 8fa4db64a9 egui: the fork's head, b9770908e (a dropdown whose text is cut off shows it in a tooltip) 2026-11-25 19:11:46 +00:00
aiongg 444ba59795 A layer in a popup window remembers what it opened with
A layer opened in a palette window shows in a popup window of its own. Its host asked in the opener's viewport whether the layer appears in this pass, and only the popup's pass recorded that it had, so the layer appeared in every pass and forgot everything in between. The arrow keys never left a menu's first row, a menu hung at the pointer jumped while the pointer was over it, and a scrolled flyout went back to its top. The host now records the appearance in the opener's viewport too (`overlay::note_appeared`, split out of `begin_layer`), so both viewports agree.

With its memory kept, such a layer takes the two rules an in-window layer has: a right-click on its context opener hangs it at the new pointer (`recall_shown`, shared by both hosts), and the press that opened it from another window does not close it when the opener runs a second pass of the opening frame.

The window kit's `send` gives events to one child window, such as a popup's.
2026-11-25 19:11:46 +00:00
aiongg 2cc39c2c4e A modal that opens while a window it blocks has the keyboard takes it
A blocked window drops the keys, so a modal opened from a focused float by a key or a command (a save prompt in the main window) got none of them until the user clicked. The modal's window now gets one focus request 0.2 s after it becomes the app's modal, if a window it blocks still has the focus; an OS dialog that opens with the modal takes the focus in that time, and then nothing is sent. The modal's own popup windows keep the keyboard. It covers framework modals and FrameInput::app_modal alike (the docking of the former crate::ui did it for its floats, #306).
2026-11-25 19:11:46 +00:00
aiongg f94b37942b FontPicker and ComboBox: compact is a prop, so its setter is derived 2026-11-25 19:04:54 +00:00
aiongg 6801f1f9b5 A window's records survive the frame that opens it: closed viewports' records go as a frame begins
Every pass's end hook dropped the per-viewport records of viewports its input did not list. That list dates from the
frame's start, so the root's end hook dropped the records of a window the frame had opened. A palette that opened
hidden under an open menu lost the note that it was hidden, and stayed hidden once the menu was gone: Float in a docked
tab's menu left no window to see when the opening frame ran a second pass. The root's begin hook now drops the records
of closed viewports in a frame's first pass, where the list names every window opened before.
2026-11-25 18:16:05 +00:00
batistalucasv c13ec14cf3 ui-test-kit: preserve FrameInput installed before Windows::frame_with_files 2026-11-25 15:13:25 -03:00
aiongg 6e308319c0 update: local-mirror, the feature that accepts a developer's loopback mirror
ArtCraft Launcher's development builds install from a mirror on this computer (its `local-mirror` feature, `cargo xtask local serve`). With the feature, `check_download_link` accepts loopback links and `Http::new` leaves the agents for remote hosts off HTTPS-only.

Without it nothing changes: a build refuses a loopback download link and the remote agents refuse plain HTTP before they connect. `default`, `ui`, `screen-testing`, `suite` and `oci_migration` do not turn it on; the facade forwards it only as its own `update-local-mirror`, which no other facade feature turns on.
2026-11-25 17:06:02 +00:00
Lucas Batista Vargas c79d8d399d font-manager, ui-widgets: compact toolbar sizing for FontPicker and ComboBox (#3043) (#3053) 2026-11-25 16:30:45 +00:00
Lucas Batista Vargas 2edd5edbad font-manager: restore Plain FontPicker text click vs chevron parity (#3102) (#3103) 2026-11-25 16:21:42 +00:00
aiongg 2fc960dc4d Merge pull request #3454 from storytold/lightcraft-pr/fw-measure-run-boundary
Runtime: what an app measures in measure::run joins no body's kept transcript
2026-11-25 11:20:39 -05:00
Lucas Batista Vargas 85d24943f5 ui-widgets: allow card Tile to render paper surface and large icon (#3041) (#3047) 2026-11-25 16:19:38 +00:00
aiongg d0254a0996 Merge pull request #3533 from aiongg/ports-combined
Ports: a click keeps the canvas focused, Escape from floats, rail drags dock
2026-11-25 11:15:43 -05:00
aiongg c3ff1715cb Merge pull request #3216 from storytold/design-port/pr-docking-rails
Docking and rails options
2026-11-25 11:05:51 -05:00
aiongg 5600618795 Merge pull request #3445 from storytold/lightcraft-pr/fw-disclosure-name
Lists: a row's disclosure triangle is named after the row's accessible name
2026-11-25 11:00:11 -05:00
aiongg 1277d4b157 Merge pull request #3213 from storytold/design-port/pr-menus-popups
Menus and popups: keyboard opening and safer activation
2026-11-25 10:54:28 -05:00
Martin Ball 67f5569082 Merge pull request #3139 from storytold/fix/picture-no-checker
ui-widgets: a rendered picture can skip its transparency checkerboard (wordcraft#7317 C3-3)
2026-11-25 15:48:16 +00:00
aiongg aa401985dd Merge commit 'ea2211729e' into ports-combined 2026-11-25 15:43:03 +00:00
aiongg ea2211729e The waiting window's repaint is a docking::native function 2026-11-25 15:42:39 +00:00
aiongg 41519eaae5 Merge commit 'f15b0e87d2' into ports-combined 2026-11-25 15:34:57 +00:00
aiongg e9543a634d Merge commit 'd6aed656f2' into ports-combined 2026-11-25 15:34:56 +00:00
aiongg f3f0e69fde Merge pull request #3505 from aiongg/app-stop-focus
The app's own widgets: focus follows egui's rule, and a canvas that can't take focus is a finding
2026-11-25 10:16:44 -05:00
aiongg 0826c445e2 Merge pull request #3508 from aiongg/next-sync-1125
Merge storytold main into next (25 Nov sync)
2026-11-25 10:15:35 -05:00
aiongg fd7f86446f A floating window that takes over a held press opens its OS window once the press ends
The OS gives an OS window no press that went down in another window, so DockArea::continue_move had no effect
on a window the dock opens as one. The window shows in the app window while the press moves it: it follows the
pointer, marks where it would land and docks on release, as a tab drag does.
2026-11-25 15:13:06 +00:00
skylartaylor ce5ac08074 Merge origin/next 2026-11-25 16:05:40 +01:00
skylartaylor c7fc2598af Merge origin/next 2026-11-25 16:05:40 +01:00
aiongg f15b0e87d2 An Escape nothing in a floated dock window takes is the dock window's Cancel
A dock panel's OS window gets its keys alone, so an Escape pressed there with
nothing focused became that window's Cancel, which no app code reads: a command
started from a floated palette could not be cancelled. The end hook hands a Cancel
left in such a window (`WindowSpec::hands_on_cancel`) to the window it was opened
from, which reads it as its own in its next pass. A popup or a modal open in the
floated window keeps the Escape, and a modal that opened meanwhile drops it.
2026-11-25 14:57:40 +00:00
Martin Ball 75efcf65c6 Merge remote-tracking branch 'origin/next' into fix/picture-no-checker 2026-11-25 14:46:01 +00:00
aiongg d6aed656f2 A press nothing takes leaves the app's document canvas focused
An unclaimed press surrendered the focus of a canvas declared with
host_canvas at the press (apply_press), and egui's click-away rule took
a focus the app itself had given the canvas at the release. The press
rule now keeps a declared canvas focused, and the begin hook takes the
focus on it off egui's rule, whoever gave it. A canvas the app no longer
declares follows egui's rule again.
2026-11-25 14:37:41 +00:00
skylartaylor 82a4dd93af Dividers: the column bar and margin handles take key focus on a press again
Splitter dividers keep key focus where it was on a press, but the pages column
bar and margin handles share the same declare and lost press focus with it, so
a click on a column bar divider no longer let the arrow keys step it (the
pages setup trial an_arrow_moves_the_focused_divider_one_step_and_shift_ten
failed). divider::declare_focusing declares a divider whose press takes focus,
as next's declare did, and the two value controls use it.
2026-11-25 15:21:19 +01:00
skylartaylor b003bd172a Merge origin/next into design-port/pr-docking-rails
One conflict, in docs/ui-docking.md: next added bullets for tab presses keeping
key focus and for floating windows stacking with app windows next to our
split-handle bullet. Kept our split-handle sentence (a pointer press or drag on
a handle leaves key focus) and next's two new bullets after it.

The Rust files merged cleanly. next still has dividers that take focus on a
press, the flyout room limited to the space below its top, and no RailTool
icon, so none of this branch's changes is covered by next.
2026-11-25 15:21:14 +01:00
skylartaylor 9a7c2255a2 Merge remote-tracking branch 'origin/next' into design-port/pr-menus-popups 2026-11-25 15:19:07 +01:00
aiongg 6f7a1f8dad font-store: doc links to InstalledFamily 2026-11-25 13:53:25 +00:00
aiongg d1bdf8e5da host_canvas: sizing passes report nothing, and declaring a focused canvas enters nothing
A canvas widget in an invisible Ui, which egui disables, is not reported as disabled
(WidgetRect::visible). A declaration that takes over a focused canvas's automatic stop
applies its key filter alone (nav::focus_act): the opener of the layer around it and the
recorded arrival stay.
2026-11-25 13:41:08 +00:00
aiongg fda1a0c15d Merge storytold next into app-stop-focus 2026-11-25 13:32:10 +00:00
aiongg 324d9f84cc cloud-ui menu: next's split button (the font panel's split button is SplitButton) 2026-11-25 13:28:36 +00:00
aiongg c136195d93 Merge remote-tracking branch 'upstream/next' into next-sync-1125 2026-11-25 13:28:36 +00:00
aiongg 29446205c1 SplitButton: SplitOutput::activated tells the action from the arrow's click; the arrow fires no bound command
A root's response reports the clicks on its parts too, so outside an arena a click on the arrow read as a click on
the main part and fired the bound command. The font manager's install buttons read the new signal.
2026-11-25 13:27:10 +00:00
aiongg 0f8d8365e2 Focus given to the app's own widgets: held presses, stale records, canvases
The runtime keeps its surrender rule on the focus it gave an app's own widget
until no pointer button is down, so the release of the press that gave the
focus does not take it back. The record of the given focus ends once egui's
focus is elsewhere. Whether a widget is drawn is read from egui's widgets of
the running pass, for the given focus and for `host_canvas` findings alike.
Focus given to a canvas before `host_canvas` registers it follows the canvas's
keys.

A canvas drawn in a disabled `Ui` is a `canvas-without-widget` finding too;
the finding's text is made only when it is kept, and a fault is logged once.
2026-11-25 13:24:55 +00:00
David Mann eb7208ffad Merge remote-tracking branch 'origin/next' into fix/photocraft-16905-own-window-moves 2026-11-25 14:24:32 +01:00
aiongg 051c45335c Merge host-canvas-finding into app-stop-focus 2026-11-25 13:19:30 +00:00