mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-24 18:32:23 +00:00
craft-libs next: framework fixes and the app's follow-ups (#9211)
VectorCraft moves to craft-libs `next` at 3238a3eca (from bf62d509f), and follows the framework's changes so production's behaviour holds.
Framework fixes this brings in (all on `next`):
- Save for Web's hosted answers, Tab out of selectable label text, Escape in text fields, a focused stop in a closing layer losing the focus, grid labels beside a menu.
- A toolbar button's command runs as a command (clicking the active Blend tool finishes the blend again).
- A Page key bound to a command runs it ahead of the canvas page scroll.
- A command no longer closes and reopens a dock panel's flyout, so Cmd+A in the Artboards flyout selects every artboard.
- Presses in Export for Screens land on the control under them again (a tile grid measured too narrow clipped the pane).
- VectorCraft Modern's selected, pressed and disabled colours take production's values.
App changes that follow the framework:
- Properties dialogs pass their key to `PropertiesDialog::new`; hosted parameter dialogs take footer presses through `take_action`; the Print dialog reads and sets the Settings destination; job queues keep the default order; Preferences custom rows report changes; Home's Learn section uses `StartScreen::app_section`; `ui.screenshot` replies with `ScreenshotParams`; the Appearance list copies on Alt drag through `ReorderRule::copy_with`; the Character panel gives the font picker its settings; Zoom with Mouse Wheel picks the canvas `WheelScheme`; Recovery reads the `RecoveryChoice` answer.
- The document canvas takes arrows with every modifier (Alt+arrow copies, Shift+arrow nudges ten), and an arrow bound to an app command runs it.
- The toolbar drawer takes a tool dragged off its slot (`RemoveFrom`, `MoveFrom`).
- Number fields show percentages whole ("60 %") and lengths to a thousandth of a point, as production did (`NumberPrecision::Measured`).
Tests rewritten (assertions unchanged): the three file-drop tests run the pass the drop asks for; the Appearance Characters test clicks the link by role.
Checks: `vectorcraft-ui-egui` lib tests 3775 passed, 0 failed. Clippy (`vectorcraft-ui-egui`, `vectorcraft`, all targets, `-D warnings`) and `cargo fmt --check` are clean.
This commit is contained in:
Generated
+91
-81
@@ -1134,7 +1134,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-automation",
|
||||
"craft-behavior",
|
||||
@@ -1175,7 +1175,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-affinity"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"crc32fast",
|
||||
"flate2",
|
||||
@@ -1186,7 +1186,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-appkit"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"block2 0.6.2",
|
||||
"objc2-app-kit 0.3.2",
|
||||
@@ -1196,7 +1196,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-atomic"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"rustix 1.1.6",
|
||||
]
|
||||
@@ -1204,11 +1204,12 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-automation"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"base64 0.22.1",
|
||||
"base64 0.23.1",
|
||||
"craft-behavior",
|
||||
"craft-control",
|
||||
"craft-host",
|
||||
"craft-keymap",
|
||||
"craft-platform",
|
||||
"craft-theme",
|
||||
@@ -1228,7 +1229,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-behavior"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"accesskit",
|
||||
"bitflags 2.13.2",
|
||||
@@ -1246,7 +1247,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-browse"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-docpath",
|
||||
@@ -1264,7 +1265,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-cdr"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"crc32fast",
|
||||
"flate2",
|
||||
@@ -1273,7 +1274,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-cloud-ui"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"egui",
|
||||
]
|
||||
@@ -1281,7 +1282,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-cms"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"md-5",
|
||||
"rayon",
|
||||
@@ -1290,12 +1291,12 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-codepage"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
|
||||
[[package]]
|
||||
name = "craft-color-ui"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-cms",
|
||||
@@ -1315,7 +1316,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-control"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"getrandom 0.3.4",
|
||||
"serde",
|
||||
@@ -1325,7 +1326,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-dds"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"rayon",
|
||||
]
|
||||
@@ -1333,7 +1334,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-dialogs"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"block2 0.6.2",
|
||||
"craft-atomic",
|
||||
@@ -1358,7 +1359,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-docpath"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"serde",
|
||||
]
|
||||
@@ -1366,7 +1367,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-draw"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-color-ui",
|
||||
@@ -1385,7 +1386,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-dxf"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-codepage",
|
||||
"encoding_rs",
|
||||
@@ -1397,12 +1398,12 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-eps"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
|
||||
[[package]]
|
||||
name = "craft-font-catalog"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"fontique",
|
||||
"harfrust 0.13.3",
|
||||
@@ -1417,7 +1418,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-font-manager"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-font-catalog",
|
||||
@@ -1436,7 +1437,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-font-store"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"cap-primitives",
|
||||
"craft-atomic",
|
||||
@@ -1457,12 +1458,12 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-fonts-build"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
|
||||
[[package]]
|
||||
name = "craft-gif"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"gif",
|
||||
]
|
||||
@@ -1470,7 +1471,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-gzip"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"flate2",
|
||||
]
|
||||
@@ -1478,7 +1479,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-host"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"bitflags 2.13.2",
|
||||
"craft-i18n",
|
||||
@@ -1491,7 +1492,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-i18n"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"fixed_decimal",
|
||||
@@ -1519,7 +1520,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-image-codecs"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-dds",
|
||||
"craft-jpeg",
|
||||
@@ -1546,7 +1547,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-imaging"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-color-ui",
|
||||
@@ -1564,7 +1565,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-jpeg"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"thiserror 2.0.21",
|
||||
]
|
||||
@@ -1572,7 +1573,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-jxl"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"brotli-decompressor 5.0.3",
|
||||
"jixel",
|
||||
@@ -1583,7 +1584,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-keymap"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-host",
|
||||
"craft-i18n",
|
||||
@@ -1598,7 +1599,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-layers"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-i18n",
|
||||
@@ -1612,7 +1613,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-menu"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-host",
|
||||
@@ -1630,7 +1631,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-metadata"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"brotli-decompressor 6.3.2",
|
||||
"chrono",
|
||||
@@ -1642,7 +1643,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-metafile"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"encoding_rs",
|
||||
"image",
|
||||
@@ -1653,7 +1654,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-mime"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"craft-codepage",
|
||||
@@ -1663,7 +1664,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-pages"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-keymap",
|
||||
@@ -1673,12 +1674,13 @@ dependencies = [
|
||||
"egui",
|
||||
"kurbo 0.13.1",
|
||||
"serde",
|
||||
"serde_json",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "craft-pdf"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"hayro-interpret",
|
||||
"hayro-syntax",
|
||||
@@ -1690,7 +1692,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-platform"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"async-channel",
|
||||
"async-io",
|
||||
@@ -1699,6 +1701,7 @@ dependencies = [
|
||||
"craft-atomic",
|
||||
"craft-docpath",
|
||||
"craft-host",
|
||||
"craft-i18n",
|
||||
"craft-theme",
|
||||
"futures-lite",
|
||||
"js-sys",
|
||||
@@ -1720,7 +1723,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-plotter"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"kurbo 0.13.1",
|
||||
"thiserror 2.0.21",
|
||||
@@ -1729,10 +1732,11 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-print"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-host",
|
||||
"craft-theme",
|
||||
"craft-ui",
|
||||
"craft-winprint-gdi",
|
||||
"egui",
|
||||
@@ -1752,7 +1756,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-proof"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"log",
|
||||
"miniz_oxide 0.9.1",
|
||||
@@ -1763,7 +1767,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-ps"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-eps",
|
||||
"flate2",
|
||||
@@ -1777,7 +1781,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-psd"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"encoding_rs",
|
||||
"flate2",
|
||||
@@ -1788,19 +1792,22 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-quit"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"dispatch2",
|
||||
"egui",
|
||||
"objc2 0.6.5",
|
||||
"objc2-app-kit 0.3.2",
|
||||
"wasm-bindgen",
|
||||
"web-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "craft-review"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"base64 0.23.1",
|
||||
"craft-behavior",
|
||||
"craft-host",
|
||||
"craft-i18n",
|
||||
@@ -1817,7 +1824,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-settings"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-atomic",
|
||||
"craft-host",
|
||||
@@ -1834,7 +1841,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-stream-codecs"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"fax",
|
||||
"hayro-ccitt",
|
||||
@@ -1845,7 +1852,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-svg"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-image-codecs",
|
||||
"craft-xml",
|
||||
@@ -1866,7 +1873,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-table"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-keymap",
|
||||
@@ -1878,7 +1885,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-text"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-font-manager",
|
||||
@@ -1903,7 +1910,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-theme"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"bitflags 2.13.2",
|
||||
"craft-tracked",
|
||||
@@ -1918,7 +1925,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-theme-store"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-atomic",
|
||||
"craft-behavior",
|
||||
@@ -1933,7 +1940,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-tiff"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"thiserror 2.0.21",
|
||||
@@ -1943,7 +1950,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-time"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"thiserror 2.0.21",
|
||||
@@ -1952,7 +1959,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-timeline"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-keymap",
|
||||
@@ -1967,12 +1974,12 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-tracked"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
|
||||
[[package]]
|
||||
name = "craft-ui"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-cloud-ui",
|
||||
"craft-ui-canvas",
|
||||
@@ -1986,7 +1993,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-ui-canvas"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-i18n",
|
||||
@@ -2002,7 +2009,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-ui-contract"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"accesskit",
|
||||
"craft-behavior",
|
||||
@@ -2033,13 +2040,14 @@ dependencies = [
|
||||
"smallvec",
|
||||
"toml",
|
||||
"typeid",
|
||||
"wasm-bindgen-futures",
|
||||
"web-time",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "craft-ui-macros"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"proc-macro-crate",
|
||||
"proc-macro2",
|
||||
@@ -2050,7 +2058,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-ui-panels"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-host",
|
||||
@@ -2068,7 +2076,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-ui-patterns"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-host",
|
||||
@@ -2089,7 +2097,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-ui-shell"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-host",
|
||||
@@ -2110,16 +2118,18 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-ui-widgets"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-host",
|
||||
"craft-i18n",
|
||||
"craft-keymap",
|
||||
"craft-svg",
|
||||
"craft-theme",
|
||||
"craft-ui-contract",
|
||||
"craft-ui-macros",
|
||||
"egui",
|
||||
"log",
|
||||
"serde",
|
||||
"smallvec",
|
||||
]
|
||||
@@ -2127,7 +2137,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-update"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"craft-host",
|
||||
@@ -2156,7 +2166,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-vectorcraft-format"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"flate2",
|
||||
"serde",
|
||||
@@ -2167,7 +2177,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-wayland"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"raw-window-handle",
|
||||
"wayland-backend",
|
||||
@@ -2177,7 +2187,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-web-api"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"js-sys",
|
||||
"serde_json",
|
||||
@@ -2188,7 +2198,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-win32"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"winsafe",
|
||||
]
|
||||
@@ -2196,7 +2206,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-window"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"craft-appkit",
|
||||
"craft-atomic",
|
||||
@@ -2228,7 +2238,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-xml"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"quick-xml 0.41.0",
|
||||
"serde",
|
||||
@@ -3496,7 +3506,7 @@ checksum = "9f4d0e94ddd48749f06bbe4e5389fb9799a0c45bcaf00495042076ef05e3241a"
|
||||
[[package]]
|
||||
name = "hayro-cmap"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"brotli",
|
||||
"hayro-postscript",
|
||||
@@ -3505,7 +3515,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "hayro-interpret"
|
||||
version = "0.7.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"bitflags 2.13.2",
|
||||
"hayro-cmap",
|
||||
@@ -3523,7 +3533,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "hayro-jbig2"
|
||||
version = "0.3.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"fearless_simd",
|
||||
"hayro-ccitt",
|
||||
@@ -3541,12 +3551,12 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "hayro-postscript"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
|
||||
[[package]]
|
||||
name = "hayro-syntax"
|
||||
version = "0.7.2"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"flate2",
|
||||
"hayro-ccitt",
|
||||
@@ -4477,7 +4487,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "krilla"
|
||||
version = "0.8.2"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"base64 0.22.1",
|
||||
"bumpalo",
|
||||
@@ -4634,7 +4644,7 @@ checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4"
|
||||
[[package]]
|
||||
name = "linesweeper"
|
||||
version = "0.5.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0#bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
|
||||
dependencies = [
|
||||
"arrayvec",
|
||||
"kurbo 0.13.1",
|
||||
|
||||
+34
-34
@@ -11,44 +11,44 @@ rust-version = "1.95"
|
||||
repository = "https://github.com/storytold/vectorcraft"
|
||||
|
||||
[workspace.dependencies]
|
||||
craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0", default-features = false, features = ["interpret", "write"] }
|
||||
craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d", default-features = false, features = ["interpret", "write"] }
|
||||
craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
# The `.vectorcraft` envelope: its members, version, embedded images and the data after the JSON.
|
||||
craft-vectorcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-vectorcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
# Native Affinity documents (craft-libs#914).
|
||||
craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
# Bounded CDR (v1-v27) and CMX (32-bit) reader (craft-libs#778).
|
||||
craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
# SVG parsing, limits, SVGZ and writer (craft-libs#778).
|
||||
craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0", features = ["tree"] }
|
||||
craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d", features = ["tree"] }
|
||||
craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
# EPS container, previews, ASCII85 and DSC comments (craft-libs#778).
|
||||
craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
# DXF tags, reader and writer (craft-libs#778, #926, #927).
|
||||
craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
# WMF, EMF and EMF+ reader (craft-libs#778).
|
||||
craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0", default-features = false, features = ["read", "write"] }
|
||||
craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d", default-features = false, features = ["read", "write"] }
|
||||
craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
# The framework facade (`craft::ui`, `craft::settings`, `craft::platform`, ...). No default features: each crate names
|
||||
# the members it imports.
|
||||
craft = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
# Below the egui layer, so not through the facade: the colour harmony rules and their settings (craft-color-ui
|
||||
# without its `ui` feature), the colour type they work in, and the craft-fonts tables the text crate's build writes.
|
||||
craft-color-ui = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
craft-color-ui = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
# internal
|
||||
vectorcraft-geom = { path = "crates/geom" }
|
||||
vectorcraft-color = { path = "crates/color" }
|
||||
@@ -191,13 +191,13 @@ lto = "thin"
|
||||
codegen-units = 1
|
||||
|
||||
[patch.crates-io]
|
||||
hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
krilla = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0" }
|
||||
hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
krilla = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
|
||||
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" }
|
||||
|
||||
@@ -27,7 +27,7 @@ log = { workspace = true }
|
||||
# `wgpu` pulls egui-wgpu's defaults: WebGPU plus the WebGL2 fallback.
|
||||
eframe = { workspace = true, features = ["default_fonts", "wgpu", "accesskit"] }
|
||||
# The page command API (storytold/craft-libs#413): the request plumbing behind window.vectorcraft.
|
||||
craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0", version = "0.1.0" }
|
||||
craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d", version = "0.1.0" }
|
||||
|
||||
wasm-bindgen = "0.2"
|
||||
serde_json = { workspace = true }
|
||||
|
||||
@@ -306,7 +306,7 @@ fn store(ctx: &craft::egui::Context) -> TextureStore<u8> {
|
||||
fn print_queue(ui: &Ui) -> JobQueue<PrintKey, Option<Print>> {
|
||||
let ctx = ui.ctx().clone();
|
||||
let jobs = Env::of(ui).view().host().map_or_else(default_jobs, |host| Arc::clone(host.jobs_shared()));
|
||||
let options = QueueOptions { lanes: QueueOptions::default_lanes().min(1), name: "fold-print" };
|
||||
let options = QueueOptions { lanes: QueueOptions::default_lanes().min(1), name: "fold-print", ..QueueOptions::default() };
|
||||
JobQueue::new(jobs, Wake::new(move || ctx.request_repaint()), options)
|
||||
}
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ use craft::ui::runtime::toast::{self, Toast};
|
||||
use craft::ui::runtime::windows::WindowHost;
|
||||
use craft::ui::shell::embed::CloseDecision;
|
||||
use craft::ui::shell::{AppShell, CanvasPanel, Slot};
|
||||
use craft::ui::text::NumberPrecision;
|
||||
use vectorcraft_engine::cmd::clipboard::PASTE_ORDER;
|
||||
use vectorcraft_engine::cmd::toast::Level;
|
||||
|
||||
@@ -662,6 +663,8 @@ pub(crate) fn root_env(prefs: &vectorcraft_engine::Prefs, native_ppp: f32) -> Ro
|
||||
root.sizes = theme::app_sizes();
|
||||
root.values.set(view::zoom_scheme(prefs, native_ppp));
|
||||
root.values.set(if prefs.scrub_numeric_fields { ScrubDrags::LabelOnly } else { ScrubDrags::Off });
|
||||
// Percentages read whole (60 %), lengths to a thousandth of a point (357.114 pt), as production showed them.
|
||||
root.values.set(NumberPrecision::Measured);
|
||||
// A bare Tab on the canvas, or with nothing focused, toggles the panels (`window.dock`) instead of moving focus.
|
||||
root.tab_toggles_chrome = true;
|
||||
// Escape in a text field gives up its focus, reverting any typing, so the next keys are the window's.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use craft::behavior::{CanvasView, ZoomScheme};
|
||||
use craft::ui::canvas::{NavigationOptions, ViewCommands, ViewRequest};
|
||||
use craft::ui::canvas::{NavigationOptions, ViewCommands, ViewRequest, WheelScheme};
|
||||
use serde_json::Value;
|
||||
use vectorcraft_engine::Prefs;
|
||||
|
||||
@@ -9,7 +9,7 @@ use crate::state::ViewMove;
|
||||
/// The canvas's navigation options for `p`: the wheel, Animated Zoom, the trackpad and touch gestures.
|
||||
pub(crate) fn navigation(p: &Prefs) -> NavigationOptions {
|
||||
let mut options = NavigationOptions::default();
|
||||
options.zoom_with_wheel = p.zoom_with_mouse_wheel;
|
||||
options.wheel = if p.zoom_with_mouse_wheel { WheelScheme::Zoom } else { WheelScheme::Scroll };
|
||||
options.animated_zoom = crate::canvas::animated_zoom(p);
|
||||
options.scrubby_zoom = crate::canvas::animated_zoom(p);
|
||||
options.trackpad_rotate = p.trackpad_rotate_view;
|
||||
|
||||
@@ -3,11 +3,13 @@
|
||||
//! canvas, runs the seams in order and copies the view back to the document's `View`.
|
||||
|
||||
use craft::behavior::{CanvasView, PressPhase};
|
||||
use craft::keymap::Mods;
|
||||
use craft::ui::canvas::{
|
||||
Canvas, CanvasScrollbars, CanvasSpace, RotateView, ToolHostResponse, ToolPass, ViewCommands, ViewRequest, ViewTarget, canvas_space, tool_pass,
|
||||
};
|
||||
use craft::ui::contract::{Bind, Props as _, Show as _, ShowContainer as _};
|
||||
use craft::ui::runtime::env::Env;
|
||||
use craft::ui::runtime::focus::NudgeMods;
|
||||
use craft::ui::style::StyleCx;
|
||||
use egui::Ui;
|
||||
use serde_json::json;
|
||||
@@ -72,6 +74,19 @@ pub(crate) fn revolve_editing(app: &VectorcraftApp) -> bool {
|
||||
app.three_d_dialog.is_some()
|
||||
}
|
||||
|
||||
/// The arrows the canvas takes with nothing in the window focused, as it takes every arrow while it has the focus:
|
||||
/// each modifier combination. A plain arrow nudges, Shift ten times as far, Alt nudges a copy, and an arrow an app
|
||||
/// command is bound to runs it ([`tool_adapter`]).
|
||||
const ARROWS: NudgeMods = {
|
||||
let mut arrows = NudgeMods::NONE;
|
||||
let mut held = 0;
|
||||
while held < 16 {
|
||||
arrows = arrows.with(Mods { cmd: held & 1 != 0, ctrl: held & 2 != 0, alt: held & 4 != 0, shift: held & 8 != 0 });
|
||||
held += 1;
|
||||
}
|
||||
arrows
|
||||
};
|
||||
|
||||
/// The id `Canvas::new("Document")` gets for a body of `win`.
|
||||
pub(crate) fn canvas_id(win: Win) -> egui::Id {
|
||||
egui::Id::unique("Document").with(win)
|
||||
@@ -166,6 +181,7 @@ pub(crate) fn show_document(app: &mut VectorcraftApp, ui: &mut Ui, win: Win, kin
|
||||
.layer_bounds(&layers)
|
||||
.queued(&queued)
|
||||
.navigation(crate::app::view::navigation(prefs))
|
||||
.body_nudges(ARROWS)
|
||||
.rulers(x, y)
|
||||
.with_rulers(strips)
|
||||
.precise_cursors(prefs.use_precise_cursors);
|
||||
|
||||
@@ -44,7 +44,7 @@ pub(super) fn home(app: &mut VectorcraftApp, ui: &mut Ui, rect: egui::Rect) {
|
||||
.max_recent(6)
|
||||
.templates(&templates)
|
||||
.links(&links)
|
||||
.section(tl!("Learn"), &mut learn)
|
||||
.app_section(tl!("Learn"), &mut learn)
|
||||
.show(&mut child);
|
||||
app.ui.home_view = view;
|
||||
app.ui.home_sort = sort;
|
||||
|
||||
@@ -430,20 +430,29 @@ impl CanvasTool for SessionTool<'_> {
|
||||
if self.send_key(k, tool_mods(*mods, space)) || self.busy_key(k) {
|
||||
return true;
|
||||
}
|
||||
// An arrow an application command is bound to runs it, as production's keymap ran it first; one it
|
||||
// leaves moves the selection, with Backtick held only its pattern paint. A panel's own arrows (a page
|
||||
// preview's) are not the canvas's.
|
||||
// An arrow an application command is bound to runs it, as production's keymap ran it first: the
|
||||
// canvas takes every arrow, so no shortcut runs it otherwise. One it leaves moves the selection, with
|
||||
// Backtick held only its pattern paint. A panel's own arrows (a page preview's) are not the canvas's.
|
||||
let chord = Chord::new(*mods, arrow);
|
||||
let bound = self.app().ui_ctx.as_ref().and_then(craft::ui::runtime::commands::keymap).is_some_and(|keymap| {
|
||||
let ctx = self.app().ui_ctx.clone();
|
||||
let bound = ctx.as_ref().and_then(craft::ui::runtime::commands::keymap).and_then(|keymap| {
|
||||
let global = |command: &craft::keymap::CommandRef| {
|
||||
keymap.bindable(command).is_some_and(|def| keymap.scopes().kind(&def.scope) == craft::keymap::ScopeKind::Application)
|
||||
};
|
||||
!matches!(keymap.lookup_where(&chord, false, &craft::keymap::Active::NONE, &[], &global), craft::keymap::Lookup::None)
|
||||
match keymap.lookup_where(&chord, false, &craft::keymap::Active::NONE, &[], &global) {
|
||||
craft::keymap::Lookup::Run(command) => Some(command),
|
||||
// The key's own press fires the group's first tool, as here.
|
||||
craft::keymap::Lookup::Cycle(commands) => commands.into_iter().next(),
|
||||
_ => None,
|
||||
}
|
||||
});
|
||||
if !bound {
|
||||
crate::shortcuts::nudge(&mut self.app(), *direction, *mods, with.contains(&Key::Backtick));
|
||||
match ctx.zip(bound) {
|
||||
Some((ctx, command)) => {
|
||||
craft::ui::runtime::commands::fire(&ctx, command, craft::ui::runtime::commands::FireSource::Key);
|
||||
}
|
||||
None => crate::shortcuts::nudge(&mut self.app(), *direction, *mods, with.contains(&Key::Backtick)),
|
||||
}
|
||||
!bound
|
||||
true
|
||||
}
|
||||
ToolKey::Delete { forward, .. } => self.send_key(if *forward { EngineKey::Delete } else { EngineKey::Backspace }, held),
|
||||
ToolKey::Submit => {
|
||||
|
||||
@@ -38,6 +38,7 @@ use std::sync::atomic::{AtomicU64, Ordering};
|
||||
use craft::automation::control::JobId;
|
||||
use craft::automation::dialogs::MAX_DIALOG_FIELDS;
|
||||
use craft::automation::protocol::Params;
|
||||
use craft::automation::screenshot::ScreenshotParams;
|
||||
use craft::automation::synthetic::{self, Click, Move, Release};
|
||||
use craft::automation::{ControlRequest, Reply};
|
||||
use craft::behavior::CanvasView;
|
||||
@@ -1508,7 +1509,9 @@ fn dispatch(app: &mut VectorcraftApp, ctx: &egui::Context, method: &str, p: &Val
|
||||
ctx.send_viewport_cmd(egui::ViewportCommand::Focus);
|
||||
}
|
||||
ctx.request_repaint();
|
||||
Reply::screenshot(next_token(), s("path").map(str::to_string), egui::ViewportId::ROOT)
|
||||
let mut shot = ScreenshotParams::default();
|
||||
shot.path = s("path").map(str::to_string);
|
||||
Reply::screenshot(next_token(), shot, egui::ViewportId::ROOT)
|
||||
}
|
||||
"ui.render" => {
|
||||
let given = (|| {
|
||||
|
||||
@@ -972,11 +972,11 @@ pub(crate) fn tabs(fields: &DialogFields, opening: &Opening) -> Vec<PropertiesTa
|
||||
}
|
||||
|
||||
/// The dialog of style `name` over `opening`, which `title` heads, kept open by a held OK.
|
||||
pub(crate) fn hosted(key: &str, title: &'static str, opening: &Arc<Opening>, name: &str) -> HostedPropertiesDialog {
|
||||
pub(crate) fn hosted(key: &'static str, title: &'static str, opening: &Arc<Opening>, name: &str) -> HostedPropertiesDialog {
|
||||
let rows_of = Arc::clone(opening);
|
||||
HostedPropertiesDialog::new(key, opening.fields(name), move |values| {
|
||||
let now = values.value().cloned().unwrap_or_else(DialogFields::new);
|
||||
PropertiesDialog::new(title, tabs(&now, &rows_of), values).tab_layout(TabLayout::List)
|
||||
PropertiesDialog::new(key, title, tabs(&now, &rows_of), values).tab_layout(TabLayout::List)
|
||||
})
|
||||
.held_ok()
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ pub fn open(app: &mut VectorcraftApp) -> Result<Value, String> {
|
||||
let display = app.display_profile.transform(app.session.prefs.monitor_profile_display);
|
||||
let tabs = tabs(mode, setup, presets, display);
|
||||
let dialog = HostedPropertiesDialog::new(KIND, dialog_fields(flatten(map)), move |values| {
|
||||
PropertiesDialog::new(tl!("Document Setup"), tabs.clone(), values)
|
||||
PropertiesDialog::new(KIND, tl!("Document Setup"), tabs.clone(), values)
|
||||
});
|
||||
super::host::open_held(app, dialog, |app, fields| confirm(app, fields).map(|_| ())).ok_or("no window to show the dialog in")?;
|
||||
Ok(Value::Null)
|
||||
|
||||
@@ -188,7 +188,7 @@ pub(crate) fn pump(app: &mut VectorcraftApp, _ctx: &egui::Context) {
|
||||
let Some(dialogs) = app.dialogs() else { return };
|
||||
let ids: Vec<DialogId> = app.export_dialogs.0.iter().map(|o| o.id).collect();
|
||||
for id in ids {
|
||||
let taken = dialogs.with(|host| host.get_mut_by_id::<HostedParamDialog>(id).map(|d| (d.take_footer_action(), d.take_actions())));
|
||||
let taken = dialogs.with(|host| host.get_mut_by_id::<HostedParamDialog>(id).map(|d| (d.take_action(), d.take_actions())));
|
||||
let Some(open) = app.export_dialogs.find(id) else { continue };
|
||||
let (kind, selection) = (open.kind.clone(), open.selection);
|
||||
let Some((footer, actions)) = taken else {
|
||||
|
||||
@@ -750,11 +750,11 @@ pub(crate) fn tabs(fields: &DialogFields, opening: &Opening) -> Vec<PropertiesTa
|
||||
}
|
||||
|
||||
/// The dialog of style `name` over `opening`, which `title` heads, kept open by a held OK.
|
||||
pub(crate) fn hosted(key: &str, title: &'static str, opening: &Arc<Opening>, name: &str) -> HostedPropertiesDialog {
|
||||
pub(crate) fn hosted(key: &'static str, title: &'static str, opening: &Arc<Opening>, name: &str) -> HostedPropertiesDialog {
|
||||
let rows_of = Arc::clone(opening);
|
||||
HostedPropertiesDialog::new(key, opening.fields(name), move |values| {
|
||||
let now = values.value().cloned().unwrap_or_else(DialogFields::new);
|
||||
craft::ui::patterns::form_dialogs::PropertiesDialog::new(title, tabs(&now, &rows_of), values)
|
||||
craft::ui::patterns::form_dialogs::PropertiesDialog::new(key, title, tabs(&now, &rows_of), values)
|
||||
.tab_layout(craft::ui::patterns::form_dialogs::TabLayout::List)
|
||||
})
|
||||
.held_ok()
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
use std::sync::{Arc, LazyLock, mpsc};
|
||||
|
||||
use craft::behavior::{ColumnWidth, EditEvent, EditEvents, IconId, Mixed};
|
||||
use craft::print::ui::{HostedPrint, PrintAnswer, PrintFinish, PrintLayout, PrintMode, PrintSection, PrintSheet, Printer, State};
|
||||
use craft::print::ui::{Destination, HostedPrint, PrintAnswer, PrintFinish, PrintLayout, PrintMode, PrintSection, PrintSheet, Printer, State};
|
||||
use craft::ui::buttons::ToggleButton;
|
||||
use craft::ui::choice::Checkbox;
|
||||
use craft::ui::contract::{Bind, Props as _, Show as _, ShowContainer as _};
|
||||
@@ -183,8 +183,9 @@ fn start(
|
||||
let ctx = app.ui_ctx.clone().ok_or("no window to show the dialog in")?;
|
||||
let (printers, service) = destinations(app);
|
||||
let mut state = State::default();
|
||||
state.settings.printer =
|
||||
printers.iter().find(|p| p.default).or(printers.first().filter(|_| service)).map_or_else(|| PDF_FILE.to_string(), |p| p.name.clone());
|
||||
state.settings.destination = Destination::Printer(
|
||||
printers.iter().find(|p| p.default).or(printers.first().filter(|_| service)).map_or_else(|| PDF_FILE.to_string(), |p| p.name.clone()),
|
||||
);
|
||||
state.printers = printers;
|
||||
let header = if service && cfg!(windows) {
|
||||
vec![
|
||||
@@ -466,8 +467,10 @@ fn accept(app: &mut VectorcraftApp, open: &Open, answer: &PrintAnswer, name: &st
|
||||
app.run("print.setup", json!({ "settings": settings }))?;
|
||||
match answer.finish {
|
||||
PrintFinish::Print => {
|
||||
let to_file = answer.settings.printer == PDF_FILE;
|
||||
let printer = if to_file { "" } else { answer.settings.printer.as_str() };
|
||||
let (printer, to_file) = match &answer.settings.destination {
|
||||
Destination::Printer(name) if name != PDF_FILE => (name.as_str(), false),
|
||||
_ => ("", true),
|
||||
};
|
||||
let direct_pdf = answer.fields.bool("directPdf").unwrap_or(false);
|
||||
crate::print::run(app, &json!({ "settings": settings, "printer": printer, "toFile": to_file, "directPdf": direct_pdf })).map(|_| ())
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@ fn seen(app: &VectorcraftApp, id: DialogId) -> Option<Seen> {
|
||||
app.dialogs()?.with(|host| {
|
||||
let top = host.stack().is_top(id);
|
||||
let dialog = host.get_mut_by_id::<HostedParamDialog>(id)?;
|
||||
Some(Seen { top, previewing: dialog.is_previewing(), fields: dialog.fields().clone(), action: dialog.take_footer_action() })
|
||||
Some(Seen { top, previewing: dialog.is_previewing(), fields: dialog.fields().clone(), action: dialog.take_action() })
|
||||
})
|
||||
}
|
||||
|
||||
@@ -426,7 +426,7 @@ pub fn refresh_saved(app: &VectorcraftApp) {
|
||||
let mut saved = saved();
|
||||
let queue = saved.queue.get_or_insert_with(|| {
|
||||
let wake = app.ui_ctx.clone().map_or_else(Wake::none, |ctx| Wake::new(move || ctx.request_repaint()));
|
||||
JobQueue::new(app.host.jobs_shared().clone(), wake, QueueOptions { lanes: 1, name: "vectorcraft-proof-setups" })
|
||||
JobQueue::new(app.host.jobs_shared().clone(), wake, QueueOptions { lanes: 1, name: "vectorcraft-proof-setups", ..QueueOptions::default() })
|
||||
});
|
||||
queue.submit((), Priority::BACKGROUND, move |_| listing(&dir));
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ pub const KIND: &str = "svgOptions";
|
||||
/// The UI command of the dialog's Show in Browser button.
|
||||
pub const BROWSER: &str = "file.export.svg.browser";
|
||||
|
||||
/// The id of the dialog's Show in Browser footer button, as `take_footer_action` reports it.
|
||||
/// The id of the dialog's Show in Browser footer button, as `take_action` reports it.
|
||||
pub(super) const BROWSER_ACTION: &str = "browser";
|
||||
|
||||
/// The folder in the system's temporary folder that Show in Browser's previews go to.
|
||||
|
||||
@@ -264,7 +264,7 @@ pub(crate) fn pump(app: &mut VectorcraftApp, _ctx: &egui::Context) {
|
||||
let Some(mut s) = app.three_d_dialog.take() else { return };
|
||||
// A dialog that closed is finished by the held drain (OK or Cancel), which owns the session's end.
|
||||
let Some((fields, previewing)) = dialog_of(app, s.id, |d| {
|
||||
match d.take_footer_action().as_deref() {
|
||||
match d.take_action().as_deref() {
|
||||
Some(revolve::RESET_ALL) => revolve::reset_all(d, &s.effect),
|
||||
Some(super::three_d_classic::MAP_DONE) => super::three_d_classic::map_done(d, &s.effect),
|
||||
_ => {}
|
||||
|
||||
@@ -526,7 +526,7 @@ pub(crate) fn pump(app: &mut VectorcraftApp, ctx: &egui::Context) {
|
||||
let Some(id) = app.object_dialogs.each.as_ref().map(|o| o.id) else { return };
|
||||
let Some(dialogs) = app.dialogs() else { return };
|
||||
let Some((previewing, fields, action)) =
|
||||
dialogs.with(|host| host.get_mut_by_id::<HostedParamDialog>(id).map(|d| (d.is_previewing(), d.fields().clone(), d.take_footer_action())))
|
||||
dialogs.with(|host| host.get_mut_by_id::<HostedParamDialog>(id).map(|d| (d.is_previewing(), d.fields().clone(), d.take_action())))
|
||||
else {
|
||||
return;
|
||||
};
|
||||
|
||||
@@ -25,7 +25,7 @@ use craft::ui::buttons::ToggleButton;
|
||||
use craft::ui::contract::{Bind, Outcome as _, Show as _};
|
||||
use craft::ui::menu::PanelRow;
|
||||
use craft::ui::primitives::IconSpec;
|
||||
use craft::ui::rails::{DrawerGroup, DropAt, ToolRailOutput, ToolSlot, ToolbarDrawer, ToolbarEdit};
|
||||
use craft::ui::rails::{DrawerGroup, DropAt, SlotId, ToolRailOutput, ToolSlot, ToolbarDrawer, ToolbarEdit};
|
||||
use craft::ui::runtime::commands::CommandRef;
|
||||
use egui::Ui;
|
||||
use serde_json::{Value, json};
|
||||
@@ -467,7 +467,15 @@ pub(crate) fn drawer(app: &mut VectorcraftApp, ui: &mut Ui, rail_out: &ToolRailO
|
||||
});
|
||||
});
|
||||
|
||||
// A tool dragged off the toolbar comes by its place there; the toolbar holds each tool once, so its id names it.
|
||||
let tool_at = |slot: SlotId, index: usize| toolbar.iter().find(|s| s.id == slot).and_then(|s| s.tools.get(index)).map(|t| t.id.clone());
|
||||
for edit in out.edits {
|
||||
let edit = match edit {
|
||||
ToolbarEdit::RemoveFrom { slot, index, .. } => tool_at(slot, index).map(ToolbarEdit::remove),
|
||||
ToolbarEdit::MoveFrom { slot, index, at, .. } => tool_at(slot, index).map(|tool| ToolbarEdit::move_to(tool, at)),
|
||||
edit => Some(edit),
|
||||
};
|
||||
let Some(edit) = edit else { continue };
|
||||
match edit {
|
||||
ToolbarEdit::Add { tool, at, .. } => {
|
||||
if let Some(p) = drop_params(app, &tool.id, at, target.as_deref()) {
|
||||
|
||||
@@ -21,7 +21,7 @@ use std::hash::Hash;
|
||||
use std::sync::{Arc, OnceLock};
|
||||
|
||||
use craft::behavior::overlay::{Align, Side};
|
||||
use craft::behavior::{ColumnKey, ColumnWidth, DisplayOrder, EditEvent, IconId, ItemSource, Selection};
|
||||
use craft::behavior::{ColumnKey, ColumnWidth, CopyKeys, DisplayOrder, EditEvent, IconId, ItemSource, Selection};
|
||||
use craft::theme::Srgba;
|
||||
use craft::ui::buttons::{Button, ButtonOutput, Link};
|
||||
use craft::ui::choice::{Swatch, SwatchOutput};
|
||||
@@ -541,7 +541,7 @@ fn show_list(
|
||||
.can_drag(|key: &RowKey| key.drags());
|
||||
if let Some(n) = cx.node.filter(|_| cx.mix.is_none()) {
|
||||
list = list
|
||||
.reorder(ReorderRule::new().copy_with_alt().into_groups())
|
||||
.reorder(ReorderRule::new().copy_with(CopyKeys::Alt).into_groups())
|
||||
.accepts(move |drag: &ListDrag<RowKey>, over: Option<&RowKey>, insert: usize| accepts(n, order, drag, over, insert, copy));
|
||||
}
|
||||
list.show_items(ui, rows, &mut |key, item| build_row(cx, *key, item))
|
||||
|
||||
@@ -1188,7 +1188,9 @@ pub(crate) fn controls(app: &mut VectorcraftApp, ui: &mut Ui, rows: CharacterRow
|
||||
let sets = font_menu::family_sets(Some(&document[..]), &recent[..]);
|
||||
let sample = font_menu::sample_text(app);
|
||||
let unit = type_unit(app);
|
||||
let mut source = FontPickerSource::new(catalog, Bind::bound(&mut settings), Bind::bound(&mut app.ui.font_filters))
|
||||
let mut source = FontPickerSource::new(catalog)
|
||||
.settings(Bind::bound(&mut settings))
|
||||
.filters(Bind::bound(&mut app.ui.font_filters))
|
||||
.sets(&sets)
|
||||
.scripts(&FontScript::ALL)
|
||||
.filter_layout(FilterLayout::Chips);
|
||||
|
||||
@@ -960,7 +960,7 @@ fn characters_opens_the_character_panel() {
|
||||
let t = run(&mut app, "text.create", json!({"x": 0, "y": 60, "text": "Hi"}))["id"].clone();
|
||||
run(&mut app, "select.set", json!({"ids": [t]}));
|
||||
let mut panel = Panel::new(app, appearance::show);
|
||||
panel.click("Characters");
|
||||
panel.click_role("Characters", Role::LINK);
|
||||
assert_eq!(panel.app().ui.transient_panel.as_deref(), Some("character"));
|
||||
}
|
||||
|
||||
|
||||
@@ -302,7 +302,7 @@ impl Live<'_> {
|
||||
step: f64,
|
||||
unit: Option<UnitKind>,
|
||||
to_value: fn(f64) -> Value,
|
||||
) {
|
||||
) -> bool {
|
||||
let label = spec(key).map_or("", |s| tl!(s.label));
|
||||
let old = self.num_of(key).unwrap_or(*range.start());
|
||||
let mut value = old;
|
||||
@@ -311,9 +311,11 @@ impl Live<'_> {
|
||||
field = field.unit_kind(unit);
|
||||
}
|
||||
field.show(ui);
|
||||
if value != old {
|
||||
let changed = value != old;
|
||||
if changed {
|
||||
let _ = self.w.put(key, &to_value(value));
|
||||
}
|
||||
changed
|
||||
}
|
||||
}
|
||||
|
||||
@@ -337,13 +339,14 @@ impl PreferencesModel for Live<'_> {
|
||||
let _ = self.w.put(key, &value);
|
||||
}
|
||||
|
||||
fn custom_row(&mut self, ui: &mut egui::Ui, key: &str) {
|
||||
fn custom_row(&mut self, ui: &mut egui::Ui, key: &str) -> bool {
|
||||
match key {
|
||||
"uiScaling" => self.slider(ui, key, 0.75..=2.0, 0.05, Some(UnitKind::Times), |v| json!(v)),
|
||||
"anchorSize" => self.slider(ui, key, 1.0..=7.0, 1.0, None, |v| json!(v.round() as i64)),
|
||||
"editOriginal" => {
|
||||
let enabled = self.enabled(key);
|
||||
crate::original_editor::show(self.app, ui, enabled);
|
||||
false
|
||||
}
|
||||
"prefsFile" => {
|
||||
let (mut export, mut import, mut reset) = (false, false, false);
|
||||
@@ -364,17 +367,21 @@ impl PreferencesModel for Live<'_> {
|
||||
if reset {
|
||||
super::ask(self.w);
|
||||
}
|
||||
false
|
||||
}
|
||||
_ => {
|
||||
// The folder rows: typed, or picked with Browse….
|
||||
let Some(sp) = spec(key) else { return };
|
||||
PathSetting::new(tl!(sp.label), key, &mut self.w.draft, PickRequest::folder(key)).show(ui);
|
||||
let Some(sp) = spec(key) else { return false };
|
||||
let changed = PathSetting::new(tl!(sp.label), key, &mut self.w.draft, PickRequest::folder(key)).show(ui).changed;
|
||||
self.w.sync_strings();
|
||||
changed
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn custom_page(&mut self, _ui: &mut egui::Ui, _page: &str) {}
|
||||
fn custom_page(&mut self, _ui: &mut egui::Ui, _page: &str) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
fn reset_page(&mut self, page: &str) {
|
||||
let keys: Vec<&str> = PREF_SPECS.iter().filter(|s| s.category == page).map(|s| s.key).collect();
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
|
||||
use craft::ui::dialog::{DialogResult, RecoveredDocument, RecoveryAnswer, RecoveryDialog, StartupStage};
|
||||
use craft::ui::dialog::{DialogResult, RecoveredDocument, RecoveryAnswer, RecoveryChoice, RecoveryDialog, StartupStage};
|
||||
use serde_json::{Value, json};
|
||||
use vectorcraft_engine::cmd::recovery::{self, RecoveryStore};
|
||||
|
||||
@@ -224,14 +224,14 @@ fn named(app: &mut VectorcraftApp, folder: &str) {
|
||||
/// Answers for the copy the open dialog asks about (`Timer::offered[0]`): Recover restores it, Discard deletes
|
||||
/// it, and Escape or the close action keeps it and every later copy for the next launch. The next copy is asked
|
||||
/// about after each answer, and [`finish`] reports once none is left.
|
||||
fn answered(app: &mut VectorcraftApp, answer: DialogResult<RecoveryAnswer>) {
|
||||
fn answered(app: &mut VectorcraftApp, answer: DialogResult<RecoveryChoice>) {
|
||||
if app.recovery.offered.is_empty() {
|
||||
return;
|
||||
}
|
||||
let copy = app.recovery.offered.remove(0);
|
||||
let discard = match answer {
|
||||
DialogResult::Ok(RecoveryAnswer::Recover) => false,
|
||||
DialogResult::Ok(RecoveryAnswer::Discard) => true,
|
||||
DialogResult::Ok(RecoveryChoice { answer: RecoveryAnswer::Recover, .. }) => false,
|
||||
DialogResult::Ok(RecoveryChoice { answer: RecoveryAnswer::Discard, .. }) => true,
|
||||
_ => {
|
||||
app.recovery.offered.clear();
|
||||
return finish(app);
|
||||
|
||||
@@ -159,23 +159,28 @@ fn off() -> Vec<egui::Event> {
|
||||
}
|
||||
|
||||
/// One headless frame of the whole window (800×600) with `events` and `dropped` files. A drop is
|
||||
/// two passes: the files hover with the pointer where `events` put it, then they drop.
|
||||
/// three passes: the files hover with the pointer where `events` put it, they drop, and the
|
||||
/// target under the pointer takes them in the pass the drop asks for.
|
||||
fn frame(app: &mut VectorcraftApp, ctx: &egui::Context, events: Vec<egui::Event>, dropped: &[&str], shift: bool) {
|
||||
let files = dropped.iter().map(|p| Arc::new(Dropped(p.into())) as egui::DroppedFileHandle).collect();
|
||||
frame_files(app, ctx, events, files, shift);
|
||||
}
|
||||
|
||||
fn frame_files(app: &mut VectorcraftApp, ctx: &egui::Context, mut events: Vec<egui::Event>, dropped: Vec<egui::DroppedFileHandle>, shift: bool) {
|
||||
events.push(egui::Event::ModifiersChanged(egui::Modifiers { shift, ..Default::default() }));
|
||||
if !dropped.is_empty() {
|
||||
let pointer = events.iter().filter(|e| matches!(e, egui::Event::PointerMoved(_) | egui::Event::PointerGone)).cloned().collect();
|
||||
let hovered = dropped
|
||||
.iter()
|
||||
.map(|f| egui::HoveredFile { path: Some(f.path().to_path_buf()).filter(|p| !p.as_os_str().is_empty()), ..Default::default() })
|
||||
.collect();
|
||||
pass(app, ctx, raw_input(pointer, hovered, vec![]));
|
||||
let mods = egui::Event::ModifiersChanged(egui::Modifiers { shift, ..Default::default() });
|
||||
events.push(mods.clone());
|
||||
if dropped.is_empty() {
|
||||
pass(app, ctx, raw_input(events, vec![], dropped));
|
||||
return;
|
||||
}
|
||||
let pointer = events.iter().filter(|e| matches!(e, egui::Event::PointerMoved(_) | egui::Event::PointerGone)).cloned().collect();
|
||||
let hovered = dropped
|
||||
.iter()
|
||||
.map(|f| egui::HoveredFile { path: Some(f.path().to_path_buf()).filter(|p| !p.as_os_str().is_empty()), ..Default::default() })
|
||||
.collect();
|
||||
pass(app, ctx, raw_input(pointer, hovered, vec![]));
|
||||
pass(app, ctx, raw_input(events, vec![], dropped));
|
||||
pass(app, ctx, raw_input(vec![mods], vec![], vec![]));
|
||||
}
|
||||
|
||||
fn raw_input(events: Vec<egui::Event>, hovered_files: Vec<egui::HoveredFile>, dropped_files: Vec<egui::DroppedFileHandle>) -> egui::RawInput {
|
||||
|
||||
@@ -5,7 +5,7 @@ use std::process::Command;
|
||||
|
||||
use serde_json::Value;
|
||||
|
||||
const REV: &str = "bf62d509fb26e92ab5c45a9fd613d8aab9ffafd0";
|
||||
const REV: &str = "945e849cbaff313f046121f335019fcde1d48e0c";
|
||||
const PACKAGES: &[(&str, &str, &str)] = &[
|
||||
("craft-pdf", "0.1.0", REV),
|
||||
("krilla", "0.8.2", REV),
|
||||
|
||||
Reference in New Issue
Block a user