Conflicts:
- ui-contract items/hooks.rs: rest_lead takes no placement here; main's
lead focus ring block is kept as main wrote it.
- ui-panels docking/mod.rs: main's FocusLook import kept; the memory::sub
import goes, since the dock no longer keeps pass frames in memory.
Follow-ups of the merge:
- MeasureCx::in_row (main) reads row_alone_room from the component's
scope env, as column_room does here.
- The split-handle focus ring trial (main) passes SplitArea's revision.
Every slot and the full-window page take a version function of the app
state, read at the slot's turn in the pass. While it holds and no input
reaches the slot, the slot's chrome pane and its content replay their
last run; None runs the slot in every pass. The body runs every pass.
The MemoProps derive leaves a type parameter that only covered_by fields
name unbound, so a view can hold the shell's &mut S. PaneEdge derives
MemoProps.
A menu title kept its held commands in a Vec, and commands::holds copied every command into a new Arc on
each run of the title. MenuTitle keeps an Arc<[CommandRef]> and holds() shares it. Facts::of_last_pass
cloned last pass's facts for every read; Facts::with_last_pass lends them to the reader instead, so the
menu bar's is_open and is_focused answer without a copy.
runtime::motion::now returns a web_time Instant, which is not std's on wasm,
so the menu macOS and WASM lint job failed to compile mac.rs. The AppKit
rebuild retry is a native timer outside any pass, so it keeps Instant::now
with a contract/motion marker and its entry in
design/exceptions/craft-menu/crate.toml.
- craft-draw: the Bezier overlay's read counter is a test-only module the lint
recognises (cfg(test) and the screen-testing feature as two attributes). It
stays per thread, so parallel trials do not add to each other's counts.
- craft-menu: the macOS menu retry reads the runtime's motion clock and asks
for its repaint through runtime::frame.
- craft-ui-panels: Prompt's layer_role setter is derived (#[prop]).
craft-design-lint's workspace test fails on next with four findings in code
that landed before the lint became a hard test:
- draw (#3534): the Bezier overlay's read counter is a thread_local in a module
gated cfg(all(test, feature)); the global-state rule skips cfg(test) modules
only, so the gate is split into #[cfg(test)] and #[cfg(feature)], which
compiles the same code.
- menu (#3541): the macOS menu rebuild retry reads the runtime's clock
(runtime::motion::now) and asks for its frame through
runtime::frame::request_repaint_after instead of Instant::now and
Context::request_repaint_after.
- ui-panels (#3431): Prompt::layer_role was a hand-written setter; the field is
now #[prop(vis = "pub(super)")].
A translucent accent.soft over an accent.solid fill read as a solid block, and text.normal on accent.soft has no
guaranteed contrast. The fill is now the whole tile and the edge a thin stroke inside it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tab strips in the Keyboard Shortcuts dialog used their id salts as
names, so a screen reader announced the area tabs as "shortcuts.area"
and the app's page tabs as "shortcuts.tab". The area tabs are now named
with the Show select's translated label, and the page tabs with the
dialog's title. The id salts are unchanged.
When AppKit could not rebuild the menu bar, the old menus stayed up but
nothing tried the rebuild again: NativeBar::apply returned false for a
failed rebuild and for an update in place alike, and the driver had
already recorded the new menus as synced.
- craft-window: NativeBar::failed reports a rebuild that failed.
- craft-menu: RebuildRetry tries menus whose build failed once more
REBUILD_RETRY (one second) after the failure; when that fails too,
they are not built again until they change.
- The macOS backend keeps the menus pending after a failed rebuild and
asks egui for a repaint when the retry is due, asking again on each
frame before then.
Carries the fix from storytold/vectorcraft#9056.
Several themes pin accent.border translucent so it reads on a control's own fill (Adwaita, Breeze, Soft,
Studio, Solarized Dark). The current tile has no fill now, so that outline sat at 1.6 to 2.6:1 on the ribbon,
under the 3:1 a state mark needs. accent.solid is what the other selection outlines take (table cells,
graph nodes, timeline clips). Also drops the tile style's stale note about a selection fill.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Styles gallery's up, down and more buttons are icon buttons, and in a ribbon an icon-only button's glyph takes
the ribbon's small icon side (17), which made the arrows far larger than the old ribbon's. A new
GlyphRole::Compact shows the glyph at size.icon.glyph_sm whatever the control size and skips that ribbon side;
the gallery sets it on its three buttons, and on the one it measures. Other icon buttons are unchanged.
Reference: storytold/wordcraft#7679.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The current tile of a gallery was a state.selected fill inside a line.control_edge edge, which on the Styles
gallery read as a grey tile. It is now a thin outline in accent.border, the colour a selected icon button's
outline takes, and the tile keeps its own background. The outline is still a shape, so the current tile
is not marked by colour alone. Reference: storytold/wordcraft#7678.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
An editable Keyboard Shortcuts dialog sizes from its content, so with a
large catalog the table takes the whole window and the dialog covers
it. The app had no way to choose another size.
- `Options::size`: the dialog opens at this size, in points, until the
user resizes it. A size that is not finite is ignored.
- Without it, an editable dialog opens as before and a read-only one
keeps its moderate fixed size.
Show always listed All Commands, each menu, Tools, each panel and Other
before the app's own `Options::areas`. An app that gives Tools and Menu
Commands as its only entries got them at the end of a long strip, with
a second Tools entry, and the dialog opened on All Commands.
- `Options::own_areas`: Show lists only the app's own entries (and
Fixed Keys), and the dialog opens on the first of them, or on the one
that lists the command selected before it opened.
- Go to Conflict and Accept and Go to Conflict show the holder under the
first entry that lists it when Show has no All Commands.
- The option is off by default, and a dialog without it is unchanged.
- 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.
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>
Story trials have no host, so document-face and texture loads ran on default_jobs' threads and a fixture
could settle before a face landed (StyleList::variants on Windows: rtl 52.0 vs 52.8, motion shapes change
after the drive). InstallSpec::jobs sets where a context's background work runs while no host is installed;
Env::jobs_of (host, else installed, else default_jobs) replaces the two copies in the face registry and the
texture loader. testing::install_spec and the suite's language hosts use InlineJobs, so a load asked for in
one pass lands in the next on every machine; the two per-story InlineJobs options go.
menu: upstream's memoised bar and English names in the model, with the port's icons/compact
options and disabled submenus. behavior: press keeps both the pointer-left and pass-drag
states; KeyRole gains PartialEq/Eq. automation: agents deps via craft-control, screenshot
params with region, document points with a page. font picker: upstream's column list, kinds,
actions and missing note, with the port's host groups, current host row and mixed label.
theme: wordcraft and pdfcraft app palettes. Cargo.lock: port side; vendor jbig2: upstream.
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.