Merge pull request #18380 from davidmann4/fix/adjustment-layer-glyphs-9038

Layers panel: each adjustment layer shows its own glyph (#9038)
This commit is contained in:
David Mann authored and GitHub committed 2026-12-01 00:39:34 +01:00
commit 860846efe4
19 files changed
+299 -174

No files matched your search

Generated
+109 -95
View File
@@ -1376,7 +1376,7 @@ dependencies = [
[[package]]
name = "craft"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-automation",
"craft-behavior",
@@ -1417,7 +1417,7 @@ dependencies = [
[[package]]
name = "craft-affinity"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"crc32fast",
"flate2",
@@ -1438,7 +1438,7 @@ dependencies = [
[[package]]
name = "craft-appkit"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"block2 0.6.2",
"objc2 0.6.5",
@@ -1450,7 +1450,7 @@ dependencies = [
[[package]]
name = "craft-atomic"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"rustix 1.1.6",
]
@@ -1458,7 +1458,7 @@ dependencies = [
[[package]]
name = "craft-automation"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"base64 0.23.1",
"craft-behavior",
@@ -1483,7 +1483,7 @@ dependencies = [
[[package]]
name = "craft-behavior"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"accesskit",
"bitflags 2.13.2",
@@ -1501,7 +1501,7 @@ dependencies = [
[[package]]
name = "craft-browse"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-behavior",
"craft-docpath",
@@ -1519,7 +1519,7 @@ dependencies = [
[[package]]
name = "craft-cloud-ui"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"egui",
]
@@ -1527,7 +1527,7 @@ dependencies = [
[[package]]
name = "craft-cms"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"md-5",
"rayon",
@@ -1536,12 +1536,12 @@ dependencies = [
[[package]]
name = "craft-codepage"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
[[package]]
name = "craft-color"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"serde",
]
@@ -1549,7 +1549,7 @@ dependencies = [
[[package]]
name = "craft-color-transform"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-cms",
"craft-color",
@@ -1559,10 +1559,11 @@ dependencies = [
[[package]]
name = "craft-color-ui"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-behavior",
"craft-cms",
"craft-drawingml",
"craft-host",
"craft-i18n",
"craft-keymap",
@@ -1579,7 +1580,7 @@ dependencies = [
[[package]]
name = "craft-control"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-ai-agents",
"craft-atomic",
@@ -1595,7 +1596,7 @@ dependencies = [
[[package]]
name = "craft-control-protocol"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"getrandom 0.3.4",
"serde_json",
@@ -1605,7 +1606,7 @@ dependencies = [
[[package]]
name = "craft-crs"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-metadata",
"craft-xml",
@@ -1615,7 +1616,7 @@ dependencies = [
[[package]]
name = "craft-crw"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"thiserror 2.0.21",
]
@@ -1623,7 +1624,7 @@ dependencies = [
[[package]]
name = "craft-dds"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"rayon",
]
@@ -1631,7 +1632,7 @@ dependencies = [
[[package]]
name = "craft-develop"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-color",
"craft-color-transform",
@@ -1646,7 +1647,7 @@ dependencies = [
[[package]]
name = "craft-develop-model"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-geom",
"craft-metadata",
@@ -1658,7 +1659,7 @@ dependencies = [
[[package]]
name = "craft-dialogs"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"block2 0.6.2",
"craft-appkit",
@@ -1684,7 +1685,7 @@ dependencies = [
[[package]]
name = "craft-docpath"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"serde",
]
@@ -1692,7 +1693,7 @@ dependencies = [
[[package]]
name = "craft-draw"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-behavior",
"craft-color-ui",
@@ -1708,15 +1709,27 @@ dependencies = [
"serde_json",
]
[[package]]
name = "craft-drawingml"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"chrono",
"craft-xml",
"kurbo 0.13.1",
"log",
"serde",
]
[[package]]
name = "craft-eps"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
[[package]]
name = "craft-file-formats"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-eps",
"craft-idml",
@@ -1734,7 +1747,7 @@ dependencies = [
[[package]]
name = "craft-flags"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-atomic",
"dirs",
@@ -1744,7 +1757,7 @@ dependencies = [
[[package]]
name = "craft-font-catalog"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"fontique",
"harfrust 0.13.3",
@@ -1759,7 +1772,7 @@ dependencies = [
[[package]]
name = "craft-font-manager"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-behavior",
"craft-font-catalog",
@@ -1779,7 +1792,7 @@ dependencies = [
[[package]]
name = "craft-font-os-windows"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"windows-registry",
"windows-sys 0.61.2",
@@ -1788,7 +1801,7 @@ dependencies = [
[[package]]
name = "craft-font-store"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"cap-primitives",
"craft-atomic",
@@ -1811,12 +1824,12 @@ dependencies = [
[[package]]
name = "craft-fonts-build"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
[[package]]
name = "craft-geom"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"serde",
]
@@ -1824,7 +1837,7 @@ dependencies = [
[[package]]
name = "craft-heif"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"heic-rs",
"rayon",
@@ -1833,7 +1846,7 @@ dependencies = [
[[package]]
name = "craft-host"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"bitflags 2.13.2",
"craft-i18n",
@@ -1846,7 +1859,7 @@ dependencies = [
[[package]]
name = "craft-i18n"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"brotli 9.1.3",
"brotli-decompressor 6.3.2",
@@ -1876,7 +1889,7 @@ dependencies = [
[[package]]
name = "craft-idml"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-xml",
"craft-zip",
@@ -1886,7 +1899,7 @@ dependencies = [
[[package]]
name = "craft-image-codecs"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-dds",
"craft-heif",
@@ -1914,7 +1927,7 @@ dependencies = [
[[package]]
name = "craft-imaging"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-behavior",
"craft-color-ui",
@@ -1932,12 +1945,12 @@ dependencies = [
[[package]]
name = "craft-ipp"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
[[package]]
name = "craft-jpeg"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"thiserror 2.0.21",
]
@@ -1945,7 +1958,7 @@ dependencies = [
[[package]]
name = "craft-keymap"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-host",
"craft-i18n",
@@ -1960,7 +1973,7 @@ dependencies = [
[[package]]
name = "craft-kra"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-xml",
"craft-zip",
@@ -1970,7 +1983,7 @@ dependencies = [
[[package]]
name = "craft-layers"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-behavior",
"craft-i18n",
@@ -1984,7 +1997,7 @@ dependencies = [
[[package]]
name = "craft-menu"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2002,7 +2015,7 @@ dependencies = [
[[package]]
name = "craft-metadata"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"brotli-decompressor 6.3.2",
"chrono",
@@ -2014,7 +2027,7 @@ dependencies = [
[[package]]
name = "craft-nightly"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"uds_windows",
"winsafe",
@@ -2023,7 +2036,7 @@ dependencies = [
[[package]]
name = "craft-ora"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-xml",
"craft-zip",
@@ -2033,7 +2046,7 @@ dependencies = [
[[package]]
name = "craft-pages"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-behavior",
"craft-keymap",
@@ -2049,7 +2062,7 @@ dependencies = [
[[package]]
name = "craft-pcraft-bundle"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"blake3",
"craft-atomic",
@@ -2062,7 +2075,7 @@ dependencies = [
[[package]]
name = "craft-pcraft-format"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"flate2",
"serde",
@@ -2073,7 +2086,7 @@ dependencies = [
[[package]]
name = "craft-pdf"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"bytemuck",
"flate2",
@@ -2088,7 +2101,7 @@ dependencies = [
[[package]]
name = "craft-pdn"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"flate2",
"thiserror 2.0.21",
@@ -2097,7 +2110,7 @@ dependencies = [
[[package]]
name = "craft-platform"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"async-channel",
"async-io",
@@ -2130,7 +2143,7 @@ dependencies = [
[[package]]
name = "craft-plist"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"thiserror 2.0.21",
]
@@ -2138,7 +2151,7 @@ dependencies = [
[[package]]
name = "craft-print"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2162,7 +2175,7 @@ dependencies = [
[[package]]
name = "craft-psd"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"encoding_rs",
"flate2",
@@ -2173,7 +2186,7 @@ dependencies = [
[[package]]
name = "craft-quit"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"dispatch2",
"egui",
@@ -2186,7 +2199,7 @@ dependencies = [
[[package]]
name = "craft-raw"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"chrono",
"craft-crw",
@@ -2204,7 +2217,7 @@ dependencies = [
[[package]]
name = "craft-review"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"base64 0.23.1",
"craft-behavior",
@@ -2223,7 +2236,7 @@ dependencies = [
[[package]]
name = "craft-settings"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-atomic",
"craft-host",
@@ -2240,7 +2253,7 @@ dependencies = [
[[package]]
name = "craft-svg"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-image-codecs",
"craft-xml",
@@ -2261,7 +2274,7 @@ dependencies = [
[[package]]
name = "craft-table"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-behavior",
"craft-keymap",
@@ -2273,7 +2286,7 @@ dependencies = [
[[package]]
name = "craft-testkit"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"rustix 1.1.6",
"tempfile",
@@ -2283,7 +2296,7 @@ dependencies = [
[[package]]
name = "craft-text"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-behavior",
"craft-font-manager",
@@ -2306,7 +2319,7 @@ dependencies = [
[[package]]
name = "craft-theme"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"bitflags 2.13.2",
"craft-tracked",
@@ -2321,7 +2334,7 @@ dependencies = [
[[package]]
name = "craft-theme-editor"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-behavior",
"craft-theme",
@@ -2332,7 +2345,7 @@ dependencies = [
[[package]]
name = "craft-theme-store"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-atomic",
"craft-behavior",
@@ -2347,7 +2360,7 @@ dependencies = [
[[package]]
name = "craft-tiff"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"serde",
"thiserror 2.0.21",
@@ -2357,7 +2370,7 @@ dependencies = [
[[package]]
name = "craft-time"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"serde",
"thiserror 2.0.21",
@@ -2366,7 +2379,7 @@ dependencies = [
[[package]]
name = "craft-timeline"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-behavior",
"craft-keymap",
@@ -2381,7 +2394,7 @@ dependencies = [
[[package]]
name = "craft-tracked"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"serde",
]
@@ -2389,7 +2402,7 @@ dependencies = [
[[package]]
name = "craft-ui"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-cloud-ui",
"craft-ui-canvas",
@@ -2403,9 +2416,10 @@ dependencies = [
[[package]]
name = "craft-ui-canvas"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-behavior",
"craft-font-catalog",
"craft-i18n",
"craft-keymap",
"craft-theme",
@@ -2419,7 +2433,7 @@ dependencies = [
[[package]]
name = "craft-ui-contract"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"accesskit",
"craft-behavior",
@@ -2461,7 +2475,7 @@ dependencies = [
[[package]]
name = "craft-ui-macros"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"proc-macro-crate",
"proc-macro2",
@@ -2472,7 +2486,7 @@ dependencies = [
[[package]]
name = "craft-ui-panels"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2490,7 +2504,7 @@ dependencies = [
[[package]]
name = "craft-ui-patterns"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2511,7 +2525,7 @@ dependencies = [
[[package]]
name = "craft-ui-shell"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2531,7 +2545,7 @@ dependencies = [
[[package]]
name = "craft-ui-widgets"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2550,7 +2564,7 @@ dependencies = [
[[package]]
name = "craft-update"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"base64 0.22.1",
"chrono",
@@ -2582,7 +2596,7 @@ dependencies = [
[[package]]
name = "craft-win32"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"winsafe",
]
@@ -2590,7 +2604,7 @@ dependencies = [
[[package]]
name = "craft-window"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"craft-appkit",
"craft-atomic",
@@ -2622,7 +2636,7 @@ dependencies = [
[[package]]
name = "craft-xcf"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"flate2",
"thiserror 2.0.21",
@@ -2631,7 +2645,7 @@ dependencies = [
[[package]]
name = "craft-xml"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"quick-xml 0.41.0",
"serde",
@@ -2641,7 +2655,7 @@ dependencies = [
[[package]]
name = "craft-zip"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"flate2",
"thiserror 2.0.21",
@@ -4165,7 +4179,7 @@ dependencies = [
[[package]]
name = "hayro"
version = "0.7.1"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"bytemuck",
"hayro-interpret",
@@ -4195,7 +4209,7 @@ dependencies = [
[[package]]
name = "hayro-interpret"
version = "0.7.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"bitflags 2.13.2",
"hayro-cmap",
@@ -4213,7 +4227,7 @@ dependencies = [
[[package]]
name = "hayro-jbig2"
version = "0.3.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"fearless_simd",
"hayro-ccitt",
@@ -4237,7 +4251,7 @@ checksum = "bc2d80da85f31c3fdc0366431f44cfd645a9da1e242ed1f4a61f213d9765660f"
[[package]]
name = "hayro-syntax"
version = "0.7.2"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"flate2",
"hayro-ccitt",
@@ -5330,7 +5344,7 @@ checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4"
[[package]]
name = "linesweeper"
version = "0.5.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"arrayvec",
"kurbo 0.13.1",
@@ -9841,7 +9855,7 @@ dependencies = [
[[package]]
name = "vello_common"
version = "0.0.8"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"bytemuck",
"fearless_simd",
@@ -9889,7 +9903,7 @@ dependencies = [
[[package]]
name = "vello_cpu"
version = "0.0.8"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
dependencies = [
"bytemuck",
"glifo 0.1.1",
@@ -11535,14 +11549,14 @@ source = "git+https://github.com/storytold/egui.git?rev=07c20531f89717e461c0f387
[[patch.unused]]
name = "hayro-cmap"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
[[patch.unused]]
name = "hayro-postscript"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
[[patch.unused]]
name = "krilla"
version = "0.8.2"
source = "git+https://github.com/storytold/craft-libs?rev=4ed3d95b0f244b2b10d5f167183658f38f73594d#4ed3d95b0f244b2b10d5f167183658f38f73594d"
source = "git+https://github.com/storytold/craft-libs?rev=0b0640394737ca969e4442cdab031343e1bce7c1#0b0640394737ca969e4442cdab031343e1bce7c1"
+42 -42
View File
@@ -12,21 +12,21 @@ rust-version = "1.95"
[workspace.dependencies]
# The craft framework through its facade (`craft::ui::…`). The egui `[patch]` below must match
# `craft::egui_fork::REV` (checked by `cargo xtask ci`).
craft = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d", default-features = false }
craft-tracked = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-ui-macros = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1", default-features = false }
craft-tracked = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
craft-ui-macros = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
# internal
photocraft-geom = { path = "crates/geom" }
photocraft-color = { path = "crates/color" }
photocraft-raster = { path = "crates/raster" }
photocraft-doc = { path = "crates/doc" }
photocraft-ops = { path = "crates/ops" }
craft-plist = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
photocraft-codecs = { package = "craft-image-codecs", git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
photocraft-formats = { package = "craft-file-formats", git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d", features = ["raster-codecs", "pdf", "svg", "ora", "kra", "xcf", "pdn", "raw", "psd", "affinity", "pcraft"] }
craft-plist = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
photocraft-codecs = { package = "craft-image-codecs", git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
photocraft-formats = { package = "craft-file-formats", git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1", features = ["raster-codecs", "pdf", "svg", "ora", "kra", "xcf", "pdn", "raw", "psd", "affinity", "pcraft"] }
photocraft-raw = { path = "crates/raw" }
craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
photocraft-compose = { path = "crates/compose" }
photocraft-gpu = { path = "crates/gpu" }
photocraft-paint = { path = "crates/paint" }
@@ -48,38 +48,38 @@ photocraft-ipp = { path = "crates/ipp" }
# external
# ICC colour management: the shared crate (replaces crates/cms; craft-libs#779).
craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-print = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
craft-print = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
# HEIC/HEIF: the shared decoder (replaces crates/heif; craft-libs#784).
craft-heif = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d", features = ["raster", "write-raster"] }
craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-jpeg = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-pcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-pcraft-bundle = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-zip = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-ora = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-kra = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-xcf = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-pdn = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-heif = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1", features = ["raster", "write-raster"] }
craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
craft-jpeg = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
craft-pcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
craft-pcraft-bundle = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
craft-zip = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
craft-ora = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
craft-kra = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
craft-xcf = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
craft-pdn = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
# Keep the shared embedded-image validation API until the framework revision includes it.
craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d", features = ["tree-render", "tree-render-system-fonts"] }
craft-raw = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1", features = ["tree-render", "tree-render-system-fonts"] }
craft-raw = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
# Camera-field EXIF reader/writer, shared prerequisite craft-libs#1563.
craft-metadata = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-crs = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-develop = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-develop-model = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-metadata = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
craft-crs = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
craft-develop = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
craft-develop-model = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
# Interface translations: lookup, fallback, CLDR plurals and language names over the craft-i18n
# catalogs that `crates/ui-egui/build.rs` embeds from `CRAFT_I18N_DIR` (storytold/craft-i18n, at
# the commit in `craft-i18n.rev`). Already in the tree through craft.
craft-i18n = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-i18n = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
# craft-update: app-specific pretend versions apply to startup and manual checks.
craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d", features = ["ui"] }
craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "0b0640394737ca969e4442cdab031343e1bce7c1", features = ["ui"] }
# Self-contained nightly profile isolation, launch protocol, and security fence.
craft-nightly = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-nightly = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
thiserror = "2"
serde = { version = "1", features = ["derive", "rc"] }
serde_json = "1"
@@ -352,16 +352,16 @@ opt-level = 3
# Keep the complete egui family and native event bridge on reviewed fork commits.
[patch.crates-io]
krilla = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
hayro = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
vello_common = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
vello_cpu = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
krilla = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
hayro = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
vello_common = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
vello_cpu = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
ecolor = { git = "https://github.com/storytold/egui.git", rev = "07c20531f89717e461c0f387dd1f9649553f9321" }
emath = { git = "https://github.com/storytold/egui.git", rev = "07c20531f89717e461c0f387dd1f9649553f9321" }
epaint = { git = "https://github.com/storytold/egui.git", rev = "07c20531f89717e461c0f387dd1f9649553f9321" }
+3
View File
@@ -329,6 +329,9 @@ sync_github_name = false
real_name = "David Vanhoucke"
sync_github_name = true
[people.kobaltgit]
sync_github_name = true
[people.Luis-0508]
sync_github_name = true
+1 -1
View File
@@ -19,7 +19,7 @@ photocraft-geom = { workspace = true }
photocraft-color = { workspace = true }
craft-cms = { workspace = true }
# PCTIP codec from craft-libs#1564; kept at the same shared revision as the workspace.
craft-pcraft-tip = { package = "craft-pcraft-format", git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-pcraft-tip = { package = "craft-pcraft-format", git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
photocraft-raster = { workspace = true }
photocraft-doc = { workspace = true }
photocraft-ops = { workspace = true }
+1 -1
View File
@@ -576,7 +576,7 @@ mod validate;
pub use cmds::specs;
#[cfg(test)]
pub(crate) use files::write_files_atomically;
pub use saved::{LEGACY_PREFS_FILE, SavedPrefs, SavedPrefsExt, parse_legacy_prefs, parse_prefs_json, reset_value};
pub use saved::{LEGACY_PREFS_FILE, SavedPrefs, SavedPrefsExt, parse_legacy_prefs, parse_legacy_slots, parse_prefs_json, reset_value};
#[cfg(not(target_arch = "wasm32"))]
pub use saved::{read_saved, store_options};
pub use shortcuts::{
+13 -1
View File
@@ -112,6 +112,18 @@ pub fn parse_legacy_prefs(bytes: &[u8]) -> std::result::Result<(SavedPrefs, Vec<
Ok((saved, invalid.iter().map(reset_value).collect()))
}
/// [`parse_legacy_prefs`] over the store's read of the one legacy path ([`store_options`] names only
/// [`LEGACY_PREFS_FILE`]): a missing file or a failed read is no import.
pub fn parse_legacy_slots(
reads: &[std::result::Result<Option<&[u8]>, &std::io::Error>],
) -> std::result::Result<(SavedPrefs, Vec<craft::settings::SectionError>), String> {
match reads.first() {
Some(Ok(Some(bytes))) => parse_legacy_prefs(bytes),
Some(Ok(None)) | None => Err(format!("{LEGACY_PREFS_FILE} is missing")),
Some(Err(e)) => Err(format!("{LEGACY_PREFS_FILE}: {e}")),
}
}
/// The file the preferences lived in before `config.toml`, in the same folder. The settings store imports it while
/// there is no `config.toml` and never writes or removes it, so an older build still finds it.
pub const LEGACY_PREFS_FILE: &str = "preferences.json";
@@ -121,7 +133,7 @@ pub const LEGACY_PREFS_FILE: &str = "preferences.json";
#[cfg(not(target_arch = "wasm32"))]
pub fn store_options(dir: Option<&std::path::Path>) -> craft::settings::OpenOptions<SavedPrefs> {
let location = dir.map_or(craft::settings::Location::Memory, |dir| craft::settings::Location::Dir(dir.to_path_buf()));
let legacy = dir.map(|dir| craft::settings::LegacyFile { path: dir.join(LEGACY_PREFS_FILE), parse: parse_legacy_prefs }).into_iter().collect();
let legacy = dir.map(|dir| craft::settings::LegacyFile { paths: vec![dir.join(LEGACY_PREFS_FILE)], parse: parse_legacy_slots }).into_iter().collect();
craft::settings::OpenOptions::new(location).legacy(legacy)
}
+1 -1
View File
@@ -7,7 +7,7 @@ license.workspace = true
rust-version.workspace = true
[dependencies]
craft-ipp = { git = "https://github.com/storytold/craft-libs", rev = "4ed3d95b0f244b2b10d5f167183658f38f73594d" }
craft-ipp = { git = "https://github.com/storytold/craft-libs", rev = "0b0640394737ca969e4442cdab031343e1bce7c1" }
[lints]
workspace = true
+2 -1
View File
@@ -800,7 +800,8 @@ pub(crate) fn tool_changed(app: &mut PhotocraftApp, ctx: &egui::Context, host: C
let id = host.canvas_id();
let primary = host.is_primary(app);
with_rig(app, ctx, host, &mut tools, primary, BodyShown::default(), |selected, tool_host| {
tool_host.cancel(ctx, id, selected, CancelReason::HostChanged);
// A cancel asks for nothing the app acts on: no PhotoCraft tool opens a link when its gesture is cancelled.
let _ = tool_host.cancel(ctx, id, selected, CancelReason::HostChanged);
});
app.canvas_tools = tools;
}
@@ -166,7 +166,7 @@ mod settings_file;
/// The footer buttons after OK and Cancel, as `(action, label)`.
pub(crate) fn footer_buttons() -> Vec<(String, FooterButton)> {
[("load", tl!("Load…")), ("save", tl!("Save…")), ("reset", tl!("Reset…"))]
.map(|(id, label)| (id.to_owned(), FooterButton::new(label, DialogRole::Other)))
.map(|(id, label)| (id.to_owned(), FooterButton::new(label, DialogRole::Other).stays_open(true)))
.into()
}
+1 -1
View File
@@ -155,7 +155,7 @@ pub(crate) fn open(app: &mut PhotocraftApp, script: &str, fill: Value, held: &Va
.values(Bind::bound(fields))
.previews(true)
.alt_resets(false)
.extra_buttons(vec![("reset".to_owned(), FooterButton::new(tl!("Reset").to_string(), DialogRole::Other))])
.extra_buttons(vec![("reset".to_owned(), FooterButton::new(tl!("Reset").to_string(), DialogRole::Other).stays_open(true))])
}))
}
+2 -2
View File
@@ -596,8 +596,8 @@ fn builder(
}
if key == "image.mode.colorTable" {
dialog = dialog.extra_buttons(vec![
("load".to_owned(), FooterButton::new(tl!("Load…").to_string(), DialogRole::Other)),
("save".to_owned(), FooterButton::new(tl!("Save…").to_string(), DialogRole::Other)),
("load".to_owned(), FooterButton::new(tl!("Load…").to_string(), DialogRole::Other).stays_open(true)),
("save".to_owned(), FooterButton::new(tl!("Save…").to_string(), DialogRole::Other).stays_open(true)),
]);
}
dialog
+11 -9
View File
@@ -1,4 +1,4 @@
//! Synthetic input around the app's passes: input queued for one active document is withdrawn
//! Synthetic input around the app's passes: a click queued for one active document is withdrawn
//! when another document becomes active between passes, not on an edit nor on a switch the
//! injected step makes itself, and a hidden window keeps painting while input or a capture waits.
//! The queue itself is the window host's (craft-automation's `synthetic` trials).
@@ -16,14 +16,16 @@ fn app_with_doc() -> Box<PhotocraftApp> {
app
}
/// Sends `ui.key V` through a control channel and runs it: the reply waits on the queued input.
fn queue_key(app: &mut PhotocraftApp, ctx: &Context) -> std::sync::mpsc::Receiver<serde_json::Value> {
/// Sends a `ui.click` at a screen point through a control channel and runs it: the reply waits on the queued input.
/// A point means another place once the document changed, so a switch withdraws it; a key would stay and go to the
/// focus current when it runs (craft-automation's `synthetic` trials).
fn queue_click(app: &mut PhotocraftApp, ctx: &Context) -> std::sync::mpsc::Receiver<serde_json::Value> {
let (transport, rx) = std::sync::mpsc::channel();
app.control = Some(craft::automation::ControlChannel::new(rx));
let (req, reply) = crate::ControlRequest::new("ui.key", json!({"key": "V"}));
let (req, reply) = crate::ControlRequest::new("ui.click", json!({"x": 30, "y": 20}));
transport.send(req).expect("the channel is open");
app.drain_control(ctx);
assert!(!WindowHost::of(ctx).injected_idle(), "the key is queued");
assert!(!WindowHost::of(ctx).injected_idle(), "the click is queued");
reply
}
@@ -37,14 +39,14 @@ fn host_input(viewport: egui::ViewportId) -> RawInput {
raw
}
/// A switch of the active document before the queued input ran withdraws it and fails the
/// waiting reply; an edit in the same document (a new revision, the same activation) does not.
/// A switch of the active document before a queued click at a point ran withdraws it and fails
/// the waiting reply; an edit in the same document (a new revision, the same activation) does not.
#[test]
fn queued_input_is_withdrawn_only_when_the_active_document_changes() {
for (command, params, withdrawn) in [("file.new", json!({"width": 16, "height": 16}), true), ("layer.new.layer", json!({"name": "queued"}), false)] {
let mut app = app_with_doc();
let ctx = app.ctx().clone();
let reply = queue_key(&mut app, &ctx);
let reply = queue_click(&mut app, &ctx);
app.run(command, params).expect(command);
app.withdraw_stale_input(&ctx);
if withdrawn {
@@ -98,7 +100,7 @@ fn a_logic_tick_requests_a_hidden_paint_for_waiting_captures_and_queued_input()
let ctx = app.ctx().clone();
let mut app = app_with_doc();
let _reply = queue_key(&mut app, &ctx);
let _reply = queue_click(&mut app, &ctx);
let out = ctx.run_logic(&host_input(egui::ViewportId::ROOT), |ctx| app.logic(ctx, &mut frame));
assert!(paints(&out), "queued synthetic input keeps the hidden window painting");
}
+3
View File
@@ -134,6 +134,9 @@ mod fx_drag_tests;
#[cfg(test)]
mod unsupported_marker_tests;
#[cfg(test)]
mod adjustment_row_glyph_tests;
#[cfg(test)]
mod swatch_type_tests {
use super::*;
@@ -0,0 +1,37 @@
//! An adjustment layer's Layers panel row shows its own adjustment's glyph, not one shared by every
//! adjustment (#9038).
use std::collections::HashSet;
use craft::layers::ui::tree::LayerTree;
use photocraft_doc::{Adjustment, Layer, LayerContent};
use serde_json::json;
use crate::PhotocraftApp;
#[test]
fn every_new_adjustment_layer_row_shows_its_own_glyph() {
let mut s = photocraft_engine::Session::new();
s.execute("file.new", json!({"width": 64, "height": 48})).unwrap();
let mut layers = Vec::new();
for spec in photocraft_engine::command_specs().iter().filter(|c| c.id.starts_with("layer.newAdjustmentLayer.")) {
s.execute(spec.id, json!({})).unwrap();
layers.push((spec.id, s.active().unwrap().active_layer().unwrap()));
}
assert!(layers.len() > 10, "the sweep found {} adjustment commands", layers.len());
let mystery = Layer::new("Mystery", LayerContent::Adjustment(Adjustment::Unsupported { psd_key: "xyzw".into(), raw: vec![1, 2, 3].into() }));
let mystery_id = mystery.id;
s.edit("unsupported fixture", |doc, _| {
doc.layers.push(mystery);
Ok(())
})
.unwrap();
let app = PhotocraftApp::new(s, crate::Services::default());
let tree = super::layers_tree::PhotoLayers::new(&app, app.session.active().unwrap(), &Default::default(), false, None);
let mut seen = HashSet::new();
for (command, id) in layers {
let icon = tree.info(&id).icon.unwrap_or_else(|| panic!("{command}: the row shows the generic glyph"));
assert!(seen.insert(icon.name().to_owned()), "{command} shares {} with another adjustment", icon.name());
}
assert!(tree.info(&mystery_id).icon.is_none(), "an adjustment kept as imported keeps the generic glyph");
}
+30 -1
View File
@@ -6,6 +6,7 @@ use photocraft_engine::link_watch::LinkWatchExt;
use std::collections::HashSet;
use std::sync::Arc;
use craft::imaging::ui::adjust::AdjustmentKind;
use craft::layers::ui::filter::{EffectKind, FilterBy, FilterKind, LayerAttribute, LayerFilter, SmartKind, SmartSource};
use craft::layers::ui::panel::MenuTarget;
use craft::layers::ui::thumbs::{LayerThumb, LayerThumbKind, ThumbContents};
@@ -20,7 +21,7 @@ use craft::ui::patterns::blend_keys::{BlendKeyEntry, blend_entries};
use craft::ui::primitives::textures::{Revision, ThumbRender, ThumbRequest, ThumbSource, thumb_image};
use craft::ui::runtime::env::Label;
use photocraft_color::{BlendMode, ColorMode};
use photocraft_doc::{Document, Effect, Fill, LabelColor, Layer, LayerContent, LayerId};
use photocraft_doc::{Adjustment, Document, Effect, Fill, LabelColor, Layer, LayerContent, LayerId};
use photocraft_engine::DocState;
use serde_json::{Value, json};
@@ -360,6 +361,10 @@ impl LayerTree for PhotoLayers {
LayerContent::Shape(_) => Some(ThumbBadge::Shape),
_ => None,
};
// Each adjustment shows its own glyph, the one its Adjustments panel button has (#9038).
if let LayerContent::Adjustment(adj) = &l.content {
info.icon = adjustment_kind(adj).map(AdjustmentKind::icon);
}
if let Some(m) = &l.mask {
info.masks.push(MaskInfo::new(LayerPart::LayerMask, m.enabled, m.linked));
}
@@ -777,6 +782,30 @@ pub(crate) fn row_menu(app: &PhotocraftApp, tree: &PhotoLayers, target: &MenuTar
}
}
/// The Adjustments panel's kind of `adj`, whose glyph its Layers panel row shows; none for an adjustment kept as
/// imported, which keeps the generic glyph.
pub(super) fn adjustment_kind(adj: &Adjustment) -> Option<AdjustmentKind> {
Some(match adj {
Adjustment::BrightnessContrast { .. } => AdjustmentKind::BrightnessContrast,
Adjustment::Levels { .. } => AdjustmentKind::Levels,
Adjustment::Curves { .. } => AdjustmentKind::Curves,
Adjustment::Exposure { .. } => AdjustmentKind::Exposure,
Adjustment::Vibrance { .. } => AdjustmentKind::Vibrance,
Adjustment::HueSaturation { .. } => AdjustmentKind::HueSaturation,
Adjustment::ColorBalance { .. } => AdjustmentKind::ColorBalance,
Adjustment::BlackWhite { .. } => AdjustmentKind::BlackWhite,
Adjustment::PhotoFilter { .. } => AdjustmentKind::PhotoFilter,
Adjustment::ChannelMixer { .. } => AdjustmentKind::ChannelMixer,
Adjustment::ColorLookup { .. } => AdjustmentKind::ColorLookup,
Adjustment::Invert => AdjustmentKind::Invert,
Adjustment::Posterize { .. } => AdjustmentKind::Posterize,
Adjustment::Threshold { .. } => AdjustmentKind::Threshold,
Adjustment::GradientMap { .. } => AdjustmentKind::GradientMap,
Adjustment::SelectiveColor { .. } => AdjustmentKind::SelectiveColor,
Adjustment::Unsupported { .. } => return None,
})
}
/// The thumbnails of the active document's rows.
pub(crate) struct PhotoThumbs<'a> {
app: &'a PhotocraftApp,
+1 -1
View File
@@ -106,7 +106,7 @@ fn app_with_legacy_json(saved: &Value, version: Option<u32>) -> (Box<PhotocraftA
let path = dir.join("preferences.json");
std::fs::write(&path, saved.to_string()).unwrap();
let files = Arc::new(MemoryFiles::new());
let legacy = vec![craft::settings::LegacyFile { path, parse: prefs::parse_legacy_prefs }];
let legacy = vec![craft::settings::LegacyFile { paths: vec![path], parse: prefs::parse_legacy_slots }];
let options = OpenOptions::new(Location::Dir(DIR.into())).debounce(Duration::ZERO).files(files.clone()).legacy(legacy);
let services = crate::Services { settings: Some(SettingsStore::<prefs::SavedPrefs>::open_with(options)), ..Default::default() };
let app = PhotocraftApp::new(photocraft_engine::Session::new(), services);
+1 -1
View File
@@ -286,7 +286,7 @@ fn dialog(ctx: &egui::Context, pending: &Pending, running: bool) -> HostedParamD
let title = tr(if svg { "Edit SVG Smart Object" } else { "Edit Vector Smart Object" });
let dialog = ParamDialog::new(KEY, Label::from(title), params(svg)).values(Bind::bound(fields));
if running {
dialog.extra_buttons(vec![(STOP_SYNC.to_owned(), FooterButton::new(tr("Stop syncing this Smart Object"), DialogRole::Other))])
dialog.extra_buttons(vec![(STOP_SYNC.to_owned(), FooterButton::new(tr("Stop syncing this Smart Object"), DialogRole::Other).stays_open(true))])
} else {
dialog
}
+37 -15
View File
@@ -3,7 +3,7 @@
use std::ops::Range;
use craft::behavior::kurbo::Point;
use craft::text::ui::editor::{CaretLine, EditKind, HostLine, HostRun, StyleKey, TextEditorHost, TextSelection};
use craft::text::ui::editor::{CaretAffinity, CaretLine, EditKind, HostLine, HostRun, StyleKey, TextEditorHost, TextReplacement, TextSelection};
use photocraft_doc::LayerId;
use photocraft_text::warp::{Placement, Warp};
@@ -51,6 +51,12 @@ fn chars_before(text: &str, byte: usize) -> usize {
text.char_indices().take_while(|(i, _)| *i < byte).count()
}
/// The line that ends at byte `byte` where a soft wrap continues the text on the next line: the line an upstream caret
/// at `byte` belongs to. `None` away from a soft wrap, where both sides of the caret are one line.
fn wrap_line(l: &TextLayout, byte: usize) -> Option<usize> {
l.lines.windows(2).position(|pair| pair[0].range.end == byte && pair[1].range.start == byte)
}
/// A line's text without its break, and its chars in `text`.
fn line_chars<'t>(text: &'t str, bytes: &Range<usize>) -> (&'t str, Range<usize>) {
let line = text.get(bytes.clone()).unwrap_or("").trim_end_matches(['\n', '\r']);
@@ -63,24 +69,26 @@ impl TextEditorHost for LayerHost<'_> {
self.app.session.active().and_then(|st| text_layer(&st.doc, self.layer)).map_or("", |t| t.text.as_str())
}
fn replace(&mut self, range: Range<usize>, text: &str, kind: EditKind) -> Option<usize> {
fn replace(&mut self, range: Range<usize>, text: &str, kind: EditKind) -> Option<TextReplacement> {
// A free transform in progress commits before the text changes under it.
crate::type_transform::finish(self.app);
// The engine inserts the whole text, its line breaks as `\n`.
insertion_style::replace(self.app, range.start, range.end, text, kind).then(|| insertion_style::stored_chars(text))
// The engine inserts the whole text, its line breaks as `\n`; the caret goes after it.
let end = range.start + insertion_style::stored_chars(text);
insertion_style::replace(self.app, range.start, range.end, text, kind).then(|| TextReplacement::new(range.start..end, TextSelection::caret_at(end)))
}
fn hit(&mut self, at: Point) -> (usize, usize) {
hit_at(self.app, self.layer, at.x, at.y)
}
fn caret(&mut self, offset: usize, line: Option<usize>) -> Option<CaretLine> {
fn caret(&mut self, offset: usize, affinity: CaretAffinity) -> Option<CaretLine> {
let g = self.laid_out()?;
let byte = byte_of(&g.text, offset);
let upstream = (affinity == CaretAffinity::Upstream).then(|| wrap_line(&g.l, byte)).flatten();
let (x, top, bot) = if g.l.lines.is_empty() {
(0.0, -(12.0 * g.l.px_per_pt.max(1.0)), 3.0)
} else if let Some(ln) = line.and_then(|i| g.l.lines.get(i)).filter(|ln| byte == ln.range.end) {
// At a soft wrap the offset ends this line and starts the next: the caller named this one.
} else if let Some(ln) = upstream.and_then(|i| g.l.lines.get(i)) {
// At a soft wrap the offset ends this line and starts the next: an upstream caret is at this one's end.
(ln.x1, ln.baseline - ln.ascent, ln.baseline + ln.descent)
} else {
g.l.caret(byte)
@@ -191,16 +199,30 @@ impl TextEditorHost for LayerHost<'_> {
g.l.lines.get(line).map_or(0..0, |ln| line_chars(&g.text, &ln.range).1)
}
fn line_step(&mut self, offset: usize, lines: i32) -> usize {
let Some((l, _, text)) = layout(self.app, self.layer) else { return offset };
// The position along the line stays that of the start offset over every step.
let x = l.caret(byte_of(&text, offset)).0;
(0..lines.unsigned_abs()).fold(offset, |at, _| photocraft_text::line_step(&l, &text, at, x, lines.signum()))
fn line_step(&mut self, offset: usize, affinity: CaretAffinity, lines: i32) -> (usize, CaretAffinity) {
let Some((l, _, text)) = layout(self.app, self.layer) else { return (offset, affinity) };
let byte = byte_of(&text, offset);
// The position along the line stays that of the start caret over every step. An upstream caret at a soft wrap
// sits at the end of the line before the wrap, and its steps start from that line.
let (x, from) = match (affinity == CaretAffinity::Upstream).then(|| wrap_line(&l, byte)).flatten().and_then(|i| l.lines.get(i)) {
Some(ln) => (ln.x1, chars_before(&text, ln.range.start)),
None => (l.caret(byte).0, offset),
};
let at = (0..lines.unsigned_abs()).fold(from, |at, _| photocraft_text::line_step(&l, &text, at, x, lines.signum()));
(at, CaretAffinity::Downstream)
}
fn line_edge(&mut self, offset: usize, end: bool) -> usize {
let Some((l, _, text)) = layout(self.app, self.layer) else { return offset };
photocraft_text::line_edge(&l, &text, offset, end)
fn line_edge(&mut self, offset: usize, affinity: CaretAffinity, end: bool) -> (usize, CaretAffinity) {
let Some((l, _, text)) = layout(self.app, self.layer) else { return (offset, affinity) };
// An upstream caret at a soft wrap belongs to the line ending there.
let from = match (affinity == CaretAffinity::Upstream).then(|| wrap_line(&l, byte_of(&text, offset))).flatten().and_then(|i| l.lines.get(i)) {
Some(ln) => chars_before(&text, ln.range.start),
None => offset,
};
let at = photocraft_text::line_edge(&l, &text, from, end);
// The end of a soft-wrapped line is also the next line's start: the caret stays on the line it went to the end of.
let side = if end && wrap_line(&l, byte_of(&text, at)).is_some() { CaretAffinity::Upstream } else { CaretAffinity::Downstream };
(at, side)
}
fn vertical(&self) -> bool {
+3 -1
View File
@@ -385,6 +385,8 @@ fn a_crlf_paste_counts_and_places_the_caret_as_stored() {
let added = LayerHost::new(&mut app, layer).replace(0..0, "A\r\nB\rC", craft::text::ui::editor::EditKind::Pasted);
// A new layer holds its placeholder after the insertion point.
assert!(layer_text(&app).starts_with("A\nB\nC"), "{:?}", layer_text(&app));
assert_eq!(added, Some(5), "five characters were stored");
let added = added.expect("the paste is taken");
assert_eq!(added.range, 0..5, "five characters were stored");
assert_eq!(added.selection.caret, 5, "the caret goes after them");
assert_eq!(app.ui.text_edit.as_ref().expect("editing").caret, 5, "the caret ends after the C");
}