CanvasSpace::with_wheel takes only the share again, as before the claim
token; the canvas attaches the token through a crate-private method, so
a space built with with_wheel carries no token and cannot claim.
craft_ui::runtime::wheel::mark_modal also marks a gesture that `id`
received a share of in this pass, for example the horizontal share of a
diagonal gesture that a nested scroller owns. Claims stay with the
gesture's owner.
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.
CanvasSpace keeps a ClaimToken with its wheel share, and claim_wheel
passes it to craft_ui::runtime::wheel::claim, which refuses a token
other than that of the share it would claim. A CanvasSpace kept from
an earlier pass, or from a viewport that was closed and opened again
under the same id, can no longer claim a later share. Tokens never
repeat in the process.
TouchpadGlide::stop also clears the lift samples, so the next swipe
cannot glide on the motion of a claimed swipe whose device end the
canvas did not read.
`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