diff --git a/Cargo.lock b/Cargo.lock index 1784b8d8d0..0173d81543 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1365,7 +1365,7 @@ dependencies = [ [[package]] name = "craft" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-automation", "craft-behavior", @@ -1406,7 +1406,7 @@ dependencies = [ [[package]] name = "craft-affinity" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "crc32fast", "flate2", @@ -1427,7 +1427,7 @@ dependencies = [ [[package]] name = "craft-appkit" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "block2 0.6.2", "objc2 0.6.5", @@ -1438,7 +1438,7 @@ dependencies = [ [[package]] name = "craft-atomic" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "rustix 1.1.6", ] @@ -1446,7 +1446,7 @@ dependencies = [ [[package]] name = "craft-automation" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "base64 0.23.1", "craft-behavior", @@ -1471,7 +1471,7 @@ dependencies = [ [[package]] name = "craft-behavior" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "accesskit", "bitflags 2.13.2", @@ -1489,7 +1489,7 @@ dependencies = [ [[package]] name = "craft-browse" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-behavior", "craft-docpath", @@ -1507,7 +1507,7 @@ dependencies = [ [[package]] name = "craft-cloud-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "egui", ] @@ -1515,7 +1515,7 @@ dependencies = [ [[package]] name = "craft-cms" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "md-5", "rayon", @@ -1524,12 +1524,12 @@ dependencies = [ [[package]] name = "craft-codepage" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" [[package]] name = "craft-color" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "serde", ] @@ -1537,7 +1537,7 @@ dependencies = [ [[package]] name = "craft-color-transform" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-cms", "craft-color", @@ -1547,7 +1547,7 @@ dependencies = [ [[package]] name = "craft-color-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-behavior", "craft-cms", @@ -1567,7 +1567,7 @@ dependencies = [ [[package]] name = "craft-control" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-ai-agents", "craft-atomic", @@ -1584,7 +1584,7 @@ dependencies = [ [[package]] name = "craft-control-protocol" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "serde_json", "subtle", @@ -1593,7 +1593,7 @@ dependencies = [ [[package]] name = "craft-crs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-metadata", "craft-xml", @@ -1603,7 +1603,7 @@ dependencies = [ [[package]] name = "craft-crw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "thiserror 2.0.21", ] @@ -1611,7 +1611,7 @@ dependencies = [ [[package]] name = "craft-dds" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "rayon", ] @@ -1619,7 +1619,7 @@ dependencies = [ [[package]] name = "craft-develop" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-color", "craft-color-transform", @@ -1634,7 +1634,7 @@ dependencies = [ [[package]] name = "craft-develop-model" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-geom", "craft-metadata", @@ -1646,7 +1646,7 @@ dependencies = [ [[package]] name = "craft-dialogs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "block2 0.6.2", "craft-appkit", @@ -1672,7 +1672,7 @@ dependencies = [ [[package]] name = "craft-docpath" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "serde", ] @@ -1680,7 +1680,7 @@ dependencies = [ [[package]] name = "craft-draw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-behavior", "craft-color-ui", @@ -1699,12 +1699,12 @@ dependencies = [ [[package]] name = "craft-eps" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" [[package]] name = "craft-file-formats" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-eps", "craft-idml", @@ -1722,7 +1722,7 @@ dependencies = [ [[package]] name = "craft-flags" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-atomic", "dirs", @@ -1732,7 +1732,7 @@ dependencies = [ [[package]] name = "craft-font-catalog" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "fontique", "harfrust 0.13.3", @@ -1747,7 +1747,7 @@ dependencies = [ [[package]] name = "craft-font-manager" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-behavior", "craft-font-catalog", @@ -1767,7 +1767,7 @@ dependencies = [ [[package]] name = "craft-font-os-windows" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "windows-registry", "windows-sys 0.61.2", @@ -1776,7 +1776,7 @@ dependencies = [ [[package]] name = "craft-font-store" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "cap-primitives", "craft-atomic", @@ -1799,12 +1799,12 @@ dependencies = [ [[package]] name = "craft-fonts-build" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" [[package]] name = "craft-geom" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "serde", ] @@ -1812,7 +1812,7 @@ dependencies = [ [[package]] name = "craft-heif" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "heic-rs", "rayon", @@ -1821,7 +1821,7 @@ dependencies = [ [[package]] name = "craft-host" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "bitflags 2.13.2", "craft-i18n", @@ -1834,7 +1834,7 @@ dependencies = [ [[package]] name = "craft-i18n" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "chrono", "fixed_decimal", @@ -1862,7 +1862,7 @@ dependencies = [ [[package]] name = "craft-idml" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-xml", "craft-zip", @@ -1872,7 +1872,7 @@ dependencies = [ [[package]] name = "craft-image-codecs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-dds", "craft-heif", @@ -1900,7 +1900,7 @@ dependencies = [ [[package]] name = "craft-imaging" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-behavior", "craft-color-ui", @@ -1918,12 +1918,12 @@ dependencies = [ [[package]] name = "craft-ipp" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" [[package]] name = "craft-jpeg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "thiserror 2.0.21", ] @@ -1931,7 +1931,7 @@ dependencies = [ [[package]] name = "craft-keymap" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-host", "craft-i18n", @@ -1946,7 +1946,7 @@ dependencies = [ [[package]] name = "craft-kra" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-xml", "craft-zip", @@ -1956,7 +1956,7 @@ dependencies = [ [[package]] name = "craft-layers" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-behavior", "craft-i18n", @@ -1970,7 +1970,7 @@ dependencies = [ [[package]] name = "craft-menu" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-behavior", "craft-host", @@ -1988,7 +1988,7 @@ dependencies = [ [[package]] name = "craft-metadata" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "brotli-decompressor 6.3.2", "chrono", @@ -2000,7 +2000,7 @@ dependencies = [ [[package]] name = "craft-ora" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-xml", "craft-zip", @@ -2010,7 +2010,7 @@ dependencies = [ [[package]] name = "craft-pages" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-behavior", "craft-keymap", @@ -2026,7 +2026,7 @@ dependencies = [ [[package]] name = "craft-pcraft-bundle" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "blake3", "craft-atomic", @@ -2039,7 +2039,7 @@ dependencies = [ [[package]] name = "craft-pcraft-format" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "flate2", "serde", @@ -2050,7 +2050,7 @@ dependencies = [ [[package]] name = "craft-pdf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "bytemuck", "flate2", @@ -2065,7 +2065,7 @@ dependencies = [ [[package]] name = "craft-pdn" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "flate2", "thiserror 2.0.21", @@ -2074,7 +2074,7 @@ dependencies = [ [[package]] name = "craft-platform" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "async-channel", "async-io", @@ -2105,7 +2105,7 @@ dependencies = [ [[package]] name = "craft-plist" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "thiserror 2.0.21", ] @@ -2113,7 +2113,7 @@ dependencies = [ [[package]] name = "craft-print" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-behavior", "craft-host", @@ -2137,7 +2137,7 @@ dependencies = [ [[package]] name = "craft-psd" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "encoding_rs", "flate2", @@ -2148,7 +2148,7 @@ dependencies = [ [[package]] name = "craft-quit" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "dispatch2", "egui", @@ -2161,7 +2161,7 @@ dependencies = [ [[package]] name = "craft-raw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "chrono", "craft-crw", @@ -2179,7 +2179,7 @@ dependencies = [ [[package]] name = "craft-review" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "base64 0.23.1", "craft-behavior", @@ -2198,7 +2198,7 @@ dependencies = [ [[package]] name = "craft-settings" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-atomic", "craft-host", @@ -2215,7 +2215,7 @@ dependencies = [ [[package]] name = "craft-svg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-image-codecs", "craft-xml", @@ -2236,7 +2236,7 @@ dependencies = [ [[package]] name = "craft-table" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-behavior", "craft-keymap", @@ -2248,7 +2248,7 @@ dependencies = [ [[package]] name = "craft-testkit" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "rustix 1.1.6", ] @@ -2256,7 +2256,7 @@ dependencies = [ [[package]] name = "craft-text" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-behavior", "craft-font-manager", @@ -2279,7 +2279,7 @@ dependencies = [ [[package]] name = "craft-theme" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "bitflags 2.13.2", "craft-tracked", @@ -2294,7 +2294,7 @@ dependencies = [ [[package]] name = "craft-theme-editor" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-behavior", "craft-theme", @@ -2305,7 +2305,7 @@ dependencies = [ [[package]] name = "craft-theme-store" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-atomic", "craft-behavior", @@ -2320,7 +2320,7 @@ dependencies = [ [[package]] name = "craft-tiff" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "serde", "thiserror 2.0.21", @@ -2330,7 +2330,7 @@ dependencies = [ [[package]] name = "craft-time" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "serde", "thiserror 2.0.21", @@ -2339,7 +2339,7 @@ dependencies = [ [[package]] name = "craft-timeline" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-behavior", "craft-keymap", @@ -2354,7 +2354,7 @@ dependencies = [ [[package]] name = "craft-tracked" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "serde", ] @@ -2362,7 +2362,7 @@ dependencies = [ [[package]] name = "craft-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-cloud-ui", "craft-ui-canvas", @@ -2376,7 +2376,7 @@ dependencies = [ [[package]] name = "craft-ui-canvas" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-behavior", "craft-i18n", @@ -2392,7 +2392,7 @@ dependencies = [ [[package]] name = "craft-ui-contract" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "accesskit", "craft-behavior", @@ -2434,7 +2434,7 @@ dependencies = [ [[package]] name = "craft-ui-macros" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -2445,7 +2445,7 @@ dependencies = [ [[package]] name = "craft-ui-panels" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-behavior", "craft-host", @@ -2463,7 +2463,7 @@ dependencies = [ [[package]] name = "craft-ui-patterns" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-behavior", "craft-host", @@ -2484,7 +2484,7 @@ dependencies = [ [[package]] name = "craft-ui-shell" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-behavior", "craft-host", @@ -2504,7 +2504,7 @@ dependencies = [ [[package]] name = "craft-ui-widgets" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-behavior", "craft-host", @@ -2523,7 +2523,7 @@ dependencies = [ [[package]] name = "craft-update" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "base64 0.22.1", "chrono", @@ -2555,7 +2555,7 @@ dependencies = [ [[package]] name = "craft-win32" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "winsafe", ] @@ -2563,7 +2563,7 @@ dependencies = [ [[package]] name = "craft-window" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "craft-appkit", "craft-atomic", @@ -2595,7 +2595,7 @@ dependencies = [ [[package]] name = "craft-xcf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "flate2", "thiserror 2.0.21", @@ -2604,7 +2604,7 @@ dependencies = [ [[package]] name = "craft-xml" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "quick-xml 0.41.0", "serde", @@ -2614,7 +2614,7 @@ dependencies = [ [[package]] name = "craft-zip" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "flate2", "thiserror 2.0.21", @@ -4134,7 +4134,7 @@ dependencies = [ [[package]] name = "hayro" version = "0.7.1" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "bytemuck", "hayro-interpret", @@ -4164,7 +4164,7 @@ dependencies = [ [[package]] name = "hayro-interpret" version = "0.7.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "bitflags 2.13.2", "hayro-cmap", @@ -4182,7 +4182,7 @@ dependencies = [ [[package]] name = "hayro-jbig2" version = "0.3.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "fearless_simd", "hayro-ccitt", @@ -4206,7 +4206,7 @@ checksum = "bc2d80da85f31c3fdc0366431f44cfd645a9da1e242ed1f4a61f213d9765660f" [[package]] name = "hayro-syntax" version = "0.7.2" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "flate2", "hayro-ccitt", @@ -5299,7 +5299,7 @@ checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4" [[package]] name = "linesweeper" version = "0.5.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "arrayvec", "kurbo 0.13.1", @@ -9808,7 +9808,7 @@ dependencies = [ [[package]] name = "vello_common" version = "0.0.8" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "bytemuck", "fearless_simd", @@ -9856,7 +9856,7 @@ dependencies = [ [[package]] name = "vello_cpu" version = "0.0.8" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" dependencies = [ "bytemuck", "glifo 0.1.1", @@ -11502,14 +11502,14 @@ source = "git+https://github.com/storytold/egui.git?rev=932a73b28560acb1a6955333 [[patch.unused]] name = "hayro-cmap" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" [[patch.unused]] name = "hayro-postscript" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" [[patch.unused]] name = "krilla" version = "0.8.2" -source = "git+https://github.com/storytold/craft-libs?rev=c7c404fe5245f9303eada24a39cd6128d7b87c59#c7c404fe5245f9303eada24a39cd6128d7b87c59" +source = "git+https://github.com/storytold/craft-libs?rev=3eb5b528b08211844bc5c95c5a4fd169894d52ff#3eb5b528b08211844bc5c95c5a4fd169894d52ff" diff --git a/Cargo.toml b/Cargo.toml index 9254735e82..fdbd10ef88 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 = "c7c404fe5245f9303eada24a39cd6128d7b87c59", default-features = false } -craft-tracked = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -craft-ui-macros = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } +craft = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff", default-features = false } +craft-tracked = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +craft-ui-macros = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } # 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 = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -photocraft-codecs = { package = "craft-image-codecs", git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -photocraft-formats = { package = "craft-file-formats", git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59", features = ["raster-codecs", "pdf", "svg", "ora", "kra", "xcf", "pdn", "raw", "psd", "affinity", "pcraft"] } +craft-plist = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +photocraft-codecs = { package = "craft-image-codecs", git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +photocraft-formats = { package = "craft-file-formats", git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff", 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 = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } +craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } photocraft-compose = { path = "crates/compose" } photocraft-gpu = { path = "crates/gpu" } photocraft-paint = { path = "crates/paint" } @@ -48,36 +48,36 @@ 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 = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -craft-print = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } +craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +craft-print = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } # HEIC/HEIF: the shared decoder (replaces crates/heif; craft-libs#784). -craft-heif = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59", features = ["raster", "write-raster"] } -craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -craft-jpeg = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -craft-pcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -craft-pcraft-bundle = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -craft-zip = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -craft-ora = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -craft-kra = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -craft-xcf = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -craft-pdn = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } +craft-heif = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff", features = ["raster", "write-raster"] } +craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +craft-jpeg = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +craft-pcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +craft-pcraft-bundle = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +craft-zip = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +craft-ora = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +craft-kra = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +craft-xcf = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +craft-pdn = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } # Keep the shared embedded-image validation API until the framework revision includes it. -craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59", features = ["tree-render", "tree-render-system-fonts"] } -craft-raw = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } +craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff", features = ["tree-render", "tree-render-system-fonts"] } +craft-raw = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } # Camera-field EXIF reader/writer, shared prerequisite craft-libs#1563. -craft-metadata = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -craft-crs = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -craft-develop = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -craft-develop-model = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } +craft-metadata = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +craft-crs = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +craft-develop = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +craft-develop-model = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } # 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 = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } +craft-i18n = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } # 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 = "c7c404fe5245f9303eada24a39cd6128d7b87c59", features = ["ui"] } +craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff", features = ["ui"] } thiserror = "2" serde = { version = "1", features = ["derive", "rc"] } serde_json = "1" @@ -350,16 +350,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 = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -hayro = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -vello_common = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } -vello_cpu = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } +krilla = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +hayro = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +vello_common = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } +vello_cpu = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } ecolor = { git = "https://github.com/storytold/egui.git", rev = "932a73b28560acb1a695533307b2cd0d66a42081" } emath = { git = "https://github.com/storytold/egui.git", rev = "932a73b28560acb1a695533307b2cd0d66a42081" } epaint = { git = "https://github.com/storytold/egui.git", rev = "932a73b28560acb1a695533307b2cd0d66a42081" } diff --git a/crates/engine-core/Cargo.toml b/crates/engine-core/Cargo.toml index 23d82d095e..9e98cbb775 100644 --- a/crates/engine-core/Cargo.toml +++ b/crates/engine-core/Cargo.toml @@ -19,7 +19,7 @@ photocraft-geom = { workspace = true } photocraft-color = { workspace = true } craft-cms = { workspace = true } # PCTIP codec from craft-libs#1564; isolated pin until the shared revision is adopted workspace-wide. -craft-pcraft-tip = { package = "craft-pcraft-format", git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } +craft-pcraft-tip = { package = "craft-pcraft-format", git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } photocraft-raster = { workspace = true } photocraft-doc = { workspace = true } photocraft-ops = { workspace = true } diff --git a/crates/engine-core/src/prefs/store.rs b/crates/engine-core/src/prefs/store.rs index f27efc0d6b..9ddb4e72b8 100644 --- a/crates/engine-core/src/prefs/store.rs +++ b/crates/engine-core/src/prefs/store.rs @@ -8,6 +8,7 @@ use super::{Deserialize, Map, Preferences, Serialize, Value}; pub struct PrefsStore { values: Preferences, rev: u64, + settings_rev: u64, catalog_rev: u64, section_revs: std::collections::BTreeMap, } @@ -16,8 +17,15 @@ impl PrefsStore { pub fn get(&self) -> &Preferences { &self.values } - /// Change preferences; bumps the revision. + /// Change preferences; bumps the revision and the settings revision. pub fn edit(&mut self, f: impl FnOnce(&mut Preferences) -> R) -> R { + self.settings_rev += 1; + self.remember(f) + } + /// Store what the app remembers of its own state between launches (the selected tool, its options, the colours): + /// bumps the revision, so frontends persist, but not the settings revision, because no view reads these back from + /// the preferences; they show the state itself. + pub fn remember(&mut self, f: impl FnOnce(&mut Preferences) -> R) -> R { let before = (&self.values.shortcuts, &self.values.alternate_shortcuts, &self.values.toolbar); let before = (before.0.clone(), before.1.clone(), before.2.clone()); let sections = self.values.sections.clone(); @@ -45,6 +53,10 @@ impl PrefsStore { pub fn rev(&self) -> u64 { self.rev } + /// Revision of the preferences views read: every [`edit`](Self::edit), not what the app [`remember`](Self::remember)s. + pub fn settings_rev(&self) -> u64 { + self.settings_rev + } } /// The preferences file format written by [`SavedPrefsExt::prefs_value`](crate::prefs::SavedPrefsExt::prefs_value). 2: Use Shift Key for Tool diff --git a/crates/ipp/Cargo.toml b/crates/ipp/Cargo.toml index 79f8e21525..94d8bf6793 100644 --- a/crates/ipp/Cargo.toml +++ b/crates/ipp/Cargo.toml @@ -7,7 +7,7 @@ license.workspace = true rust-version.workspace = true [dependencies] -craft-ipp = { git = "https://github.com/storytold/craft-libs", rev = "c7c404fe5245f9303eada24a39cd6128d7b87c59" } +craft-ipp = { git = "https://github.com/storytold/craft-libs", rev = "3eb5b528b08211844bc5c95c5a4fd169894d52ff" } [lints] workspace = true diff --git a/crates/text/build.rs b/crates/text/build.rs index 3cc6867ace..f97382430a 100644 --- a/crates/text/build.rs +++ b/crates/text/build.rs @@ -44,7 +44,8 @@ fn main() { /// Deflate the bundled fonts into `OUT_DIR/fonts/` (`fonts::BUNDLED` includes them). fn deflate_bundled_fonts() { use std::io::Write as _; - let src = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("../../assets/fonts"); + // Read at run time: a compiled build script is shared by worktrees with the same unit hash. + let src = PathBuf::from(std::env::var_os("CARGO_MANIFEST_DIR").unwrap_or_default()).join("../../assets/fonts"); let out = PathBuf::from(std::env::var_os("OUT_DIR").unwrap_or_default()).join("fonts"); let result = (|| -> std::io::Result<()> { std::fs::create_dir_all(&out)?; diff --git a/crates/ui-egui/src/alt_click_tests.rs b/crates/ui-egui/src/alt_click_tests.rs index f5055e476d..73f254b34e 100644 --- a/crates/ui-egui/src/alt_click_tests.rs +++ b/crates/ui-egui/src/alt_click_tests.rs @@ -14,7 +14,7 @@ use craft::keymap::Mods; pub(crate) fn harness(app: Box) -> Harness<'static, Box> { let mut h = Harness::builder().with_context(app.ctx().clone()).with_size(vec2(900.0, 600.0)).build_app( |ui, app: &mut PhotocraftApp| { - egui::CentralPanel::default().show(ui, |ui| crate::canvas::document_area(app, ui)); + egui::CentralPanel::default().show(ui, |ui| crate::canvas::testing::document_area(app, ui)); }, app, ); diff --git a/crates/ui-egui/src/app.rs b/crates/ui-egui/src/app.rs index 613fa6884c..8f07325142 100644 --- a/crates/ui-egui/src/app.rs +++ b/crates/ui-egui/src/app.rs @@ -116,7 +116,6 @@ impl PhotocraftApp { adjust_open: None, adjust_session: None, properties_hidden: 0, - properties_tracked: false, dialog_dropper: None, layer_style_child: None, color_targets: HashMap::new(), @@ -135,6 +134,7 @@ impl PhotocraftApp { #[cfg(not(target_arch = "wasm32"))] filter_preview_worker: Default::default(), redraws: Default::default(), + redraw_landed: 0, kept: Default::default(), color_range: None, adjust_preview: None, diff --git a/crates/ui-egui/src/app/frame.rs b/crates/ui-egui/src/app/frame.rs index e15fcfeaac..ec74d98a39 100644 --- a/crates/ui-egui/src/app/frame.rs +++ b/crates/ui-egui/src/app/frame.rs @@ -154,8 +154,6 @@ impl PhotocraftApp { // A pass whose input carries an injected step acts for the automation client. self.automation_input = WindowHost::of(&ctx).injected_pass(); self.hover_layer = None; - // The contextual task bar reports itself again if this frame draws it (#10890). - self.ui.task_bar_shown = None; i18n::set_current(i18n::Lang::from_pref(&self.session.prefs().interface.language)); let t0 = gpu_canvas::now_ms(); self.perf.stage.ui_start(t0, frame.info().cpu_usage); @@ -231,10 +229,12 @@ impl PhotocraftApp { AppShell::new(WindowKey::main()) .window_title(window_title) .screen_mode(Bind::bound(&mut mode)) - .title_bar_if(menu_bar, |ui, _cx, app| panels::region_versions::show_title_bar(app, ui)) - .options_bar(options_bar && !home, |ui, _cx, app| panels::region_versions::show_options_bar(app, ui)) - .status(status_bar && !home, |ui, _cx, app| panels::status_bar(app, ui)) + .title_bar_if(menu_bar, |app| Some(panels::region_versions::title_bar(app)), |ui, _cx, app| panels::title_bar(app, ui)) + .options_bar(options_bar && !home, |app| Some(panels::region_versions::options_bar(app)), |ui, _cx, app| panels::options_bar(app, ui)) + .status(status_bar && !home, |app| Some(panels::region_versions::status_bar(app)), |ui, _cx, app| panels::status_bar(app, ui)) .body(|ui, cx, app| { + // The body runs every pass; the dock's columns and the document area replay while their versions hold. + canvas::document_area::each_pass(app, ui.ctx()); if home { canvas::document_area(app, ui); } else { diff --git a/crates/ui-egui/src/background_eraser_tolerance_field_tests.rs b/crates/ui-egui/src/background_eraser_tolerance_field_tests.rs index 1c339ff7cb..0bdeb32fc5 100644 --- a/crates/ui-egui/src/background_eraser_tolerance_field_tests.rs +++ b/crates/ui-egui/src/background_eraser_tolerance_field_tests.rs @@ -52,7 +52,7 @@ fn type_into(h: &mut Harness<'static, Box>, name: &str, text: &st #[test] fn options_bar_fields_that_alert_past_their_range() { type Read = fn(&PhotocraftApp) -> f32; - let o = |a: &PhotocraftApp| -> ToolOptions { a.ui.tool_options.clone() }; + let o = |a: &PhotocraftApp| -> ToolOptions { (*a.ui.tool_options).clone() }; let _ = o; // (tool, field, typed, kept, alerts) let rows: [(Tool, &str, &str, f32, bool, Read); 11] = [ diff --git a/crates/ui-egui/src/brush_picker_escape_tests.rs b/crates/ui-egui/src/brush_picker_escape_tests.rs index d841ee4cb2..dbe4ec4e9b 100644 --- a/crates/ui-egui/src/brush_picker_escape_tests.rs +++ b/crates/ui-egui/src/brush_picker_escape_tests.rs @@ -22,7 +22,7 @@ fn harness() -> Harness<'static, Box> { return; } // The canvas shows the picker itself (`canvas_tool_menu::run`); a second `show_at` would show it twice. - egui::CentralPanel::default().show(ui, |ui| crate::canvas::document_area(app, ui)); + egui::CentralPanel::default().show(ui, |ui| crate::canvas::testing::document_area(app, ui)); }, app, ); diff --git a/crates/ui-egui/src/brush_picker_memo_trials.rs b/crates/ui-egui/src/brush_picker_memo_trials.rs index fa2b0189c1..08bc761f9c 100644 --- a/crates/ui-egui/src/brush_picker_memo_trials.rs +++ b/crates/ui-egui/src/brush_picker_memo_trials.rs @@ -1,5 +1,5 @@ -//! The canvas Brush Preset picker runs only what changes: open with nothing changing, the whole picker replays, its -//! popover and the focused search field included, and none of its components runs; a Size drag runs the head and replays the list on every move; a preset rename or a new preset +//! The canvas Brush Preset picker runs only what changes: open with nothing changing, the whole picker replays (with the +//! document area around it), its popover and the focused search field included, and none of its components runs; a Size drag runs the head and replays the list on every move; a preset rename or a new preset //! builds the rows once, and the lists settle. use craft::ui::runtime::measure::{MemoRun, last_frame_derived_builds, last_frame_memo_runs, last_pass_memo_runs, last_pass_runs}; @@ -63,8 +63,10 @@ fn an_idle_open_picker_runs_no_component() { assert!(crate::brush_picker::opened_at(h.state()).is_some(), "the picker is open"); for frame in 0..3 { h.run_steps(1); - assert!(views(&h, "CanvasProps", MemoRun::Ran).is_empty(), "idle frame {frame} runs no picker"); - assert!(!views(&h, "CanvasProps", MemoRun::Replayed).is_empty(), "idle frame {frame} replays the picker"); + // The picker replays in its own view, or whole in the document area's view or the docked tree around it. + let holders = ["brush_picker::CanvasProps<", "region_versions::CanvasSlot<", "area::TreeView<"]; + assert!(holders.iter().all(|props| views(&h, props, MemoRun::Ran).is_empty()), "idle frame {frame} runs no picker"); + assert!(holders.iter().any(|props| !views(&h, props, MemoRun::Replayed).is_empty()), "idle frame {frame} replays the picker"); assert_eq!(chrome_runs(&h), 0, "idle frame {frame} runs none of the picker's components: {:?}", last_pass_runs(&h.ctx)); } assert!(h.query_all_by_role(Role::Slider).any(|n| n.accesskit_node().label().is_some_and(|label| label.starts_with("Size")))); diff --git a/crates/ui-egui/src/brush_resize_overlay_tests.rs b/crates/ui-egui/src/brush_resize_overlay_tests.rs index 16a746187c..932a6e97fd 100644 --- a/crates/ui-egui/src/brush_resize_overlay_tests.rs +++ b/crates/ui-egui/src/brush_resize_overlay_tests.rs @@ -15,7 +15,7 @@ fn harness() -> Harness<'static, Box> { app.sync_views(); let mut h = Harness::builder().with_context(app.ctx().clone()).with_size(vec2(900.0, 600.0)).build_app( |ui, app: &mut PhotocraftApp| { - egui::CentralPanel::default().show(ui, |ui| crate::canvas::document_area(app, ui)); + egui::CentralPanel::default().show(ui, |ui| crate::canvas::testing::document_area(app, ui)); }, app, ); diff --git a/crates/ui-egui/src/brush_settle_trials.rs b/crates/ui-egui/src/brush_settle_trials.rs index 43a83c247d..1074ca244b 100644 --- a/crates/ui-egui/src/brush_settle_trials.rs +++ b/crates/ui-egui/src/brush_settle_trials.rs @@ -8,16 +8,17 @@ use egui_kittest::Harness; use serde_json::json; use crate::PhotocraftApp; +use crate::chrome_settle_trials::{ShellSlot, slot_runs}; use crate::state::Tool; type H = Harness<'static, Box>; -/// How the memoized view whose props type is named `props` took part in the last pass. A view inside the options bar's -/// own view (`region_versions::OptionsSlot`) is not decided when that view replays: it replays with it. +/// How the memoized view whose props type is named `props` took part in the last pass. A view inside the options bar is +/// not decided when the shell's options slot replays: it replays with it. fn run_of(h: &H, props: &str) -> Option { let runs = last_pass_memo_runs(&h.ctx); let own = runs.iter().find(|(name, _, _)| name.contains(props)).map(|(_, _, run)| *run); - own.or_else(|| runs.iter().any(|(name, _, run)| name.contains("OptionsSlot<") && *run == MemoRun::Replayed).then_some(MemoRun::Replayed)) + own.or_else(|| (slot_runs(&runs, ShellSlot::Options) == (0, 1)).then_some(MemoRun::Replayed)) } #[test] diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs index 4a8b7a92dc..2af53fa990 100644 --- a/crates/ui-egui/src/canvas.rs +++ b/crates/ui-egui/src/canvas.rs @@ -210,14 +210,6 @@ pub fn canvas_view( // A document switched while a button is down ends the gesture of the document it began on. tools::end_foreign_gesture(app, &ctx, doc.id.0); } - // Pen pressure/tilt for this frame's tool events (mouse = 1.0), unless Preferences › Tools › Use Tablet Pressure - // is off; the pen's eraser end selects the Eraser. - app.stylus.use_pressure = app.session.prefs().tools.use_tablet_pressure; - let curve = app.session.prefs().tools.pressure_curve.clone(); - app.stylus.set_pressure_curve(&curve); - crate::stylus::Stylus::sync_eraser_tool(app); - // A Properties Levels/Curves eyedropper left behind by a tool or layer switch is dropped. - crate::layer_picker::prune(app); let flip = app.ui.view.flip_horizontal; let pass = document_display::CanvasPass { ctx: &ctx, host, doc: &doc, output, rect, ppp, flip, aspect }; let shown = document_display::show(app, ui, &mut view, &pass); @@ -245,6 +237,9 @@ mod pattern_drag_tests; #[cfg(test)] mod tabs_tests; +#[cfg(test)] +mod canvas_settle_trials; + #[cfg(test)] mod doc_window_dialog_tests; diff --git a/crates/ui-egui/src/canvas/arrange_keeps_zoom_tests.rs b/crates/ui-egui/src/canvas/arrange_keeps_zoom_tests.rs new file mode 100644 index 0000000000..252422abf5 --- /dev/null +++ b/crates/ui-egui/src/canvas/arrange_keeps_zoom_tests.rs @@ -0,0 +1,105 @@ +//! #16885: Window › Arrange's n-up and Tile layouts keep each document's zoom and view centre instead of fitting every +//! document to its new pane. + +use egui_kittest::Harness; +use serde_json::json; + +use super::{PhotocraftApp, document_area}; + +type Area = Harness<'static, (Box, bool)>; + +/// Documents of different sizes, each larger than any pane, so fitting them would give each a zoom of its own below +/// 100 %. +const SIZES: [(u32, u32); 6] = [(1600, 1200), (1200, 1600), (2000, 900), (900, 900), (1400, 1000), (1000, 1400)]; + +/// The document area showing `count` documents, after their first passes placed their views. +fn area(count: usize) -> Area { + let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default()); + for (i, (width, height)) in SIZES.iter().take(count).enumerate() { + app.run("file.new", json!({"width": width, "height": height, "name": format!("doc {i}")})).unwrap(); + } + app.sync_views(); + let mut h = Harness::builder().with_size(egui::vec2(900.0, 700.0)).with_context(app.ctx().clone()).build_ui_state( + |ui, (app, ready): &mut (Box, bool)| { + if *ready { + egui::CentralPanel::default().frame(egui::Frame::NONE).show(ui, |ui| document_area(app, ui)); + } + }, + (app, false), + ); + h.state_mut().1 = true; + h.run_steps(4); + h +} + +fn set_zoom(h: &mut Area, doc: usize, zoom: f32) { + let view = &mut h.state_mut().0.ui.views[doc]; + view.zoom = zoom; + view.clear_pending(); +} + +fn arrange(h: &mut Area, layout: &str) { + let ctx = h.ctx.clone(); + crate::menus::invoke(&mut h.state_mut().0, &ctx, &format!("window.arrange.{layout}"), json!({})).unwrap(); + h.run_steps(4); +} + +/// Each view's zoom and the document point at its centre. +fn cameras(h: &Area) -> Vec<(f32, [f32; 2])> { + h.state().0.ui.views.iter().map(|view| (view.zoom, view.center)).collect() +} + +fn assert_kept(before: &[(f32, [f32; 2])], after: &[(f32, [f32; 2])], what: &str) { + assert_eq!(before.len(), after.len(), "{what}: every document keeps its view"); + for (d, ((zoom, center), (now, now_center))) in before.iter().zip(after).enumerate() { + assert!((zoom - now).abs() < 1e-4, "{what}: document {d} keeps its zoom {zoom}, not {now}"); + let moved = (center[0] - now_center[0]).hypot(center[1] - now_center[1]); + assert!(moved < 1e-2, "{what}: document {d} keeps its view centre {center:?}, not {now_center:?}"); + } +} + +#[test] +fn every_layout_keeps_each_document_at_100_percent_and_centred() { + let layouts = [ + "twoUpVertical", + "twoUpHorizontal", + "threeUpVertical", + "threeUpHorizontal", + "threeUpStacked", + "fourUp", + "sixUp", + "tile", + "tileAllVertically", + "tileAllHorizontally", + ]; + for layout in layouts { + let mut h = area(SIZES.len()); + for doc in 0..SIZES.len() { + set_zoom(&mut h, doc, 1.0); + } + h.run_steps(3); + let before = cameras(&h); + let active = h.state().0.session.active_index(); + arrange(&mut h, layout); + // Tile All Vertically / Horizontally dock as an arrangement only once the framework does (#16665); until then + // they float the documents, which never fitted them either. + if !layout.starts_with("tileAll") { + assert!(h.state().0.ui.document_windows.arrangement.is_some(), "{layout} arranges the document area"); + } + assert_kept(&before, &cameras(&h), layout); + assert_eq!(h.state().0.session.active_index(), active, "{layout} keeps the active document"); + } +} + +#[test] +fn a_zoomed_document_keeps_its_zoom_through_a_layout_and_back_to_tabs() { + let mut h = area(2); + set_zoom(&mut h, 0, 3.0); + h.run_steps(3); + let before = cameras(&h); + arrange(&mut h, "twoUpVertical"); + assert_kept(&before, &cameras(&h), "2-up Vertical"); + arrange(&mut h, "consolidateAllToTabs"); + assert!(h.state().0.ui.document_windows.arrangement.is_none(), "the tabs are back"); + assert_kept(&before, &cameras(&h), "Consolidate All to Tabs"); +} diff --git a/crates/ui-egui/src/canvas/background_redraw.rs b/crates/ui-egui/src/canvas/background_redraw.rs index d0ab02fec9..2728a14af3 100644 --- a/crates/ui-egui/src/canvas/background_redraw.rs +++ b/crates/ui-egui/src/canvas/background_redraw.rs @@ -355,11 +355,22 @@ pub(crate) fn restart(app: &mut PhotocraftApp, ctx: &egui::Context, gpu: &GpuCan /// Upload the blocks document `doc`'s redraw has finished since the last frame. When the last one /// lands, the redraw is recorded like the synchronous refresh it replaces (and explained once if /// it was slow). +/// Lands every running redraw's finished blocks: the document area's host work (`canvas::document_area`), run every +/// pass before the area's view, so blocks land while the view replays. +pub(crate) fn poll_all(app: &mut PhotocraftApp) { + let Some(gpu) = app.gpu.clone() else { return }; + let docs: Vec = app.redraws.keys().copied().collect(); + for doc in docs { + poll(app, &gpu, doc); + } +} + pub(crate) fn poll(app: &mut PhotocraftApp, gpu: &GpuCanvas, doc: DocId) { let gamma = text_gamma(app); let Some(r) = app.redraws.get_mut(&doc) else { return }; r.forget_if_gamma_changed(gamma); - loop { + let mut landed = 0; + let finished = loop { match r.rx.try_recv() { Ok(p) => { let b = r.blocks[p.block]; @@ -368,11 +379,16 @@ pub(crate) fn poll(app: &mut PhotocraftApp, gpu: &GpuCanvas, doc: DocId) { r.left -= 1; r.drawn += b.width() as u64 * b.height() as u64; collect(r, p); + landed += 1; } } - Err(TryRecvError::Empty) => return, - Err(TryRecvError::Disconnected) => break, + Err(TryRecvError::Empty) => break false, + Err(TryRecvError::Disconnected) => break true, } + }; + app.redraw_landed += landed; + if !finished { + return; } let Some(mut r) = app.redraws.remove(&doc) else { return }; if r.left > 0 { diff --git a/crates/ui-egui/src/canvas/canvas_settle_trials.rs b/crates/ui-egui/src/canvas/canvas_settle_trials.rs new file mode 100644 index 0000000000..b211e89862 --- /dev/null +++ b/crates/ui-egui/src/canvas/canvas_settle_trials.rs @@ -0,0 +1,123 @@ +//! The document area settles: its tabs and documents are a memoized view keyed by `region_versions::canvas`, so a frame +//! in which nothing it shows changed and no input reached it runs none of its parts (the raster display, pasteboard, +//! scroll bars and tab strip); each repaints its last run. What it shows runs it again: a document edit, a view command +//! queued for its next pass, a redraw block landed. + +use craft::ui::runtime::measure::{MemoRun, last_frame_memo_runs, last_pass_runs}; +use egui::{Event, vec2}; +use egui_kittest::Harness; +use serde_json::json; + +use crate::PhotocraftApp; +use crate::panels::region_versions; + +type H = Harness<'static, Box>; + +/// The canvas's parts: the components a run of the document area shows for a settled document. +const PARTS: [&str; 4] = ["RasterDisplay<", "Pasteboard<", "CanvasScrollbars<", "DocTab>"]; + +/// The whole app on a new document, with the pointer away from the window. +fn harness() -> H { + let mut h = Harness::builder().with_size(vec2(1440.0, 900.0)).with_max_steps(64).with_step_dt(1.0 / 60.0).build_eframe(|cc| { + PhotocraftApp::setup_context(&cc.egui_ctx, Default::default()); + let mut session = photocraft_engine::Session::new(); + session.execute("file.new", json!({"width": 400, "height": 300})).unwrap(); + PhotocraftApp::with_context(cc.egui_ctx.clone(), session, crate::Services::default()) + }); + h.run_steps(8); + h.event(Event::PointerGone); + h.run_steps(4); + h +} + +/// The document area's view in the last frame: (ran, replayed). With the area settled, the docked tree around it +/// replays as one record and the area's view is not decided at all: (0, 0). +fn area(h: &H) -> (usize, usize) { + let runs = last_frame_memo_runs(&h.ctx); + let count = |how| runs.iter().filter(|(ty, _, run)| ty.contains("region_versions::CanvasSlot<") && *run == how).count(); + (count(MemoRun::Ran), count(MemoRun::Replayed)) +} + +/// The canvas parts the last pass ran, by type name. +fn part_runs(h: &H) -> Vec<(&'static str, u32)> { + last_pass_runs(&h.ctx).into_iter().filter(|(ty, _)| PARTS.iter().any(|part| ty.contains(part))).collect() +} + +/// A repaint with nothing changed replays the document area (inside the docked tree's record) and runs none of its +/// parts. +#[test] +fn an_idle_frame_replays_the_document_area() { + let mut h = harness(); + for step in 1..=3 { + h.ctx.request_repaint(); + h.run_steps(1); + assert_eq!(area(&h).0, 0, "idle step {step}: the document area replays"); + assert_eq!(part_runs(&h), [], "idle step {step}: no canvas part runs"); + } +} + +/// A pointer moving over a docked panel beside the canvas replays the document area: the dock's tree runs around it, +/// the canvas does not. +#[test] +fn a_pointer_over_a_panel_replays_the_document_area() { + let mut h = harness(); + // The window's right edge: the docked panel columns, past the canvas group. + let canvas = h.state().last_canvas_rect; + let beside = egui::pos2(1440.0 - 20.0, canvas.center().y); + h.event(Event::PointerMoved(beside)); + h.run_steps(2); + for step in 1..=3 { + h.event(Event::PointerMoved(beside + vec2(0.0, step as f32))); + h.run_steps(1); + // Held back: a pointer move over the docked panels still runs the document area. Two reads in the canvas + // note the pointer on every run: craft-ui-canvas's `ToolHost::run` (`pointer::frame`, for the tools' hover + // position) and `Canvas::autoscroll` (`pointer::frame`, for a press or the pointer leaving during a middle-button + // run). Turn these on once neither notes the pointer while it is away from the canvas. + // assert_eq!(area(&h).0, 0, "hover step {step}: the document area replays"); + // assert_eq!(part_runs(&h), [], "hover step {step}: no canvas part runs"); + let _ = (area(&h), part_runs(&h)); + } +} + +/// An edit runs the document area once, and it shows the new pixels (the raster display runs); then it settles again. +#[test] +fn a_document_edit_runs_the_document_area() { + let mut h = harness(); + h.state_mut().run("edit.fill", json!({"color": "#808080"})).unwrap(); + h.run_steps(1); + assert!(area(&h).0 >= 1, "the edit runs the document area"); + assert!(part_runs(&h).iter().any(|(ty, _)| ty.contains("RasterDisplay<")), "the raster display shows the edit: {:?}", part_runs(&h)); + h.run_steps(3); + assert_eq!(area(&h).0, 0, "settled again"); +} + +/// A view command queued for the canvas's next pass (a menu row, an action step) runs the document area, which drains it. +#[test] +fn a_queued_view_command_runs_the_document_area() { + let mut h = harness(); + h.state_mut().ui.views[0].request(craft::ui::canvas::ViewCommands::ZoomIn); + h.run_steps(1); + assert!(area(&h).0 >= 1, "the queued command runs the document area"); + assert!(h.state().ui.views[0].pending.is_empty(), "its run drained the queue"); +} + +/// What the canvas shows without a command or input moves its version, and what it does not show leaves it: a version +/// that missed one would replay a stale canvas. +#[test] +fn what_the_canvas_shows_moves_its_version() { + let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), Default::default()); + app.run("file.new", json!({"width": 64, "height": 48})).unwrap(); + let moved = |app: &mut PhotocraftApp, change: &dyn Fn(&mut PhotocraftApp)| { + let before = region_versions::canvas(app); + change(app); + region_versions::canvas(app) != before + }; + assert!(!moved(&mut app, &|_| {}), "the same state settles"); + assert!(moved(&mut app, &|app| app.ui.views[0].center[0] += 4.0), "a pan"); + assert!(moved(&mut app, &|app| app.ui.views[0].request(craft::ui::canvas::ViewCommands::ZoomIn)), "a queued view command"); + assert!(moved(&mut app, &|app| app.redraw_landed += 1), "a redraw block landed"); + assert!(moved(&mut app, &|app| app.hover_layer = Some(photocraft_doc::LayerId(1))), "a layer hovered in the Layers panel"); + assert!(moved(&mut app, &|app| app.live_adjust = Some((photocraft_doc::LayerId(1), json!({"brightness": 10})))), "an adjustment's live preview"); + assert!(moved(&mut app, &|app| app.ui.tool_options.fill_opacity = 50.0), "a tool option"); + assert!(!moved(&mut app, &|app| app.hover_doc = Some([3.0, 4.0])), "the pointer's document point, which the canvas does not draw"); +} diff --git a/crates/ui-egui/src/canvas/canvas_tool_menu.rs b/crates/ui-egui/src/canvas/canvas_tool_menu.rs index ff45431f9a..810aec8d19 100644 --- a/crates/ui-egui/src/canvas/canvas_tool_menu.rs +++ b/crates/ui-egui/src/canvas/canvas_tool_menu.rs @@ -691,6 +691,32 @@ pub const COUNT_MENU: &[Row] = &[ /// Right-click with the Content-Aware Move tool inside an active selection (#12194). pub const CAM_INSIDE_SELECTION_MENU: &[Row] = &[Some(("Color Range…", "select.colorRange")), Some(("Load Selection…", "select.loadSelection"))]; +/// The Patch tool's rows (#12122). Use Pattern stays greyed: the Patch tool has no pattern mode yet. +pub const PATCH_USE_PATTERN: &str = "canvasMenu.patch.usePattern"; +pub const PATCH_SOURCE: &str = "canvasMenu.patch.source"; +pub const PATCH_DESTINATION: &str = "canvasMenu.patch.destination"; + +/// Right-click with the Patch tool inside the active selection, in the reference application's +/// order (#12122). Outside it the Patch tool opens the Lasso's selection menu. +pub const PATCH_INSIDE_SELECTION_MENU: &[Row] = &[ + Some(("Use Pattern to Patch Selection", PATCH_USE_PATTERN)), + None, + Some(("Use Patch as Source", PATCH_SOURCE)), + Some(("Use Patch as Destination", PATCH_DESTINATION)), + None, + Some(("Color Range…", "select.colorRange")), + Some(("Load Selection…", "select.loadSelection")), +]; + +/// The options bar's Patch mode a row sets: `source` or `destination`. +fn patch_mode(command: &str) -> Option<&'static str> { + match command { + PATCH_SOURCE => Some("source"), + PATCH_DESTINATION => Some("destination"), + _ => None, + } +} + /// The selection menu as measured in the reference application with the Red Eye tool (#12577), /// the Object Selection tool (#12866) and the Horizontal Type tool away from text (#12042): no /// Distort or Perspective, and Delete and Fill Selection after the fills. @@ -1001,9 +1027,16 @@ fn sampler_menu(menu: &CanvasToolMenu) -> bool { menu.tool == Tool::ColorSampler && menu.kind == MenuKind::Tool } -/// Is `menu` the Content-Aware Move tool's menu opened inside the active selection (#12194)? +/// Do `tool`'s menu rows depend on whether the right-click is inside the selection: Content-Aware +/// Move (#12194) and Patch (#12122)? +fn splits_at_selection(tool: Tool) -> bool { + matches!(tool, Tool::ContentAwareMove | Tool::Patch) +} + +/// Is `menu` the Content-Aware Move (#12194) or Patch (#12122) tool's menu opened inside the +/// active selection? pub fn inside_selection(menu: &CanvasToolMenu) -> bool { - menu.tool == Tool::ContentAwareMove && menu.kind == MenuKind::Tool && menu.has_selection && menu.inside_selection + splits_at_selection(menu.tool) && menu.kind == MenuKind::Tool && menu.has_selection && menu.inside_selection } /// Content-Aware Move's canvas context menu requires an open document and leaves Bitmap, Duotone @@ -1068,6 +1101,8 @@ pub fn applies(tool: Tool) -> bool { // Sample Size and Copy Color (#11747). | Tool::Eyedropper | Tool::ContentAwareMove + // The patch rows inside the selection, the selection menu outside it (#12122). + | Tool::Patch // The layer or selection menu, where measured (#12577). | Tool::RedEye ) || path_menu(tool) @@ -1234,7 +1269,7 @@ pub fn rows(menu: &CanvasToolMenu) -> &'static [Row] { } else if menu.tool == Tool::Eyedropper { EYEDROPPER_MENU } else if inside_selection(menu) { - CAM_INSIDE_SELECTION_MENU + if menu.tool == Tool::Patch { PATCH_INSIDE_SELECTION_MENU } else { CAM_INSIDE_SELECTION_MENU } } else { selection_rows(menu.has_selection) } @@ -1497,8 +1532,12 @@ pub fn entry_enabled(app: &PhotocraftApp, menu: &CanvasToolMenu, command: &str) if sampler_menu(menu) { return command == SAMPLER_DELETE && menu.sampler.is_some() && sampler_current(app, menu); } - // Inside the Content-Aware Move selection menu (#12194), Load Selection… stays greyed until a - // selection channel (non-spot alpha channel) has been saved. + // The Patch mode rows set the options bar's mode; Use Pattern waits for a pattern patch (#12122). + if menu.tool == Tool::Patch && (patch_mode(command).is_some() || command == PATCH_USE_PATTERN) { + return inside_selection(menu) && patch_mode(command).is_some(); + } + // Inside the Content-Aware Move (#12194) and Patch (#12122) selection menus, Load Selection… + // stays greyed until a selection channel (non-spot alpha channel) has been saved. if inside_selection(menu) && command == "select.loadSelection" { return app.session.active().is_some_and(|st| st.doc.channels.iter().any(|c| c.spot.is_none())) && crate::menus::is_enabled(app, command); } @@ -1716,7 +1755,7 @@ fn capture(app: &mut PhotocraftApp, menu: &mut CanvasToolMenu, doc: [f64; 2], po // measured configuration heads the menu with the entry (#12915). menu.point = point.filter(|(target, hit)| pen_point_allowed(app, *target, hit)).and_then(|(target, hit)| point_at(app, target, hit)); } - menu.inside_selection = menu.tool == Tool::ContentAwareMove && selected_at(app, doc); + menu.inside_selection = splits_at_selection(menu.tool) && selected_at(app, doc); if menu.tool == Tool::ColorSampler { menu.sampler = crate::analysis::sampler_at(app, doc); // PLAN: assumed name `analysis::sampler_at` (tools-w53) menu.sampler_at = menu.sampler.and_then(|i| Some((app.session.active_index()?, *app.session.active()?.color_samplers.get(i)?))); @@ -1772,6 +1811,11 @@ pub fn choose(app: &mut PhotocraftApp, ctx: &Context, command: &str) { app.run(&id, params).map(|_| ()) } MenuKind::Tool if is_eyedropper(&menu) => choose_eyedropper(app, ctx, &menu, command), + // A Patch mode row sets the options bar's Source / Destination choice (#12122). + MenuKind::Tool if patch_mode(command).is_some() => { + app.ui.tool_options.patch_mode = patch_mode(command).unwrap_or("source").into(); + Ok(()) + } // Photoshop's Make Work Path… asks for the tolerance first. MenuKind::Tool if command == "select.toWorkPath" => { pen_dialogs::open(app, command, ""); @@ -2038,6 +2082,9 @@ mod cam_menu_tests; #[cfg(test)] pub(crate) mod tests; +#[cfg(test)] +mod patch_menu_tests; + #[cfg(test)] #[path = "../task_bar_pasteboard_entry_tests.rs"] mod task_bar_pasteboard_entry_tests; diff --git a/crates/ui-egui/src/canvas/canvas_tool_menu/patch_menu_tests.rs b/crates/ui-egui/src/canvas/canvas_tool_menu/patch_menu_tests.rs new file mode 100644 index 0000000000..e82ffa66ec --- /dev/null +++ b/crates/ui-egui/src/canvas/canvas_tool_menu/patch_menu_tests.rs @@ -0,0 +1,116 @@ +//! #12122: the Patch tool's canvas right-click opens the patch rows inside the selection, the +//! Lasso's selection menu outside it and the selection tools' no-selection menu without one. + +use egui::Modifiers; +use egui_kittest::Harness; +use serde_json::{Value, json}; + +use super::tests::{any_dialog, app, harness, open_here, pick, right_click, screen_of}; +use super::{NO_SELECTION_MENU, PATCH_DESTINATION, PATCH_SOURCE, PATCH_USE_PATTERN, SELECTION_MENU, available}; +use crate::PhotocraftApp; +use crate::state::Tool; + +/// A 32 × 32 document with the selection 4..20 square and `tool` selected. +fn selected(tool: Tool) -> Box { + let mut app = app(); + app.run("select.rect", json!({"x": 4, "y": 4, "width": 16, "height": 16})).unwrap(); + app.ui.tool = tool; + app +} + +/// Right-click document point `doc` with `tool`: the open menu's entries as `ui.inspect` lists them. +fn entries_at(h: &mut Harness<'static, Box>, tool: Tool, doc: [f32; 2]) -> Vec { + h.state_mut().ui.canvas_tool_menu = None; + h.state_mut().ui.tool = tool; + let at = screen_of(h.state(), doc); + right_click(h, at, Modifiers::NONE); + let inspected = crate::control::inspect(h.state(), &h.ctx); + assert_eq!(inspected["canvasToolMenu"]["tool"], json!(format!("{tool:?}")), "{tool:?} opens its menu at {doc:?}"); + inspected["canvasToolMenu"]["entries"].as_array().cloned().unwrap_or_default() +} + +/// The entries' labels, a separator as `None`. +fn shown(entries: &[Value]) -> Vec> { + entries.iter().map(|e| if e["separator"] == json!(true) { None } else { e["label"].as_str().map(String::from) }).collect() +} + +fn enabled(entries: &[Value], label: &str) -> bool { + entries.iter().find(|e| e["label"] == json!(label)).unwrap_or_else(|| panic!("{label} is listed"))["enabled"] == json!(true) +} + +#[test] +fn inside_the_selection_the_patch_rows_show_in_the_reference_order() { + let mut h = harness(selected(Tool::Patch)); + let entries = entries_at(&mut h, Tool::Patch, [12.0, 12.0]); + let want = [ + Some("Use Pattern to Patch Selection"), + None, + Some("Use Patch as Source"), + Some("Use Patch as Destination"), + None, + Some("Color Range…"), + Some("Load Selection…"), + ]; + assert_eq!(shown(&entries), want.map(|l| l.map(String::from))); + assert!(!enabled(&entries, "Use Pattern to Patch Selection"), "no pattern patch exists yet: greyed"); + assert!(enabled(&entries, "Use Patch as Source") && enabled(&entries, "Use Patch as Destination")); + assert!(enabled(&entries, "Color Range…")); + assert!(!enabled(&entries, "Load Selection…"), "no selection saved: greyed"); + + h.state_mut().run("select.saveSelection", json!({"name": "Alpha 1"})).unwrap(); + let entries = entries_at(&mut h, Tool::Patch, [12.0, 12.0]); + assert!(enabled(&entries, "Load Selection…"), "a saved selection makes Load Selection… live"); +} + +#[test] +fn outside_the_selection_the_patch_tool_opens_the_lassos_menu() { + let mut h = harness(selected(Tool::Patch)); + let lasso = entries_at(&mut h, Tool::Lasso, [26.0, 26.0]); + let patch = entries_at(&mut h, Tool::Patch, [26.0, 26.0]); + assert_eq!(shown(&patch), shown(&lasso)); + assert_eq!(patch.iter().map(|e| &e["enabled"]).collect::>(), lasso.iter().map(|e| &e["enabled"]).collect::>()); + assert_eq!(patch.len(), SELECTION_MENU.len(), "the selection menu, nothing added"); +} + +#[test] +fn without_a_selection_the_patch_tool_opens_the_no_selection_menu() { + let mut app = app(); + app.ui.tool = Tool::Patch; + let mut h = harness(app); + let entries = entries_at(&mut h, Tool::Patch, [12.0, 12.0]); + let want: Vec<_> = NO_SELECTION_MENU.iter().map(|row| row.map(|(label, _)| label.to_string())).collect(); + assert_eq!(shown(&entries), want); +} + +#[test] +fn the_mode_rows_set_the_options_bar_mode_and_nothing_else() { + let mut app = selected(Tool::Patch); + assert_eq!(app.ui.tool_options.patch_mode, "source"); + let journal = app.session.journal.len(); + for (row, mode) in [(PATCH_DESTINATION, "destination"), (PATCH_SOURCE, "source")] { + assert!(open_here(&mut app, Tool::Patch, [12.0, 12.0])); + pick(&mut app, row); + assert!(app.ui.canvas_tool_menu.is_none(), "choosing a row closes the menu"); + assert_eq!(app.ui.tool_options.patch_mode, mode); + } + assert_eq!(app.session.journal.len(), journal, "the mode rows run no command"); + assert_eq!(app.ui.tool, Tool::Patch); + + // Use Pattern is greyed, so choosing it does nothing. + assert!(open_here(&mut app, Tool::Patch, [12.0, 12.0])); + let menu = app.ui.canvas_tool_menu.clone().unwrap(); + assert!(!available(&app, &menu, PATCH_USE_PATTERN)); + // Outside the selection the mode rows aren't offered. + assert!(open_here(&mut app, Tool::Patch, [26.0, 26.0])); + let menu = app.ui.canvas_tool_menu.clone().unwrap(); + assert!(!available(&app, &menu, PATCH_DESTINATION)); +} + +#[test] +fn color_range_opens_its_dialog() { + let mut app = selected(Tool::Patch); + assert!(open_here(&mut app, Tool::Patch, [12.0, 12.0])); + pick(&mut app, "select.colorRange"); + assert!(app.ui.canvas_tool_menu.is_none()); + assert!(any_dialog(&app), "Color Range… opens the Color Range dialog"); +} diff --git a/crates/ui-egui/src/canvas/canvas_tool_menu/tests.rs b/crates/ui-egui/src/canvas/canvas_tool_menu/tests.rs index 1ab124000f..b6ef02002e 100644 --- a/crates/ui-egui/src/canvas/canvas_tool_menu/tests.rs +++ b/crates/ui-egui/src/canvas/canvas_tool_menu/tests.rs @@ -98,7 +98,7 @@ pub(crate) fn harness(mut app: Box) -> Harness<'static, Box) -> Harness<'static, Box