From dbbf485774c7f4f55eb86c4f210400c76b1bb791 Mon Sep 17 00:00:00 2001 From: aiongg Date: Tue, 24 Nov 2026 21:09:54 +0000 Subject: [PATCH] Repin craft-libs to dock-gaps 4e806d57a5: panel focus on DockAreaOutput::pressed, document tab sources, tests on next's ids --- Cargo.lock | 204 +++++++++---------- Cargo.toml | 94 ++++----- crates/effects/Cargo.toml | 2 +- crates/ui-egui/src/dock.rs | 26 --- crates/ui-egui/src/dock_ui.rs | 23 ++- crates/ui-egui/src/native_menu.rs | 23 ++- crates/ui-egui/tests/it/shared_docking_ui.rs | 27 --- crates/ui-egui/tests/it/ui_agent_audit.rs | 7 + crates/ui-egui/tests/it/ui_fx_editors.rs | 26 ++- crates/ui-egui/tests/it/ui_panel_windows.rs | 39 ++-- crates/ui-egui/tests/it/ui_tabs.rs | 84 ++++---- docs/control-protocol.md | 13 +- 12 files changed, 273 insertions(+), 295 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3424e6e7e..81afa8ae1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1315,12 +1315,12 @@ dependencies = [ [[package]] name = "craft-aep" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" [[package]] name = "craft-appkit" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "block2 0.6.2", "objc2-app-kit 0.3.2", @@ -1330,7 +1330,7 @@ dependencies = [ [[package]] name = "craft-atomic" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "rustix 1.1.6", ] @@ -1351,10 +1351,10 @@ dependencies = [ [[package]] name = "craft-audio" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ - "craft-media 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", - "craft-xml 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", + "craft-media 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", + "craft-xml 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", "log", "thiserror 2.0.21", ] @@ -1362,7 +1362,7 @@ dependencies = [ [[package]] name = "craft-behavior" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "accesskit", "bitflags 2.13.2", @@ -1385,7 +1385,7 @@ source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa3 [[package]] name = "craft-cloud-ui" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "egui", ] @@ -1393,7 +1393,7 @@ dependencies = [ [[package]] name = "craft-cms" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "md-5", "rayon", @@ -1402,7 +1402,7 @@ dependencies = [ [[package]] name = "craft-codepage" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" [[package]] name = "craft-color" @@ -1415,7 +1415,7 @@ dependencies = [ [[package]] name = "craft-color" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "serde", ] @@ -1423,7 +1423,7 @@ dependencies = [ [[package]] name = "craft-doc" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-ecproj-format", "craft-pcraft-format", @@ -1437,7 +1437,7 @@ dependencies = [ [[package]] name = "craft-docpath" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "serde", ] @@ -1453,7 +1453,7 @@ dependencies = [ [[package]] name = "craft-dpx" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "thiserror 2.0.21", ] @@ -1461,7 +1461,7 @@ dependencies = [ [[package]] name = "craft-ecproj-format" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "serde", "serde_json", @@ -1471,7 +1471,7 @@ dependencies = [ [[package]] name = "craft-eps" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" [[package]] name = "craft-exr" @@ -1485,7 +1485,7 @@ dependencies = [ [[package]] name = "craft-exr" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "exr", "flate2", @@ -1497,7 +1497,7 @@ dependencies = [ [[package]] name = "craft-font-catalog" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "harfrust 0.13.3", "kurbo", @@ -1511,7 +1511,7 @@ dependencies = [ [[package]] name = "craft-fonts-build" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" [[package]] name = "craft-frame" @@ -1527,10 +1527,10 @@ dependencies = [ [[package]] name = "craft-frame" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ - "craft-color 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", - "craft-time 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", + "craft-color 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", + "craft-time 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", "rayon", "serde", ] @@ -1538,7 +1538,7 @@ dependencies = [ [[package]] name = "craft-gif" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "gif", "image", @@ -1555,7 +1555,7 @@ dependencies = [ [[package]] name = "craft-host" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "bitflags 2.13.2", "craft-i18n", @@ -1568,7 +1568,7 @@ dependencies = [ [[package]] name = "craft-i18n" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "chrono", "fixed_decimal", @@ -1604,7 +1604,7 @@ dependencies = [ [[package]] name = "craft-jsonrpc" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "serde_json", ] @@ -1612,13 +1612,13 @@ dependencies = [ [[package]] name = "craft-keymap" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-host", "craft-i18n", "craft-tracked", "craft-ui-macros", - "craft-xml 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", + "craft-xml 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", "egui", "serde", "serde_json", @@ -1627,7 +1627,7 @@ dependencies = [ [[package]] name = "craft-lottie" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-zip", "serde_json", @@ -1646,7 +1646,7 @@ dependencies = [ [[package]] name = "craft-media" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "chrono", "thiserror 2.0.21", @@ -1669,14 +1669,14 @@ dependencies = [ [[package]] name = "craft-media-source" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ - "craft-audio 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", - "craft-color 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", - "craft-frame 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", - "craft-media 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", - "craft-time 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", - "craft-y4m 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", + "craft-audio 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", + "craft-color 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", + "craft-frame 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", + "craft-media 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", + "craft-time 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", + "craft-y4m 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", "serde", "thiserror 2.0.21", ] @@ -1684,7 +1684,7 @@ dependencies = [ [[package]] name = "craft-mesh" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-zip", "miniz_oxide 0.9.1", @@ -1694,7 +1694,7 @@ dependencies = [ [[package]] name = "craft-mime" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "chrono", "craft-codepage", @@ -1704,7 +1704,7 @@ dependencies = [ [[package]] name = "craft-pcraft-format" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "flate2", "serde", @@ -1715,7 +1715,7 @@ dependencies = [ [[package]] name = "craft-pdf" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "hayro-syntax", "serde", @@ -1725,7 +1725,7 @@ dependencies = [ [[package]] name = "craft-platform" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "async-channel", "async-io", @@ -1756,7 +1756,7 @@ dependencies = [ [[package]] name = "craft-ps" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-eps", "kurbo", @@ -1780,7 +1780,7 @@ dependencies = [ [[package]] name = "craft-psd" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "encoding_rs", "flate2", @@ -1791,7 +1791,7 @@ dependencies = [ [[package]] name = "craft-quit" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "dispatch2", "objc2 0.6.5", @@ -1817,7 +1817,7 @@ dependencies = [ [[package]] name = "craft-settings" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-atomic", "craft-host", @@ -1839,9 +1839,9 @@ source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa3 [[package]] name = "craft-svg" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ - "craft-xml 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", + "craft-xml 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", "flate2", "kurbo", "quick-xml 0.41.0", @@ -1864,7 +1864,7 @@ dependencies = [ [[package]] name = "craft-tga" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "thiserror 2.0.21", ] @@ -1872,7 +1872,7 @@ dependencies = [ [[package]] name = "craft-theme" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "bitflags 2.13.2", "craft-tracked", @@ -1905,7 +1905,7 @@ dependencies = [ [[package]] name = "craft-time" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "serde", "thiserror 2.0.21", @@ -1925,9 +1925,9 @@ dependencies = [ [[package]] name = "craft-timeline" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ - "craft-time 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", + "craft-time 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", "serde", "web-time", ] @@ -1935,12 +1935,12 @@ dependencies = [ [[package]] name = "craft-tracked" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" [[package]] name = "craft-ui" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-cloud-ui", "craft-ui-canvas", @@ -1954,7 +1954,7 @@ dependencies = [ [[package]] name = "craft-ui-canvas" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-behavior", "craft-i18n", @@ -1970,7 +1970,7 @@ dependencies = [ [[package]] name = "craft-ui-contract" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "accesskit", "craft-behavior", @@ -2008,7 +2008,7 @@ dependencies = [ [[package]] name = "craft-ui-macros" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -2019,7 +2019,7 @@ dependencies = [ [[package]] name = "craft-ui-panels" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-behavior", "craft-host", @@ -2037,7 +2037,7 @@ dependencies = [ [[package]] name = "craft-ui-patterns" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-behavior", "craft-host", @@ -2058,7 +2058,7 @@ dependencies = [ [[package]] name = "craft-ui-shell" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-behavior", "craft-host", @@ -2078,7 +2078,7 @@ dependencies = [ [[package]] name = "craft-ui-widgets" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-behavior", "craft-host", @@ -2097,7 +2097,7 @@ dependencies = [ [[package]] name = "craft-update" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "chrono", "craft-host", @@ -2126,7 +2126,7 @@ dependencies = [ [[package]] name = "craft-vectorcraft-format" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "flate2", "serde", @@ -2148,9 +2148,9 @@ dependencies = [ [[package]] name = "craft-video" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ - "craft-media 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", + "craft-media 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", "rav1e", "rayon", "thiserror 2.0.21", @@ -2159,7 +2159,7 @@ dependencies = [ [[package]] name = "craft-webp" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "image", "thiserror 2.0.21", @@ -2168,7 +2168,7 @@ dependencies = [ [[package]] name = "craft-win32" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "winsafe", ] @@ -2176,7 +2176,7 @@ dependencies = [ [[package]] name = "craft-window" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-appkit", "craft-atomic", @@ -2210,7 +2210,7 @@ dependencies = [ [[package]] name = "craft-xml" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "quick-xml 0.41.0", "serde", @@ -2228,7 +2228,7 @@ dependencies = [ [[package]] name = "craft-y4m" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "thiserror 2.0.21", ] @@ -2236,7 +2236,7 @@ dependencies = [ [[package]] name = "craft-zip" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "flate2", "thiserror 2.0.21", @@ -2530,7 +2530,7 @@ dependencies = [ [[package]] name = "ecolor" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=f5025284445ea19c35f746d96fc0b75468b3f560#f5025284445ea19c35f746d96fc0b75468b3f560" +source = "git+https://github.com/storytold/egui.git?rev=a87d00caaec947ea781657c6ff410c9838016d18#a87d00caaec947ea781657c6ff410c9838016d18" dependencies = [ "bytemuck", "emath", @@ -2688,12 +2688,12 @@ dependencies = [ name = "effectcraft-export" version = "0.25.1" dependencies = [ - "craft-audio 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", - "craft-exr 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", + "craft-audio 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", + "craft-exr 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", "craft-gif", - "craft-media 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", - "craft-tga 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", - "craft-video 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", + "craft-media 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", + "craft-tga 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", + "craft-video 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", "effectcraft-color", "effectcraft-effects", "effectcraft-keyframe", @@ -2803,7 +2803,7 @@ dependencies = [ name = "effectcraft-interchange" version = "0.25.1" dependencies = [ - "craft-timeline 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", + "craft-timeline 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", "effectcraft-color", "effectcraft-keyframe", "effectcraft-project", @@ -2854,17 +2854,17 @@ dependencies = [ name = "effectcraft-media" version = "0.25.1" dependencies = [ - "craft-audio 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", - "craft-color 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", + "craft-audio 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", + "craft-color 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", "craft-docpath", - "craft-dpx 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", - "craft-exr 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", - "craft-frame 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", + "craft-dpx 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", + "craft-exr 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", + "craft-frame 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", "craft-gif", - "craft-media 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", - "craft-media-source 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", - "craft-time 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", - "craft-video 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", + "craft-media 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", + "craft-media-source 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", + "craft-time 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", + "craft-video 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", "craft-webp", "effectcraft-color", "effectcraft-effects", @@ -2969,7 +2969,7 @@ name = "effectcraft-psd" version = "0.25.1" dependencies = [ "craft-codepage", - "craft-psd 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", + "craft-psd 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", "miniz_oxide 0.9.1", ] @@ -2977,7 +2977,7 @@ dependencies = [ name = "effectcraft-raster" version = "0.25.1" dependencies = [ - "craft-exr 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107)", + "craft-exr 0.1.0 (git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b)", "effectcraft-color", "effectcraft-geom", "rayon", @@ -3170,7 +3170,7 @@ dependencies = [ [[package]] name = "eframe" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=f5025284445ea19c35f746d96fc0b75468b3f560#f5025284445ea19c35f746d96fc0b75468b3f560" +source = "git+https://github.com/storytold/egui.git?rev=a87d00caaec947ea781657c6ff410c9838016d18#a87d00caaec947ea781657c6ff410c9838016d18" dependencies = [ "ahash", "bytemuck", @@ -3205,7 +3205,7 @@ dependencies = [ [[package]] name = "egui" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=f5025284445ea19c35f746d96fc0b75468b3f560#f5025284445ea19c35f746d96fc0b75468b3f560" +source = "git+https://github.com/storytold/egui.git?rev=a87d00caaec947ea781657c6ff410c9838016d18#a87d00caaec947ea781657c6ff410c9838016d18" dependencies = [ "accesskit", "ahash", @@ -3224,7 +3224,7 @@ dependencies = [ [[package]] name = "egui-wgpu" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=f5025284445ea19c35f746d96fc0b75468b3f560#f5025284445ea19c35f746d96fc0b75468b3f560" +source = "git+https://github.com/storytold/egui.git?rev=a87d00caaec947ea781657c6ff410c9838016d18#a87d00caaec947ea781657c6ff410c9838016d18" dependencies = [ "ahash", "bytemuck", @@ -3243,7 +3243,7 @@ dependencies = [ [[package]] name = "egui-winit" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=f5025284445ea19c35f746d96fc0b75468b3f560#f5025284445ea19c35f746d96fc0b75468b3f560" +source = "git+https://github.com/storytold/egui.git?rev=a87d00caaec947ea781657c6ff410c9838016d18#a87d00caaec947ea781657c6ff410c9838016d18" dependencies = [ "accesskit_winit", "arboard", @@ -3269,7 +3269,7 @@ dependencies = [ [[package]] name = "egui_extras" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=f5025284445ea19c35f746d96fc0b75468b3f560#f5025284445ea19c35f746d96fc0b75468b3f560" +source = "git+https://github.com/storytold/egui.git?rev=a87d00caaec947ea781657c6ff410c9838016d18#a87d00caaec947ea781657c6ff410c9838016d18" dependencies = [ "ahash", "egui", @@ -3282,7 +3282,7 @@ dependencies = [ [[package]] name = "egui_glow" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=f5025284445ea19c35f746d96fc0b75468b3f560#f5025284445ea19c35f746d96fc0b75468b3f560" +source = "git+https://github.com/storytold/egui.git?rev=a87d00caaec947ea781657c6ff410c9838016d18#a87d00caaec947ea781657c6ff410c9838016d18" dependencies = [ "bytemuck", "egui", @@ -3295,7 +3295,7 @@ dependencies = [ [[package]] name = "egui_kittest" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=f5025284445ea19c35f746d96fc0b75468b3f560#f5025284445ea19c35f746d96fc0b75468b3f560" +source = "git+https://github.com/storytold/egui.git?rev=a87d00caaec947ea781657c6ff410c9838016d18#a87d00caaec947ea781657c6ff410c9838016d18" dependencies = [ "eframe", "egui", @@ -3318,7 +3318,7 @@ checksum = "252afb9ae5eaa683babdc6a068b3f5726eb19e05070c731f9b2a23a7c3e8ed34" [[package]] name = "emath" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=f5025284445ea19c35f746d96fc0b75468b3f560#f5025284445ea19c35f746d96fc0b75468b3f560" +source = "git+https://github.com/storytold/egui.git?rev=a87d00caaec947ea781657c6ff410c9838016d18#a87d00caaec947ea781657c6ff410c9838016d18" dependencies = [ "bytemuck", ] @@ -3411,7 +3411,7 @@ dependencies = [ [[package]] name = "epaint" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=f5025284445ea19c35f746d96fc0b75468b3f560#f5025284445ea19c35f746d96fc0b75468b3f560" +source = "git+https://github.com/storytold/egui.git?rev=a87d00caaec947ea781657c6ff410c9838016d18#a87d00caaec947ea781657c6ff410c9838016d18" dependencies = [ "ahash", "bytemuck", @@ -3437,7 +3437,7 @@ dependencies = [ [[package]] name = "epaint_default_fonts" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=f5025284445ea19c35f746d96fc0b75468b3f560#f5025284445ea19c35f746d96fc0b75468b3f560" +source = "git+https://github.com/storytold/egui.git?rev=a87d00caaec947ea781657c6ff410c9838016d18#a87d00caaec947ea781657c6ff410c9838016d18" [[package]] name = "equator" @@ -4374,7 +4374,7 @@ checksum = "9f4d0e94ddd48749f06bbe4e5389fb9799a0c45bcaf00495042076ef05e3241a" [[package]] name = "hayro-jbig2" version = "0.3.0" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "hayro-ccitt", ] @@ -4388,7 +4388,7 @@ checksum = "c75ab947623ef4ccaa7acf0579edf7cbb5a73838e3839a7be73335e522f433a1" [[package]] name = "hayro-syntax" version = "0.7.2" -source = "git+https://github.com/aiongg/craft-libs?rev=9fd8b0cdaad2b5320090f5a5892ba90fb8dab107#9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "hayro-jbig2", "hayro-jpeg2000", diff --git a/Cargo.toml b/Cargo.toml index edc4ed8e3..61fbef6aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,28 +11,28 @@ rust-version = "1.95" repository = "https://github.com/storytold/effectcraft" [workspace.dependencies] -craft-timeline = { git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107", default-features = false } -craft-mime = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-pdf = { git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107", version = "=0.1.0", default-features = false, features = ["read"] } -craft-docpath = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-jsonrpc = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-ecproj-format = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-dpx = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-ps = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107", default-features = false, features = ["read"] } -craft-exr = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-gif = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-tga = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-psd = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-codepage = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-svg = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-webp = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-lottie = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-mesh = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107", default-features = false, features = ["stl", "obj", "gltf", "fbx"] } -craft-aep = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-doc = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-vectorcraft-format = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } +craft-timeline = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b", default-features = false } +craft-mime = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-pdf = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b", version = "=0.1.0", default-features = false, features = ["read"] } +craft-docpath = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-jsonrpc = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-ecproj-format = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-dpx = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-ps = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b", default-features = false, features = ["read"] } +craft-exr = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-gif = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-tga = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-psd = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-codepage = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-svg = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-webp = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-lottie = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-mesh = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b", default-features = false, features = ["stl", "obj", "gltf", "fbx"] } +craft-aep = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-doc = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-vectorcraft-format = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } # craft-update: app-specific pretend versions apply to startup and manual checks. -craft-update = { git = "https://github.com/aiongg/craft-libs", version = "=0.1.0", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107", features = ["ui"] } +craft-update = { git = "https://github.com/aiongg/craft-libs", version = "=0.1.0", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b", features = ["ui"] } # internal effectcraft-time = { path = "crates/time" } effectcraft-geom = { path = "crates/geom" } @@ -97,13 +97,13 @@ same-file = "1.0" tempfile = "3.27" # codecs + containers shared by the Craft apps (crates/media, crates/export); keep all in sync. -craft-media = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107", default-features = false, features = ["isobmff", "matroska"] } -craft-media-source = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-frame = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-color = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-time = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-audio = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107", default-features = false, features = ["aac-decode", "aac-encode", "alac-decode", "opus-decode", "opus-encode", "ac3-decode", "mp3-decode", "mpa-decode"] } -craft-video = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107", features = ["h264-decode", "h264-encode", "prores", "hevc-encode", "vp9-encode", "av1", "threads"] } +craft-media = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b", default-features = false, features = ["isobmff", "matroska"] } +craft-media-source = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-frame = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-color = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-time = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-audio = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b", default-features = false, features = ["aac-decode", "aac-encode", "alac-decode", "opus-decode", "opus-encode", "ac3-decode", "mp3-decode", "mpa-decode"] } +craft-video = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b", features = ["h264-decode", "h264-encode", "prores", "hevc-encode", "vp9-encode", "av1", "threads"] } # footage decoding: FilmCraft's pure-Rust crates, pinned to a revision (plan/adr/0001). # Only `crates/media`, `crates/export` and `crates/interchange` may depend on these. @@ -126,12 +126,12 @@ half = "2.7" # ui # Shared frontend components; keep this dependency above the engine boundary. # Shared UI and the complete egui family select reviewed immutable commits below. -craft-ui = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-behavior = { git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-host = { git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-keymap = { git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-theme = { git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } -craft-window = { git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } +craft-ui = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-behavior = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-host = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-keymap = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-theme = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-window = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } # `default_fonts` and `monochrome_emoji_fonts` are explicit: the app's `FontDefinitions::default()` # and its `✔`/`▣` chrome glyphs need both, and kittest's own dev-dependencies do not propagate. egui = { version = "0.37", default-features = false, features = ["default_fonts", "monochrome_emoji_fonts"] } @@ -236,19 +236,19 @@ lto = "thin" codegen-units = 1 [patch.crates-io] -hayro-syntax = { git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107", version = "=0.7.2" } -hayro-jbig2 = { git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107", version = "=0.3.0" } -ecolor = { git = "https://github.com/storytold/egui.git", rev = "f5025284445ea19c35f746d96fc0b75468b3f560" } -emath = { git = "https://github.com/storytold/egui.git", rev = "f5025284445ea19c35f746d96fc0b75468b3f560" } -epaint = { git = "https://github.com/storytold/egui.git", rev = "f5025284445ea19c35f746d96fc0b75468b3f560" } -epaint_default_fonts = { git = "https://github.com/storytold/egui.git", rev = "f5025284445ea19c35f746d96fc0b75468b3f560" } -egui = { git = "https://github.com/storytold/egui.git", rev = "f5025284445ea19c35f746d96fc0b75468b3f560" } -egui-winit = { git = "https://github.com/storytold/egui.git", rev = "f5025284445ea19c35f746d96fc0b75468b3f560" } -egui-wgpu = { git = "https://github.com/storytold/egui.git", rev = "f5025284445ea19c35f746d96fc0b75468b3f560" } -egui_glow = { git = "https://github.com/storytold/egui.git", rev = "f5025284445ea19c35f746d96fc0b75468b3f560" } -egui_extras = { git = "https://github.com/storytold/egui.git", rev = "f5025284445ea19c35f746d96fc0b75468b3f560" } -egui_kittest = { git = "https://github.com/storytold/egui.git", rev = "f5025284445ea19c35f746d96fc0b75468b3f560" } -eframe = { git = "https://github.com/storytold/egui.git", rev = "f5025284445ea19c35f746d96fc0b75468b3f560" } +hayro-syntax = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b", version = "=0.7.2" } +hayro-jbig2 = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b", version = "=0.3.0" } +ecolor = { git = "https://github.com/storytold/egui.git", rev = "a87d00caaec947ea781657c6ff410c9838016d18" } +emath = { git = "https://github.com/storytold/egui.git", rev = "a87d00caaec947ea781657c6ff410c9838016d18" } +epaint = { git = "https://github.com/storytold/egui.git", rev = "a87d00caaec947ea781657c6ff410c9838016d18" } +epaint_default_fonts = { git = "https://github.com/storytold/egui.git", rev = "a87d00caaec947ea781657c6ff410c9838016d18" } +egui = { git = "https://github.com/storytold/egui.git", rev = "a87d00caaec947ea781657c6ff410c9838016d18" } +egui-winit = { git = "https://github.com/storytold/egui.git", rev = "a87d00caaec947ea781657c6ff410c9838016d18" } +egui-wgpu = { git = "https://github.com/storytold/egui.git", rev = "a87d00caaec947ea781657c6ff410c9838016d18" } +egui_glow = { git = "https://github.com/storytold/egui.git", rev = "a87d00caaec947ea781657c6ff410c9838016d18" } +egui_extras = { git = "https://github.com/storytold/egui.git", rev = "a87d00caaec947ea781657c6ff410c9838016d18" } +egui_kittest = { git = "https://github.com/storytold/egui.git", rev = "a87d00caaec947ea781657c6ff410c9838016d18" } +eframe = { git = "https://github.com/storytold/egui.git", rev = "a87d00caaec947ea781657c6ff410c9838016d18" } # Patch a crate only together with the dependency that needs it: an unused patch makes the Nix # build, which uses vendored sources, fail (`cargo xtask lock-patches`). winit = { git = "https://github.com/storytold/winit.git", rev = "a517b3846ee8457d84ee4975110bfda6797c44dc" } diff --git a/crates/effects/Cargo.toml b/crates/effects/Cargo.toml index a36022fb9..e07fbe292 100644 --- a/crates/effects/Cargo.toml +++ b/crates/effects/Cargo.toml @@ -10,7 +10,7 @@ rust-version.workspace = true workspace = true [dependencies] -craft-cms = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "9fd8b0cdaad2b5320090f5a5892ba90fb8dab107" } +craft-cms = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } effectcraft-geom = { workspace = true } effectcraft-color = { workspace = true } effectcraft-keyframe = { workspace = true } diff --git a/crates/ui-egui/src/dock.rs b/crates/ui-egui/src/dock.rs index c9f7d7275..1addcd88c 100644 --- a/crates/ui-egui/src/dock.rs +++ b/crates/ui-egui/src/dock.rs @@ -499,32 +499,6 @@ pub fn referenced_panels(workspace: &Workspace) -> Vec { out } -/// The automation id of the gap below stacked panel `p`: `dock.gutter.s`, with the -/// stack's split path (`a`/`b` per level) and the entry's index. -pub fn stack_gutter_id(layout: &Layout, p: PanelKind) -> Option { - fn rec(node: &Node, p: PanelKind, path: &mut String, depth: usize) -> Option { - if depth > craft_behavior::dock::MAX_DEPTH { - return None; - } - match node { - Node::Split { first, second, .. } => { - path.push('a'); - if let Some(id) = rec(first, p, path, depth + 1) { - return Some(id); - } - path.pop(); - path.push('b'); - let found = rec(second, p, path, depth + 1); - path.pop(); - found - } - Node::Stack { entries, .. } => entries.iter().position(|e| e.panel == p).map(|i| format!("dock.gutter.{path}s{i}")), - _ => None, - } - } - rec(layout.root.as_ref()?, p, &mut String::new(), 0) -} - /// A panel lock button (Composition viewers and the Timeline keep their comp while locked, /// Effect Controls its layer): a closed padlock while locked, an open one while unlocked. /// Returns true when clicked. Automation: `panel.tab..lock`. diff --git a/crates/ui-egui/src/dock_ui.rs b/crates/ui-egui/src/dock_ui.rs index 4f7556728..45d59ffef 100644 --- a/crates/ui-egui/src/dock_ui.rs +++ b/crates/ui-egui/src/dock_ui.rs @@ -417,7 +417,7 @@ impl EffectcraftApp { }; let EffectPanels { locks, menu, bodies, ime, .. } = panels; self.live_dock.specs = specs; - let DockAreaOutput { actions, requested, events, focused, picked, error, float_space, windows, window_files, sources, .. } = output; + let DockAreaOutput { actions, requested, events, focused, pressed, picked, error, float_space, windows, window_files, sources, .. } = output; self.dock_rects = bodies; self.unpublished_viewports = ime.unpublished(); // A window that closed or docked takes its composition with it. @@ -431,10 +431,10 @@ impl EffectcraftApp { } self.forward_window_input(&ctx, &windows, window_files); self.live_dock.windows = windows; - // Key focus moving to a group, or a tab picked, focuses that panel. + // A press in a panel's body, a tab picked, or key focus moving to a group focuses that panel. let moved = focused != self.live_dock.focused; self.live_dock.focused = focused; - if let Some(panel) = picked.or(focused.filter(|_| moved)) { + if let Some(panel) = pressed.or(picked).or(focused.filter(|_| moved)) { self.focus_panel(&ctx, panel); } if let Some(error) = error { @@ -513,10 +513,10 @@ impl EffectcraftApp { } } - /// Automation ids for the dock's gesture sources: `panel.tab.`, `panel.drag.` - /// (the group's drag bar), `panel.float..move` and `.resize` (bottom-right corner) and - /// `.resize.` for floating window `n`, `dock.gutter.` (`a`/`b` per split level; a - /// stack's gap below entry `i` adds `s`), `dock.gutter.group.` under a dock + /// Automation ids for the dock's gesture sources: `panel.tab.`, `panel.tab..` + /// (the Timeline's comp tabs), `panel.drag.` (the group's drag bar), `panel.float..move` + /// and `.resize` (bottom-right corner) and `.resize.` for floating window `n`, + /// `dock.gutter.` (`a`/`b` per split level), `dock.gutter.group.` under a dock /// column's group and `dock.column.` at a dock column's inner edge. fn register_dock_hits(&mut self, sources: &[DockSource]) { let window = |panel: &PanelKind| self.ui.dock.layout().floating.iter().position(|window| window.contains(panel)); @@ -527,6 +527,10 @@ impl EffectcraftApp { for source in sources { let entry = match &source.kind { SourceKind::Tab(panel) => (format!("panel.tab.{}", panel.id()), title(panel)), + SourceKind::Document(panel, document) => { + let name = self.session.project.item(effectcraft_engine::project::ItemId(*document)).map_or_else(String::new, |item| item.name.clone()); + (format!("panel.tab.{}.{document}", panel.id()), name) + } SourceKind::GroupBar(panel) => (format!("panel.drag.{}", panel.id()), "Move panel group".into()), SourceKind::WindowGrip(panel) => match window(panel) { Some(index) => (format!("panel.float.{index}.move"), "Move floating panel".into()), @@ -538,10 +542,7 @@ impl EffectcraftApp { None => continue, }, SourceKind::Divider(DividerKind::Split(path)) => (format!("dock.gutter.{}", path_id(path)), "gutter".into()), - SourceKind::Divider(DividerKind::Groups(panel)) => { - let id = dock::stack_gutter_id(self.ui.dock.layout(), *panel).unwrap_or_else(|| format!("dock.gutter.group.{}", panel.id())); - (id, "gutter".into()) - } + SourceKind::Divider(DividerKind::Groups(panel)) => (format!("dock.gutter.group.{}", panel.id()), "gutter".into()), SourceKind::Divider(DividerKind::ColumnEdge(panel)) => (format!("dock.column.{}", panel.id()), "gutter".into()), _ => continue, }; diff --git a/crates/ui-egui/src/native_menu.rs b/crates/ui-egui/src/native_menu.rs index 5197481b3..440a3a4cd 100644 --- a/crates/ui-egui/src/native_menu.rs +++ b/crates/ui-egui/src/native_menu.rs @@ -479,8 +479,9 @@ fn text_field_event(command: &str) -> Option> { /// Hand a text field's Edit command to the window `window` whose field has the keyboard. The /// main window gets the clipboard text itself and the events through the synthetic queue; a -/// floating panel's OS window gets each key pressed and released through the window host, and -/// the clipboard text as typed text on Cmd+V. +/// floating panel's OS window gets each command as the key equivalent the platform's menu took +/// from it (Copy and Cut as egui's copy and cut events, the rest as the key's tap), and the +/// clipboard text as typed text on Cmd+V. fn send_to_text_field(app: &mut EffectcraftApp, ctx: &egui::Context, window: egui::ViewportId, events: Vec) { if window == egui::ViewportId::ROOT { for event in events { @@ -496,24 +497,26 @@ fn send_to_text_field(app: &mut EffectcraftApp, ctx: &egui::Context, window: egu ctx.request_repaint(); return; } - let host = craft_ui::runtime::windows::WindowHost::of(ctx); + use craft_ui::runtime::windows::{KeyEquivalent, WindowHost}; + let host = WindowHost::of(ctx); let platform = craft_keymap::egui::platform(ctx); for event in events { - let (key, modifiers) = match event { + let equivalent = match event { egui::Event::Key { key: egui::Key::V, .. } => { if let Some(text) = app.hooks.clipboard_text.as_ref().and_then(|f| f()) { host.inject_text(window, &text); } continue; } - egui::Event::Key { key, modifiers, .. } => (key, modifiers), - egui::Event::Copy => (egui::Key::C, egui::Modifiers::COMMAND), - egui::Event::Cut => (egui::Key::X, egui::Modifiers::COMMAND), + egui::Event::Key { key, modifiers, .. } => match craft_keymap::Key::from_egui(key) { + Some(key) => KeyEquivalent::Tap(craft_keymap::Chord::new(craft_keymap::Mods::from_egui(&modifiers, platform), key)), + None => continue, + }, + egui::Event::Copy => KeyEquivalent::Copy, + egui::Event::Cut => KeyEquivalent::Cut, _ => continue, }; - if let Some(key) = craft_keymap::Key::from_egui(key) { - host.inject_key(window, key, craft_keymap::Mods::from_egui(&modifiers, platform), false); - } + host.key_equivalent(window, equivalent); } } diff --git a/crates/ui-egui/tests/it/shared_docking_ui.rs b/crates/ui-egui/tests/it/shared_docking_ui.rs index 052d4f8a4..48d8c5e75 100644 --- a/crates/ui-egui/tests/it/shared_docking_ui.rs +++ b/crates/ui-egui/tests/it/shared_docking_ui.rs @@ -8,7 +8,6 @@ use effectcraft_ui_egui::{ }; use egui::{Event, Modifiers, PointerButton, Rect, pos2, vec2}; use egui_kittest::Harness; -use egui_kittest::kittest::{NodeT, Queryable}; use serde_json::json; fn invoke(app: &mut EffectcraftApp, id: &str, params: serde_json::Value) -> Result { @@ -134,8 +133,6 @@ fn pointer_drop_merges_floats_and_redocks_without_project_changes() { drag(&mut h, from, pos2(700.0, 400.0), Modifiers::COMMAND); assert_eq!(floating(h.state()).len(), 1); assert!(h.state().ui.dock.is_floating(PanelKind::Info)); - let grips: Vec<_> = h.query_all_by_label("Resize panel window").collect(); - assert!(!grips.is_empty() && grips.iter().all(|grip| grip.accesskit_node().role() == egui::accesskit::Role::Button)); // Its corner resizes it and its title bar moves it. let original = rect4(floating(h.state())[0].rect); let grip = rect(&h, "panel.float.0.resize").center(); @@ -322,30 +319,6 @@ fn catalog_close_keeps_dynamic_panel_identity_and_releases_viewers() { assert!(!app.ui.viewers.get(&42).is_some_and(Option::is_some), "the closed viewer forgets its comp"); } -#[test] -fn stacked_panels_resize_by_pointer_without_changing_closed_entries() { - let mut session = Session::default(); - session.execute("comp.new", json!({"width": 160, "height": 90, "duration": 1})).unwrap(); - let mut app = EffectcraftApp::new(session); - app.ui.start_screen = false; - let mut h = - Harness::builder().with_size(vec2(1000.0, 720.0)).with_context_setup(effectcraft_ui_egui::framework::install_headless).build_eframe(move |_| app); - h.run_steps(4); - h.state_mut().ui.dock = - dock::docked(dock::stack(&[(PanelKind::Preview, true, Some(100.0)), (PanelKind::Properties, true, None), (PanelKind::Align, false, Some(77.0))])); - h.run_steps(3); - let project = h.state().session.project.clone(); - let before = rect(&h, "panel.Preview").height(); - let from = rect(&h, "dock.gutter.s0").center(); - drag(&mut h, from, from + vec2(0.0, 16.0), Modifiers::NONE); - let after = rect(&h, "panel.Preview").height(); - assert!((after - before - 16.0).abs() < 2.0, "{before} -> {after}"); - let Some(Node::Stack { entries, .. }) = &h.state().ui.dock.layout().root else { panic!("stack lost") }; - assert!(entries[0].height.unwrap_or_default() > 100.0, "{entries:?}"); - assert_eq!((entries[2].panel, entries[2].open, entries[2].height), (PanelKind::Align, false, Some(77.0))); - assert!(std::sync::Arc::ptr_eq(&project, &h.state().session.project)); -} - #[test] fn failed_close_preserves_viewer_lifecycle_and_maximize_state() { let mut app = EffectcraftApp::new(Session::default()); diff --git a/crates/ui-egui/tests/it/ui_agent_audit.rs b/crates/ui-egui/tests/it/ui_agent_audit.rs index 477850e87..325cf1331 100644 --- a/crates/ui-egui/tests/it/ui_agent_audit.rs +++ b/crates/ui-egui/tests/it/ui_agent_audit.rs @@ -170,6 +170,13 @@ fn every_panel_registers_automation_ids_for_its_widgets() { for (r, l) in widgets { if !panels.iter().any(|p| p.contains(r.center())) && !covered(r, &elements) { gaps.push(format!("chrome: [{:.0},{:.0} {:.0}x{:.0}] {l:?}", r.min.x, r.min.y, r.width(), r.height())); + // DIAG: the accessibility nodes at the gap. + { + use egui_kittest::kittest::{By, NodeT, Queryable}; + for node in h.query_all(By::new().predicate(|_| true)).filter(|n| n.rect().contains(r.center()) && n.rect().width() < 200.0) { + eprintln!("DIAG gap node {:?} {:?} {:?}", node.accesskit_node().role(), node.accesskit_node().label(), node.rect()); + } + } } } assert!(gaps.is_empty(), "{} interactive widgets without an automation id:\n{}", gaps.len(), gaps.join("\n")); diff --git a/crates/ui-egui/tests/it/ui_fx_editors.rs b/crates/ui-egui/tests/it/ui_fx_editors.rs index 4fd9ffc59..af207a078 100644 --- a/crates/ui-egui/tests/it/ui_fx_editors.rs +++ b/crates/ui-egui/tests/it/ui_fx_editors.rs @@ -93,14 +93,20 @@ fn at(r: egui::Rect, fx: f32, fy: f32) -> Pos2 { pos2(r.min.x + r.width() * fx, r.min.y + r.height() * fy) } +/// `n` clicks at `p`, one press per step as the runtime takes them (each press is its step's last +/// pointer event): the releases are one step apart, within egui's double-click interval. fn click_n(h: &mut Harness<'_, EffectcraftApp>, p: Pos2, n: u32) { h.event(Event::PointerMoved(p)); h.step(); - // (all in one frame: the harness' frame time is longer than a double-click's) - for _ in 0..n { - h.event(Event::PointerButton { pos: p, button: egui::PointerButton::Primary, pressed: true, modifiers: Default::default() }); - h.event(Event::PointerButton { pos: p, button: egui::PointerButton::Primary, pressed: false, modifiers: Default::default() }); + let button = |pressed| Event::PointerButton { pos: p, button: egui::PointerButton::Primary, pressed, modifiers: Default::default() }; + for i in 0..n { + if i > 0 { + h.input_mut().events.push(button(false)); + } + h.input_mut().events.push(button(true)); + h.step(); } + h.input_mut().events.push(button(false)); h.step(); h.run_steps(2); } @@ -293,15 +299,21 @@ fn composition_tabs_and_scrolling_preview() { .with_context_setup(effectcraft_ui_egui::framework::install_headless) .build_eframe(|_| EffectcraftApp::new(s)); h.run_steps(4); - rect(&h, "panel.tab.Timeline.close"); + let shown = h.state().session.state.active_comp.unwrap(); + // The Timeline's tab for the shown comp, and its × by its accessible name. + rect(&h, &format!("panel.tab.Timeline.{}", shown.0)); + let close = { + use egui_kittest::kittest::Queryable; + let name = h.state().session.project.item(shown).unwrap().name.clone(); + h.get_by_label(&format!("Close {name}")).rect().center() + }; rect(&h, "preview.scroll"); click_id(&mut h, "panel.tab.Composition.lock"); assert!(h.state().ui.locked_tabs.contains("Composition")); click_id(&mut h, "panel.tab.Composition.lock"); assert!(h.state().ui.locked_tabs.is_empty()); // The Timeline's × closes its comp's tab (the panel stays, as in After Effects). - let shown = h.state().session.state.active_comp.unwrap(); - click_id(&mut h, "panel.tab.Timeline.close"); + click_n(&mut h, close, 1); assert!(!h.state().session.state.open_comps.contains(&shown)); assert!(h.state().ui.dock.is_docked(PanelKind::Timeline)); } diff --git a/crates/ui-egui/tests/it/ui_panel_windows.rs b/crates/ui-egui/tests/it/ui_panel_windows.rs index b4dee1600..12cebe53e 100644 --- a/crates/ui-egui/tests/it/ui_panel_windows.rs +++ b/crates/ui-egui/tests/it/ui_panel_windows.rs @@ -43,7 +43,7 @@ fn panel_window_command_moves_a_docked_panel_into_its_own_window_and_back() { } #[test] -fn a_click_on_a_floating_panel_does_nothing_while_a_dialog_is_open() { +fn a_drag_on_a_floating_panel_does_nothing_while_a_dialog_is_open() { use egui::{Event, Modifiers, PointerButton, vec2}; use egui_kittest::Harness; let mut app = EffectcraftApp::new(Session::default()); @@ -52,32 +52,37 @@ fn a_click_on_a_floating_panel_does_nothing_while_a_dialog_is_open() { let mut h = Harness::builder().with_size(vec2(1400.0, 900.0)).with_context_setup(effectcraft_ui_egui::framework::install_headless).build_eframe(move |_| app); h.run_steps(3); - // The floating window's ×, by its accessible name. - let close = |h: &Harness<'_, EffectcraftApp>| { - use egui_kittest::kittest::Queryable; - h.get_by_label("Close panel window").rect().center() + // The floating window's move grip: a drag moves it only while no dialog is up. + let grip = |h: &Harness<'_, EffectcraftApp>| { + let e = h.state().auto.find("panel.float.0.move").expect("the floating window's move grip"); + egui::pos2(e.rect[0] + e.rect[2] / 2.0, e.rect[1] + e.rect[3] / 2.0) }; - let click = |h: &mut Harness<'_, EffectcraftApp>, pos| { - h.event(Event::PointerMoved(pos)); + let drag = |h: &mut Harness<'_, EffectcraftApp>, from: egui::Pos2| { + let to = from + vec2(-30.0, 20.0); + h.event(Event::PointerMoved(from)); h.step(); - for pressed in [true, false] { - h.event(Event::PointerButton { pos, button: PointerButton::Primary, pressed, modifiers: Modifiers::NONE }); + h.event(Event::PointerButton { pos: from, button: PointerButton::Primary, pressed: true, modifiers: Modifiers::NONE }); + h.step(); + for k in 1..=5 { + h.event(Event::PointerMoved(from + (to - from) * (k as f32 / 5.0))); h.step(); } + h.event(Event::PointerButton { pos: to, button: PointerButton::Primary, pressed: false, modifiers: Modifiers::NONE }); + h.step(); h.run_steps(2); }; - let at = close(&h); + let at = grip(&h); let ctx = h.ctx.clone(); effectcraft_ui_egui::menus::invoke(h.state_mut(), &ctx, "app.settings", json!({"page": "general"})).unwrap(); h.run_steps(3); let before = h.state().ui.dock.clone(); - click(&mut h, at); - assert_eq!(h.state().ui.dock, before, "the floating panel takes no click while Settings is open"); - assert!(h.state().ui.dock.is_floating(PanelKind::Project)); - // The same click closes the window once the dialog is gone. + drag(&mut h, at); + assert_eq!(h.state().ui.dock, before, "the floating panel takes no drag while Settings is open"); + // The same drag moves the window once the dialog is gone. h.state_mut().dialog = None; h.run_steps(3); - let at = close(&h); - click(&mut h, at); - assert!(!h.state().ui.dock.is_open(PanelKind::Project)); + let at = grip(&h); + drag(&mut h, at); + assert_ne!(h.state().ui.dock, before, "the drag moved the floating window"); + assert!(h.state().ui.dock.is_floating(PanelKind::Project)); } diff --git a/crates/ui-egui/tests/it/ui_tabs.rs b/crates/ui-egui/tests/it/ui_tabs.rs index 0b8fd2fcd..5829ceb4f 100644 --- a/crates/ui-egui/tests/it/ui_tabs.rs +++ b/crates/ui-egui/tests/it/ui_tabs.rs @@ -36,19 +36,31 @@ fn rect(h: &Harness<'_, EffectcraftApp>, id: &str) -> egui::Rect { egui::Rect::from_min_size(pos2(e.rect[0], e.rect[1]), egui::vec2(e.rect[2], e.rect[3])) } +/// `n` clicks at `p`, one press per step as the runtime takes them (each press is its step's last +/// pointer event): the releases are one step apart, within egui's double-click interval. fn click_n(h: &mut Harness<'_, EffectcraftApp>, p: Pos2, n: u32) { h.event(Event::PointerMoved(p)); h.step(); - // All in one frame, straight into the input (the harness' event queue spreads presses over - // frames, longer apart than a double-click). - for _ in 0..n { - h.input_mut().events.push(Event::PointerButton { pos: p, button: egui::PointerButton::Primary, pressed: true, modifiers: Default::default() }); - h.input_mut().events.push(Event::PointerButton { pos: p, button: egui::PointerButton::Primary, pressed: false, modifiers: Default::default() }); + let button = |pressed| Event::PointerButton { pos: p, button: egui::PointerButton::Primary, pressed, modifiers: Default::default() }; + for i in 0..n { + if i > 0 { + h.input_mut().events.push(button(false)); + } + h.input_mut().events.push(button(true)); + h.step(); } + h.input_mut().events.push(button(false)); h.step(); h.run_steps(2); } +/// The rect of the accessibility node named `label`, such as a tab's close button ("Close Main") +/// or the tab strip's overflow button ("More tabs"). +fn named(h: &Harness<'_, EffectcraftApp>, label: &str) -> egui::Rect { + use egui_kittest::kittest::Queryable; + h.get_by_label(label).rect() +} + fn drag(h: &mut Harness<'_, EffectcraftApp>, from: Pos2, to: Pos2) { h.event(Event::PointerMoved(from)); h.step(); @@ -87,7 +99,7 @@ fn project_double_click_opens_a_comp_as_its_own_timeline_tab() { assert_eq!(h.state().session.state.active_comp, Some(ItemId(main))); assert_eq!(open_comps(&h), vec![main, pre]); // × closes the shown comp's Timeline only: the panel stays with Pre. - let close = rect(&h, "panel.tab.Timeline.close"); + let close = named(&h, "Close Main"); click_n(&mut h, close.center(), 1); assert_eq!(open_comps(&h), vec![pre]); assert_eq!(h.state().session.state.active_comp, Some(ItemId(pre))); @@ -222,20 +234,20 @@ fn preview_divider(h: &Harness<'_, EffectcraftApp>) -> egui::Rect { .expect("a gutter between Preview and Properties") } -/// Default's right column: a short Preview frame (46 points of body) and the Properties frame +/// Default's right column: a short Preview frame (48 points of body under next's 28-point strip) and the Properties frame /// below it taking the rest of the column, at any window height. #[test] fn the_default_preview_frame_is_short_and_properties_takes_the_rest() { let (mut h, _, _) = harness(); let body = |h: &Harness<'_, EffectcraftApp>| rect(h, "panel.Preview").height(); - assert!((body(&h) - 46.0).abs() < 1.5, "Preview {}", body(&h)); + assert!((body(&h) - 48.0).abs() < 1.5, "Preview {}", body(&h)); let props = rect(&h, "panel.Properties"); assert!(props.height() > 300.0, "Properties {props:?}"); // A taller window gives the room to Properties. let size = h.ctx.content_rect().size(); h.set_size(size + egui::vec2(0.0, 200.0)); h.run_steps(3); - assert!((body(&h) - 46.0).abs() < 1.5, "Preview {}", body(&h)); + assert!((body(&h) - 48.0).abs() < 1.5, "Preview {}", body(&h)); assert!((rect(&h, "panel.Properties").height() - props.height() - 200.0).abs() < 2.0); } @@ -376,10 +388,10 @@ fn dragging_the_viewer_timeline_divider_far_up_does_not_crash() { h.run_steps(2); } -/// Issue #301: a stacked panel's header bar opens it with a click anywhere on it, and its −/+ -/// button at the bar's right end collapses and expands it. +/// Issue #301: a stacked panel's header bar collapses and expands it (next: a double click on +/// the section's bar). #[test] -fn a_stacked_panels_whole_header_bar_toggles_it() { +fn a_double_click_on_a_stacked_panels_bar_toggles_it() { let (mut h, _, _) = harness(); use effectcraft_ui_egui::dock; let stack = dock::stack(&[(PanelKind::Preview, true, Some(46.0)), (PanelKind::Properties, true, None)]); @@ -387,19 +399,12 @@ fn a_stacked_panels_whole_header_bar_toggles_it() { h.run_steps(3); let open = |h: &Harness<'_, EffectcraftApp>| h.state().ui.dock.is_visible(PanelKind::Preview); assert!(open(&h)); - let toggle = rect(&h, "panel.header.Preview"); - let bar = rect(&h, "panel.tab.Preview"); - assert!(toggle.max.x <= bar.max.x + 1.0 && toggle.min.x > bar.center().x, "{toggle:?} {bar:?}"); - click_n(&mut h, toggle.center(), 1); - assert!(!open(&h), "the button collapses Preview"); - let toggle = rect(&h, "panel.header.Preview"); - click_n(&mut h, toggle.center(), 1); + let bar = rect(&h, "panel.drag.Preview"); + click_n(&mut h, bar.center(), 2); + assert!(!open(&h), "a double click collapses Preview"); + let bar = rect(&h, "panel.drag.Preview"); + click_n(&mut h, bar.center(), 2); assert!(open(&h), "and expands it again"); - let toggle = rect(&h, "panel.header.Preview"); - click_n(&mut h, toggle.center(), 1); - assert!(!open(&h)); - click_n(&mut h, pos2(bar.min.x + bar.width() * 0.25, bar.center().y), 1); - assert!(open(&h), "a click on the bar away from the button opens it"); } /// #302: a panel dropped onto the Properties frame becomes a tab in that frame; its tabs switch @@ -415,6 +420,10 @@ fn a_tab_dropped_on_a_frame_joins_it() { assert!(group.starts_with(&[PanelKind::Properties]) && group.contains(&PanelKind::EffectControls), "{group:?}"); assert!(dock(&h).is_visible(PanelKind::EffectControls) && !dock(&h).is_visible(PanelKind::Properties)); assert!(dock(&h).is_visible(PanelKind::Preview)); + // DIAG: the right column's chrome after the drop. + for e in h.state().auto.elements.iter().filter(|e| e.id.starts_with("panel.tab") || e.id.starts_with("panel.drag") || e.id.starts_with("panel.menu")) { + eprintln!("DIAG {} {:?}", e.id, e.rect); + } // The frame's other tab shows Properties again, the frame stays open. let tab = rect(&h, "panel.tab.Properties"); click_n(&mut h, tab.center(), 1); @@ -444,16 +453,15 @@ fn open_comps_are_tabs_in_the_timeline_row_and_the_rest_are_in_its_overflow_menu s.state.open_comps = vec![ItemId(comps[0])]; s.state.active_comp = Some(ItemId(comps[0])); let mut h = Harness::builder() - .with_size(egui::vec2(1000.0, 800.0)) + .with_size(egui::vec2(700.0, 800.0)) .with_context_setup(effectcraft_ui_egui::framework::install_headless) .build_eframe(|_| EffectcraftApp::new(s)); h.run_steps(3); - let alone = rect(&h, "panel.tab.RenderQueue"); h.state_mut().session.state.open_comps = comps.iter().map(|c| ItemId(*c)).collect(); h.run_steps(3); - // The panel tabs keep their width; the comp tabs follow them in the same row, in order. + // The comp tabs follow the panel tabs in the same row, in order (tabs that do not fit clip to + // their first letters). let (tl, rq) = (rect(&h, "panel.tab.Timeline"), rect(&h, "panel.tab.RenderQueue")); - assert!((rq.width() - alone.width()).abs() < 0.5, "Render Queue {rq:?} was {alone:?}"); let shown: Vec = comps.iter().copied().filter(|c| has(&h, &format!("panel.tab.Timeline.{c}"))).collect(); assert!(shown.contains(&comps[0]) && shown.len() < comps.len(), "{shown:?}"); let mut x = rq.max.x; @@ -464,35 +472,29 @@ fn open_comps_are_tabs_in_the_timeline_row_and_the_rest_are_in_its_overflow_menu } // A comp with no room is in the » menu; picking it shows it, and its tab joins the row. let hidden = comps.iter().copied().find(|c| !shown.contains(c)).unwrap(); - let more = rect(&h, "panel.tab.Timeline.more"); + let more = named(&h, "More tabs"); assert!(more.min.x >= x - 0.5 && tl.y_range().contains(more.center().y), "{more:?}"); click_n(&mut h, more.center(), 1); - let item = rect(&h, &format!("panel.tab.Timeline.more.{hidden}")); + let name = names[comps.iter().position(|c| *c == hidden).unwrap()]; + let item = { + use egui_kittest::kittest::{NodeT, Queryable}; + h.query_all_by_label(name).find(|node| node.accesskit_node().role() == egui::accesskit::Role::MenuItem).expect("the comp in the overflow menu").rect() + }; click_n(&mut h, item.center(), 1); assert_eq!(h.state().session.state.active_comp, Some(ItemId(hidden))); assert_eq!(open_comps(&h), comps); assert!(has(&h, &format!("panel.tab.Timeline.{hidden}"))); } -/// Whether `id` was registered in the last frame (not the one before). -fn drawn(h: &Harness<'_, EffectcraftApp>, id: &str) -> bool { - h.state().auto.elements.iter().any(|e| e.id == id) -} - #[test] fn an_inactive_comp_tab_shows_its_close_button_on_hover_and_closes_without_showing_its_comp() { let (mut h, pre, main) = harness(); h.state_mut().session.state.open_comps = vec![ItemId(main), ItemId(pre)]; h.run_steps(3); let (tm, tp) = (rect(&h, &format!("panel.tab.Timeline.{main}")), rect(&h, &format!("panel.tab.Timeline.{pre}"))); - // The shown comp's × is always there; Pre's only while the pointer is over its tab. - h.event(Event::PointerMoved(pos2(800.0, 900.0))); - h.run_steps(2); - assert!(drawn(&h, "panel.tab.Timeline.close") && drawn(&h, &format!("panel.tab.Timeline.{main}.close"))); - assert!(!drawn(&h, &format!("panel.tab.Timeline.{pre}.close")), "no × on an inactive tab the pointer is not over"); h.event(Event::PointerMoved(tp.center())); h.run_steps(2); - let close = rect(&h, &format!("panel.tab.Timeline.{pre}.close")); + let close = named(&h, "Close Pre"); assert!(tp.contains_rect(close), "{close:?} inside {tp:?}"); // Every comp tab keeps the ×'s room: hovering changes no width. assert_eq!((rect(&h, &format!("panel.tab.Timeline.{main}")), rect(&h, &format!("panel.tab.Timeline.{pre}"))), (tm, tp)); diff --git a/docs/control-protocol.md b/docs/control-protocol.md index dc54b05a1..1505e268b 100644 --- a/docs/control-protocol.md +++ b/docs/control-protocol.md @@ -261,12 +261,13 @@ windows stay in the main window. Keys pressed in a floating window that none of run the main window's shortcuts, and files dropped on one import as on the main window. While a modal dialog is open, floating windows take no input. -The automation ids of the docking chrome are `panel.tab.`, `panel.drag.` (a -group's drag bar), `panel.menu.` (≡), `panel.tab..lock` (viewer lock), -`panel.float..move`, `.resize` and `.resize.` for floating window `n`, and -`dock.gutter.` for dividers (`a`/`b` per split level; a stack's gap below entry `i` adds -`s`). The other parts (the Timeline's comp tabs, a floating window's close button, the tab -overflow menu) are found by their accessible names. +The automation ids of the docking chrome are `panel.tab.`, `panel.tab.Timeline.` +(the Timeline's comp tabs), `panel.drag.` (a group's drag bar), `panel.menu.` (≡), +`panel.tab..lock` (viewer lock), `panel.float..move`, `.resize` and `.resize.` +for floating window `n`, `dock.gutter.` for split dividers (`a`/`b` per split level), +`dock.gutter.group.` below a dock column's group and `dock.column.` at a dock +column's inner edge. The other parts (a tab's close button, "Close ", and the tab +overflow button, "More tabs") are found by their accessible names. Saved workspaces (`workspaces.json`, version 2) hold craft-ui `Workspace`s: the layout, the closed panels with where each goes back, the lock, and each floating window's desktop place. A