* theme: dark-mode accent buttons show a visible hover (wordcraft#7317 C7-14)
accent.strong_hover/pressed offset the rest fill by the ramp distance from accent.solid to
accent.hover/pressed. A light dark-mode seed leaves those ramp steps 0.01 OKLCH-L apart, so the
hover was invisible; and a fill near white or black clamped. The offset now has a floor
(hover 0.06, pressed 0.10) and flips toward the text when there is no room away from it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE
* theme: explain names the shift's floor and flip
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE
* wordcraft#7317 C7-14: test that explaining the dark accent hover names its base and its lightness floor
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The dev-dependency rule covered egui alone; epaint_default_fonts slipped past
it. It now checks the egui crates every framework crate builds on (egui, epaint,
epaint_default_fonts, emath, ecolor): a feature a dev-dependency line asks of one
must also be asked by a normal line, feature-root's included.
craft-ui-contract's tests ask for them as a dev-dependency (their font oracle),
which gave cl test ui-contract its own epaint_default_fonts and so its own
egui and framework build. The feature only adds two byte constants; egui's emoji
fallback is epaint's own feature and stays off.
Since #2363, craft-ui-contract's testing no longer carries snapshot and the
framework crates have a suite feature. Every cl command still resolves one
framework feature set (feature-root brings the gallery's craft-ui suite), so the
three doctor reports were out of date, not second builds:
- drop the pin on craft-ui-contract's testing including snapshot: each framework
crate's suite forwards to the runtime's suite, which cl picks first
- the gallery's must-be-optional rule covers domain crates, not the framework
- the story renderer's lines are compared with the features the gallery's lines
turn on, implied features included (suite implies testing)
CL_DRY_RUN with cl render no longer runs the renderer after printing the command.
* Font samples sit on one baseline in a fixed band, shrunk only where their ink would leave it
A font sample was as high as its face's line (ascent, descent and line gap, the gap
below the baseline as egui lays it out) and centred in its rect, so faces with a taller
or bottom-heavy line sat higher in the picker's rows, and a face whose line was taller
than the banner's band was centred past its edge and clipped.
One rule, faces::sample_line, now serves FontSample and the picker's banner: the sample
fills a fixed band, sits on the baseline of the interface face's line at its size
centred in the band, and is laid out at its size unless its ink (the galley's mesh
bounds) would cross the band's top or bottom, then at the largest size whose ink fits.
FontSample takes its band as an option; the picker's rows set it to the thumbnail side,
as the banner's band is the large thumbnail side, and the panels keep LINE_EM of the
sample's size.
Trials: rows follow a host text that arrives after the list opened, in a CJK face; and
samples in faces with different lines sit on one baseline with their ink inside their
bands, rows and banner. Story font_picker_cjk_sample_text over the repository's Noto
Sans CJK SC subset.
* font-manager: declare the CJK test font its picker trials and story read
* font-manager: FontSample::band as a derived prop
* Swatch: the image well's mesh takes the shared UNTINTED vertex colour
* font-catalog: app start helper, font store watch and the list of changed families
app::start sets the app's folders, scans on a background thread and polls the
font store's folders, so a family the launcher installs shows at once.
app::on_activated rescans on window activation. Catalog::changes_since names
the families added, removed and changed since a generation, and
Catalog::store_changed checks only the store's folders.
* font-manager: a click on a font row's sample picks its family
* font-manager: a press on a row keeps the list the typed name filtered
* Font picker: a row pick of the family the field already holds adds no edit
* font-catalog: a rescan that finds no changed file keeps the generation
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.
- The load queue is made once per context, as TextureLoader's is: without a
host, default_jobs() returned a new Arc each call, so every new face made a
new queue and dropped the loads before it.
- The begin-pass step marks a face unavailable when its load is neither
queued nor running and delivered no result (a job that panicked), so the
row stops asking for passes.
- A kept face's draw mark is journaled, so a settled view's replay marks the
faces its run drew and eviction keeps them while on screen.
- One budget over the files the registry keeps plus the files egui still
holds for faces taken out. Past it, the faces drawn longest ago go down to
half the budget and egui's fonts are made again once. The budget is a
registry field; trials set it with testing::document_face_budget.
- FacesCx::document_face takes a closure that makes the load, called only
for a new key, so a ready face clones no FaceInfo or catalog.
- Similar fonts weigh a family by its file's raw usWeightClass again
(FaceInfo::weight_class, None without OS/2; 400 then), not the scan's
weight. The review point that families without OS/2 data now join Similar
fonts was checked: the old read_traits listed them too, with zero PANOSE
and weight 400, so they stay.
Opening the font list read and parsed every visible row's font file on the UI
thread, re-read a collection for each family it holds, rebuilt egui's whole
font set for each face added, and dropped off-screen faces after 64, so
scrolling back loaded them again.
- Document faces reach egui through one served-faces provider: egui parses a
face the first time text is laid out in it, so a face arriving keeps the
parsed faces, the atlas and the galley caches. Faces over the interface
fonts use the same provider; edit_faces' add path and
MAX_INTERFACE_FACE_BYTES go.
- Catalog faces load as jobs on a per-context JobQueue (the host's jobs) and
are ready from the pass after they land; loads no frame asks for are
dropped. Faces whose bytes the app holds register in the same pass.
- The registry keeps faces up to MAX_DOCUMENT_FACE_BYTES (512 MiB of distinct
file bytes), least recently drawn out first; past the same budget of
withdrawn files egui's fonts are made again to free them.
- The picker's coverage check reads the registry's loaded bytes instead of
the file; traits come from FaceInfo, which the scan now fills with
sFamilyClass, PANOSE and the post fixed-pitch flag.
- Catalog::file_bytes shares one read per file across threads.
The rail grip takes the press that started its drag from GroupGrip's own
press (GroupGripOutput::drag_origin) instead of reading egui's pointer
state. The grip trials compare with GRIP_ABOVE and the theme's grip
shape instead of literal sizes. crates/craft/Cargo.toml [features] is
regenerated from the member manifests (exr, media-source and tiff
features from main; android-res in order).
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.
MixerValues::load_color becomes current_load: MixerLoad (Clean, Color,
Image). The load swatch shows the sampled tip image after an Alt-click and
a checkerboard for a clean brush, through Swatch's fills. MixerValues is no
longer Copy.
Restores storytold/photocraft#11953.
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>
SwatchShape::Round joins Square and Hexagon, and SwatchFill names what fills
the well: a colour, a before/after split, the hue wheel, a picture (through
the texture cache, keyed by the picture's hash) or an empty well.
Swatch::with_fill shows any fill beside Swatch::new, which is unchanged.
A component can now shape its own focus ring with Cx::focus_shape, the
FocusShape parts already use. Swatch sets it for round wells (a circle) and
for hexagon wells (the hexagon), so hexagon swatches get their shaped ring
too.
pdf (cos, crypt, filters, font_tables), cms (gpu_matrix_shaper) and prepress (marks, flatten_timings) had no mod line in tests/main.rs, so they never compiled. Module paths inside the one executable are adjusted (crate:: to super::, the child-process test name).