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
Wheel gains claimed, claimed_gathered, claimed_zoom_gathered and
claimed_spent. CanvasSpace::claim_wheel claims the pass's share of the
gesture the canvas owns and records the motion the body used up; the
gesture's later shares carry the claim and count only the shares the
body claimed, so a body that turns a gesture into steps keeps no state
of its own. A second claim in the same pass replaces the first, and a
claim outside a running pass, of a gesture another taker owns, or with
a non-finite spent value is refused. claim_wheel returns whether the
claim was taken.
The canvas does not move its view by a claimed gesture: it skips the
navigation of claimed shares and drops the eased wheel, the eased wheel
zoom, the touchpad glide and any partial zoom notch the gesture still
owed, also in passes without a share and after a device end.
CanvasSpace::mark_wheel_modal marks the running gesture as gone on
under one of the app's own modal windows, so its later shares carry
Wheel::modal until it ends. Synthesized end shares carry the claims of
the gesture they end, and a gesture the split hands to another owner
starts its claims again.