Cargo warned that craft-theme is an unused dependency of craft-platform
(crates/platform/Cargo.toml:36) when the `appearance` feature is off. The
crate uses it in two places: the `From<appearance::Reading>` impl for
`craft_theme::SystemAppearance`, compiled only with `appearance`, and the
browser eyedropper in `screen`, which used `Srgba::from_hex` on the
EyeDropper's `sRGBHex` answer.
- craft-theme is optional, and `appearance` enables it.
- The eyedropper reads the `#rrggbb` answer with `eyedropper_color` in
screen.rs, so `screen` does not need craft-theme. Any other text is
still reported as an invalid color.
- README: the `SystemAppearance` conversion is listed under `appearance`
instead of "always".
Cargo.lock does not change.
`cargo test -p craft-platform --lib` failed one of the two `logs::crash`
tests on most runs. The panic hook and the last-panic slot are
process-wide, and `cargo test` runs the binary's tests on parallel
threads, so the panic in `logs_tests::a_poisoned_sink_still_logs`
(`poison the sink`) replaced the trial's own panic in `take_last`.
Each crash test now runs its body in a child process of the test binary
that runs only that test (`--exact`), and fails when the child fails or
did not run it. The serial lock between the two tests is removed.
ThumbSize::Custom(ThumbPoints) sets a list row's height in whole points.
The row's square thumbnail is the row less the thumbnail padding, and
the row is never shorter than its label's line. ThumbPoints clamps a
value to 12..=100 when it is made and when a saved setting is read. A
picture or tile of this size is that many points on a side. The named
sizes keep their rows. ThumbSize::label names it "Custom".
LayersOptions::thumbnail_size takes the custom size, and the Layers
panel's rows draw at it. The options dialog still offers the named
sizes only and keeps a custom size while none of them is picked.
A caster whose plane passes through the light covers no shadow texels, but
when a position difference overflows f32 its clipped corners can come apart
and write depths. light_poly now drops such a caster before clipping, after
the cheap check for a caster wholly behind the near plane. The test is exact:
an error-bounded f64 determinant settles most casters, and the rest take an
expansion sum of exact two-product parts, so a caster whose rounded
determinant is zero is kept in every corner order.
The clipping fixtures that were themselves edge-on now move one corner off
the plane through the light and keep their original crossings.
core-graphics2 0.6.1, its latest release, depends on block 0.1.6, which
the compiler reports as code that a future version of Rust will reject.
The `screen` feature now takes Core Graphics from objc2-core-graphics
0.3, the objc2 family craft-platform already uses, and block and
core-graphics2 leave Cargo.lock.
The two calls that need `unsafe` (the active display list and an
image's pixel bytes) are in a new craft-appkit module, `display`, with
tests. The capture makes the same Core Graphics calls and checks as
before.
* silhouette-studio: read which group each object belongs to
* Restore main fill colour reader during Studio merge
* Name the resolved group membership structure
When a caster edge crosses a perspective light's near plane and an x or y
difference between its corners overflows `f32`, `light_poly` interpolated
that component in `f64` but with the `f32` fraction, and the other components
with the `f32` arithmetic. The crossing moved off the edge: about 1.4e31 off
for corners at x = -3e38 and 3e38, and a caster that projects to a line could
write shadow texels.
Such a crossing now takes one `f64` fraction from the original depths for both
position components and both texture coordinates. When the position
differences stay finite, each component whose own difference overflows is
still interpolated in `f64` with the `f32` fraction, as before.
Split from #2950.
Under a negative scale the fixtures scaled each glyph's UV offset and
size by the signed scale, so the point-space UV rect came out inverted
with a negative size. The offset is now taken from the reordered
corners and the size is nonnegative; the atlas coordinates stay as they
are. The negative-parent rejection test now places both member scales
so the composed box overlaps the clip and checks that nothing reported
touches that overlap.