Commit Graph
12837 Commits
Author SHA1 Message Date
BFlat 19805ced1e Merge pull request #2619 from dotCooCoo/fix/hayro-softmask-self-draw
hayro-interpret: a tiling pattern or Type 3 glyph set outside a form draws that form
2026-11-30 10:15:22 +07:00
BFlat e706a71a01 Merge pull request #4373 from dotCooCoo/feat/wheel-gesture-claims
ui: a canvas body can claim a wheel gesture and mark it modal
2026-11-30 10:15:16 +07:00
BFlat 6f72e45286 Merge pull request #4362 from dotCooCoo/fix/raster3d-opacity-below-one
craft-raster3d: a material with an opacity below 1 is transparent
2026-11-30 09:59:16 +07:00
BFlat 548ba59ecc Merge pull request #4372 from dotCooCoo/fix/raster3d-shadow-casters
craft-raster3d: shadow casters clipped at the near plane take one f64 fraction when a position difference overflows
2026-11-30 09:59:09 +07:00
BFlat 5f1ef7f524 Merge pull request #4353 from dotCooCoo/fix/raster3d-resolve-large-blocks
craft-raster3d: average resolve blocks of more than 256 subsamples in f64
2026-11-30 09:59:03 +07:00
BFlat 2307a20979 Merge pull request #3992 from dotCooCoo/fix/image-codecs-xmp-scan-count
image-codecs: the XMP decoy check reads the result instead of the time
2026-11-30 09:58:56 +07:00
BFlat ccbad84ba9 Merge pull request #4380 from dotCooCoo/feat/thumb-size-points
ui-widgets list rows: ThumbSize::Custom, a row height in whole points from 12 to 100
2026-11-30 09:58:49 +07:00
BFlat 6609acd253 Merge pull request #4277 from dotCooCoo/fix/fixture-paint-chunk-child-transform
ui-contract: test fixtures read a paint chunk's members through their own transform and clip
2026-11-30 09:58:43 +07:00
BFlat a22b5d7d81 Merge pull request #4366 from dotCooCoo/fix/color-picker-picked-swatch
color-ui: the Color Picker's OK names the swatch its color was picked from
2026-11-30 09:58:36 +07:00
BFlat 1ca1aee51e Merge pull request #4350 from dotCooCoo/fix/focus-leaves-closed-scope
ui-contract: a dialog the host removes gives up the keyboard in that pass
2026-11-30 09:58:29 +07:00
BFlat 5ed2179f88 Merge pull request #4354 from dotCooCoo/fix/overlay-newer-raise-on-top
overlay: a window raised after a carried raise comes in front of it
2026-11-30 09:58:22 +07:00
BFlat 9e01ebc239 Merge pull request #4359 from dotCooCoo/fix/memo-view-stack-gap
ui-contract: a memoized view's content keeps the flow start and gap of the Stack around it
2026-11-30 09:58:15 +07:00
BFlat c7748a86e9 Merge pull request #4381 from dotCooCoo/fix/platform-crash-test-sink
platform: the crash hook tests run in their own process
2026-11-30 09:58:08 +07:00
BFlat 0bd77c0f92 Merge pull request #4382 from dotCooCoo/fix/platform-unused-craft-theme
platform: craft-theme is an optional dependency of the appearance feature
2026-11-30 09:57:39 +07:00
BFlat 93072713a2 Merge pull request #4378 from dotCooCoo/fix/screen-objc2-core-graphics
platform: the macOS screen capture uses objc2-core-graphics in place of core-graphics2
2026-11-30 09:57:32 +07:00
BFlat cc830af9ea Merge pull request #4336 from dotCooCoo/fix/winit-alt-codes-pinch
ui-contract: an Alt code types its character once with winit 0dfcec0e
2026-11-30 09:57:26 +07:00
BFlat afd8ece65e Merge branch 'main' into feat/wheel-gesture-claims 2026-11-30 09:42:04 +07:00
BFlat 3df48918fd Merge branch 'main' into fix/hayro-softmask-self-draw 2026-11-30 09:41:51 +07:00
bflatastic 6c9315adb9 ui-canvas: name the glide trial's swipe sample as a documented const 2026-11-30 09:41:42 +07:00
bflatastic 7dd943f93a vendor/hayro-interpret: record the rustfmt'd hashes of pattern.rs and self_draw_tests.rs 2026-11-30 09:38:33 +07:00
BFlat 9240b69c5e Merge branch 'main' into fix/platform-unused-craft-theme 2026-11-30 09:27:41 +07:00
BFlat c1b1ca120a Merge branch 'main' into fix/screen-objc2-core-graphics 2026-11-30 09:27:38 +07:00
BFlat 8dfb7780fa Merge branch 'main' into fix/winit-alt-codes-pinch 2026-11-30 09:27:35 +07:00
BFlat f6aeb6b154 Merge pull request #4344 from dotCooCoo/fix/design-lint-main-findings
design-lint: clear the layer/import and props/hand-setter findings on main
2026-11-30 09:27:18 +07:00
dotCooCoo 66923d268a ui: CanvasSpace::with_wheel keeps one argument, and a share's receiver can mark it modal
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.
2026-11-29 17:54:27 -08:00
Dylan M. Taylor f9371995bc silhouette-studio: read text objects (characters, font, size, origin) (#3673)
* silhouette-studio: read text objects (characters, font, size, origin)

* Restore main fill colour reader during Studio merge
2026-11-29 20:54:20 -05:00
dotCooCoo 3215285d7b platform: craft-theme is an optional dependency of the appearance feature
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.
2026-11-29 17:45:38 -08:00
dotCooCoo 1591334df2 Merge main into fix/color-picker-picked-swatch 2026-11-29 17:34:33 -08:00
dotCooCoo 8063b87352 Merge main into fix/raster3d-opacity-below-one 2026-11-29 17:29:30 -08:00
dotCooCoo d6cdb2001f Merge main into fix/memo-view-stack-gap 2026-11-29 17:29:16 -08:00
dotCooCoo 432c9eee84 Merge main into fix/overlay-newer-raise-on-top 2026-11-29 17:28:55 -08:00
dotCooCoo 3de017b999 ui: a wheel claim names its share, and a claimed swipe leaves no glide samples
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.
2026-11-29 17:26:08 -08:00
dotCooCoo 947b79ba8d Merge main into fix/winit-alt-codes-pinch 2026-11-29 17:23:59 -08:00
dotCooCoo 61201e81ff Merge main into fix/raster3d-resolve-large-blocks 2026-11-29 17:23:29 -08:00
dotCooCoo af3769cdc2 Merge main into fix/focus-leaves-closed-scope 2026-11-29 17:23:13 -08:00
FredApps 1c3aa6a724 Merge pull request #4352 from storytold/feat/optional-tiff-codec
Make TIFF pixel codecs optional for constrained builds
2026-11-30 02:19:51 +01:00
dotCooCoo 3c7dbc8a57 platform: the crash hook tests run in their own process
`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.
2026-11-29 17:19:35 -08:00
dotCooCoo 20d5c238f9 Merge main into fix/design-lint-main-findings 2026-11-29 17:18:39 -08:00
dotCooCoo 839ff945b4 ui-widgets list rows: ThumbSize::Custom, a row height in whole points from 12 to 100
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.
2026-11-29 17:02:47 -08:00
dotCooCoo 72ac710eeb craft-raster3d: perspective shadow casters edge-on to the light write no texels
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.
2026-11-29 16:54:29 -08:00
dotCooCoo 4b9f322363 platform: the macOS screen capture uses objc2-core-graphics in place of core-graphics2
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.
2026-11-29 16:54:19 -08:00
Dylan M. Taylor f8ee722798 silhouette-studio: read which group each object belongs to (#3671)
* silhouette-studio: read which group each object belongs to

* Restore main fill colour reader during Studio merge

* Name the resolved group membership structure
2026-11-29 19:53:47 -05:00
Dylan M. Taylor c4d0e6278e silhouette-studio: .studio3 and .studio (V2) writers; read line colours as RGB (#3745)
* silhouette-studio: .studio3 writer (pages, polygons with line colour, width, fill); read line colours as RGB

* silhouette-studio writer: Bézier handles and compound contours

* silhouette-studio: .studio (V2) writer
2026-11-29 19:53:09 -05:00
Dylan M. Taylor 6778f5e590 Merge pull request #3703 from dylanmtaylor/stencilcraft-document/fill-pattern
stencilcraft-document: pattern and gradient fills
2026-11-29 19:25:19 -05:00
Dylan M. Taylor 0706be37ff Merge document parity fields with pattern and gradient metadata 2026-11-29 19:24:53 -05:00
Dylan M. Taylor bdcd726b58 Merge pull request #3610 from dylanmtaylor/stencilcraft/document-parity-fields
stencilcraft-document: optional line width, isometric grid, text wrap width and underline, and an image's original pixels
2026-11-29 19:23:54 -05:00
Dylan M. Taylor b440588570 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-29 19:22:49 -05:00
Dylan M. Taylor 2d385d6692 Merge current main into StencilCraft pattern and gradient fills 2026-11-29 19:22:48 -05:00
dotCooCoo 988e77876f ui: a canvas body can claim a wheel gesture and mark it modal
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.
2026-11-29 16:22:43 -08:00
Dylan M. Taylor 1778ff15c4 file-import: filled paths in SVG and PDF output (OutputPath::fill_rgb) (#3659) 2026-11-29 19:22:17 -05:00