Commit Graph
12826 Commits
Author SHA1 Message Date
David Mann 89ba4dbb1e Merge remote-tracking branch 'origin/main' into pin/egui-window-move
# Conflicts:
#	Cargo.toml
2026-11-30 04:01:52 +01: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
David Mann 83475e4b61 Merge remote-tracking branch 'origin/main' into pin/egui-window-move 2026-11-30 03:28:17 +01: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
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 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
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
Dylan M. Taylor 7986a21282 Merge current main into StencilCraft document style fields 2026-11-29 19:20:46 -05:00
dotCooCoo 45cbe90df1 craft-raster3d: shadow casters clipped at the near plane take one f64 fraction when a position difference overflows
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.
2026-11-29 16:16:20 -08:00
dotCooCoo 98c9b65110 ui-contract: fixtures keep mirrored glyph UV rects ordered
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.
2026-11-29 16:00:34 -08:00
David Mann 8954a34dd3 Merge remote-tracking branch 'origin/main' into pin/egui-window-move 2026-11-30 00:45:11 +01:00
Whatever Industriesandwhatever-industries 505f457c6b file-import: supply the empty image list in the PDF render test (#4346)
Co-authored-by: whatever-industries <77seventy77@users.noreply.github.com>
2026-11-29 17:44:32 -06:00
dotCooCoo 26070dd9ec color-ui: an eyedropper sample clears the picked swatch, and a caller's color survives a new swatch view 2026-11-29 15:22:39 -08:00
David MannandClaude Opus 5.5 7b77a917e7 Pin egui at storytold/egui#71's merge commit 07c20531 (photocraft#18000)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 00:15:12 +01:00