harness_clip's wait read app.views[0] on its first check. An encrypted document opens in the
background after setup submits its password, so on a slow or busy machine the view did not
exist yet and the closure panicked with an index out of bounds instead of waiting.
After main was merged in, notices() takes eight arguments and clippy's
too_many_arguments fails the gate. AGENTS.md asks to fix the code a lint reports
rather than silence it, so the four booleans that decide which notices show
(form-field reminder, secured, repaired, lock offer) now travel as NoticeFlags.
Behaviour is unchanged.
Also use assert!(!..) in the form reminder test, which the newer clippy flags
(bool_assert_comparison); the assertion is the same.
Clippy runs on Linux in cargo xtask ci, and its lints don't differ by platform.
Debug info for every dependency made a cold-cache Windows gate spend its 90
minutes compiling (run 46775764634), so cargo test never started.
Closes#9032
* Bring back PdfCraft's v0.22.0 control shapes and sizes over the framework set
The craft framework port (#8160) took the framework's Comfortable sizes, so buttons became
pills, windows got 12-point corners, button labels shrank to 12.5 points, small text grew to
11.5 points and controls in a bar moved 10 points apart. Before the port, PdfCraft's theme.rs
drew 6-point button corners, 10-point window corners, 13-point button text, 11-point small text
and 8 points between controls. The app's size overrides now set those values again.
Colours already match: the Graphite theme pins PdfCraft's former palette.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Stand the mode bar 48 points tall again, as before the framework port
Before the port (#8160), PdfCraft's mode bar was a 48-point panel. The shell's top slot now takes the
framework's options-bar height, 42 points. The app's size overrides set `size.bar.options` to 48. Only
the shell's top slot reads this size, and PdfCraft's only top slot is the mode bar.
Not changed here: the old accent underline under the active mode. The framework's text tabs draw a
text-colour underline and expose no token for it, so that needs a craft-libs option.
Duplicate search (01/12/2026): open PRs on mode bar and toolbar (#6104, #4562, #8677, #8854, #8823,
#6451), hotfix tracker #8910 and epic #8945, and `main` since #8160 in `app.rs` and `chrome/`. None
sets the bar height.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Keep the v0.22.0 size overrides to the Comfortable set
The overrides sat in the set for every density, so Compact would also get a 48-point mode bar and 10-point window corners. They now sit in the Comfortable section only. Density is fixed to Comfortable today, so nothing changes on screen.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Keep the framework's mode bar height
The 48-point mode bar pushed the page lower, so less of it fits in the
window. Keep the framework's 42 points.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Test the notice's wrapped case at 1550 wide
Buttons with 6-point corners are narrower than pills, so at 1600 wide the
security notice's message now fits on one line. At 1550 it wraps beside
the buttons, which is the case the test checks.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
The frame hook asked the window policy for the title bar on every frame.
The policy reads the platform: on Linux it opens a new Wayland connection
and does a registry round trip, reads the GTK and KDE settings files, and
on GNOME starts a gsettings process. Its own doc says to read it once.
The hook now hands the choice to the window host only when it differs
from the one last applied. Preferences records the choice it applies, so
a change there is not applied twice.
Co-authored-by: Claude Opus 5.5 <[email protected]>
The id was a hash of the settings alone, so a header and footer removed and
then added again with the same settings got the old id, and an update with a
selection made before the removal changed the new one. Each header and footer
now gets a serial when first seen, never given twice, which it loses once a
tool call ends without it; the id hashes settings and serial (#5785).
doc_header_footers gives each header and footer an id: a hash of its recorded settings, keyed per run, which is how the engine knows it too. doc_header_footer's update takes that id, so a selection made before the list changed still reaches its own header and footer, and one changed or removed since is refused instead of applied to another (#5785).