Look like production: highlights, chips, task bar, headings, panel menus (#9217)

More of the port looks like production's VectorCraft. VectorCraft moves to craft-libs `next` at a4b6d3b6c (the pdf-deps check with it) and switches on the framework's new opt-in looks.

- **Highlights:** every icon button that is on shows production's highlight, the pressed fill (`#633f3e` in Medium Dark, production's `tool_active`) with no accent edge (`ActiveLook::Pressed` at the root, and on the tool rail). This covers the current tool, Snap, Guides and the panel toggles.
- **Paint chips:** Fill and Stroke chips show the dropdown arrow. The task bar's chips are compact, and the tool rail's colour chips are swatches.
- **Contextual Task Bar:** one rounded grip bar, members an item gap apart, and the bar hangs clear of the selection handles.
- **Properties:** the object-kind title is quiet (muted caption). "Ellipse Properties:" and the Align and Pathfinder sub-headings are production's sub-headings (normal ink, no rule). The Align panel draws production's divider above its options.
- **Labels:** glyph captions take a form's colon (X:, Y:, W:, H:); "#" and the colour channel letters stay bare.
- **Dock:** every panel group shows the panel menu button with the ≡ icon.
- **Status bar:** the help icon is production's 16 px.

Checks: `vectorcraft-ui-egui` lib tests 3779 passed, 0 failed. Clippy (`vectorcraft-ui-egui`, `vectorcraft`, `xtask`, all targets, `-D warnings`) and `cargo fmt --check` are clean. The active tool's fill was sampled from an offscreen render of the whole window: `#633f3e`, production's.
This commit is contained in:
BFlat authored and GitHub committed 2026-11-24 17:02:00 +07:00
1 parent d48c4207f7
commit e9ddb9dad7
14 files changed
+173 -148

No files matched your search

Generated
+80 -80
View File
@@ -1134,7 +1134,7 @@ dependencies = [
[[package]]
name = "craft"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
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=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
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=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
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=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"rustix 1.1.6",
]
@@ -1204,7 +1204,7 @@ dependencies = [
[[package]]
name = "craft-automation"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"base64 0.23.1",
"craft-behavior",
@@ -1229,7 +1229,7 @@ dependencies = [
[[package]]
name = "craft-behavior"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"accesskit",
"bitflags 2.13.2",
@@ -1247,7 +1247,7 @@ dependencies = [
[[package]]
name = "craft-browse"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-behavior",
"craft-docpath",
@@ -1265,7 +1265,7 @@ dependencies = [
[[package]]
name = "craft-cdr"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"crc32fast",
"flate2",
@@ -1274,7 +1274,7 @@ dependencies = [
[[package]]
name = "craft-cloud-ui"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"egui",
]
@@ -1282,7 +1282,7 @@ dependencies = [
[[package]]
name = "craft-cms"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"md-5",
"rayon",
@@ -1291,12 +1291,12 @@ dependencies = [
[[package]]
name = "craft-codepage"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
[[package]]
name = "craft-color-ui"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-behavior",
"craft-cms",
@@ -1316,7 +1316,7 @@ dependencies = [
[[package]]
name = "craft-control"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"getrandom 0.3.4",
"serde",
@@ -1326,7 +1326,7 @@ dependencies = [
[[package]]
name = "craft-dds"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"rayon",
]
@@ -1334,7 +1334,7 @@ dependencies = [
[[package]]
name = "craft-dialogs"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"block2 0.6.2",
"craft-atomic",
@@ -1359,7 +1359,7 @@ dependencies = [
[[package]]
name = "craft-docpath"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"serde",
]
@@ -1367,7 +1367,7 @@ dependencies = [
[[package]]
name = "craft-draw"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-behavior",
"craft-color-ui",
@@ -1386,7 +1386,7 @@ dependencies = [
[[package]]
name = "craft-dxf"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-codepage",
"encoding_rs",
@@ -1398,12 +1398,12 @@ dependencies = [
[[package]]
name = "craft-eps"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
[[package]]
name = "craft-font-catalog"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"fontique",
"harfrust 0.13.3",
@@ -1418,7 +1418,7 @@ dependencies = [
[[package]]
name = "craft-font-manager"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-behavior",
"craft-font-catalog",
@@ -1437,7 +1437,7 @@ dependencies = [
[[package]]
name = "craft-font-store"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"cap-primitives",
"craft-atomic",
@@ -1458,12 +1458,12 @@ dependencies = [
[[package]]
name = "craft-fonts-build"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
[[package]]
name = "craft-gif"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"gif",
]
@@ -1471,7 +1471,7 @@ dependencies = [
[[package]]
name = "craft-gzip"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"flate2",
]
@@ -1479,7 +1479,7 @@ dependencies = [
[[package]]
name = "craft-host"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"bitflags 2.13.2",
"craft-i18n",
@@ -1492,7 +1492,7 @@ dependencies = [
[[package]]
name = "craft-i18n"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"chrono",
"fixed_decimal",
@@ -1520,7 +1520,7 @@ dependencies = [
[[package]]
name = "craft-image-codecs"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-dds",
"craft-jpeg",
@@ -1547,7 +1547,7 @@ dependencies = [
[[package]]
name = "craft-imaging"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-behavior",
"craft-color-ui",
@@ -1565,7 +1565,7 @@ dependencies = [
[[package]]
name = "craft-jpeg"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"thiserror 2.0.21",
]
@@ -1573,7 +1573,7 @@ dependencies = [
[[package]]
name = "craft-jxl"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"brotli-decompressor 5.0.3",
"jixel",
@@ -1584,7 +1584,7 @@ dependencies = [
[[package]]
name = "craft-keymap"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-host",
"craft-i18n",
@@ -1599,7 +1599,7 @@ dependencies = [
[[package]]
name = "craft-layers"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-behavior",
"craft-i18n",
@@ -1613,7 +1613,7 @@ dependencies = [
[[package]]
name = "craft-menu"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-behavior",
"craft-host",
@@ -1631,7 +1631,7 @@ dependencies = [
[[package]]
name = "craft-metadata"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"brotli-decompressor 6.3.2",
"chrono",
@@ -1643,7 +1643,7 @@ dependencies = [
[[package]]
name = "craft-metafile"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"encoding_rs",
"image",
@@ -1654,7 +1654,7 @@ dependencies = [
[[package]]
name = "craft-mime"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"chrono",
"craft-codepage",
@@ -1664,7 +1664,7 @@ dependencies = [
[[package]]
name = "craft-pages"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-behavior",
"craft-keymap",
@@ -1680,7 +1680,7 @@ dependencies = [
[[package]]
name = "craft-pdf"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"hayro-interpret",
"hayro-syntax",
@@ -1692,7 +1692,7 @@ dependencies = [
[[package]]
name = "craft-platform"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"async-channel",
"async-io",
@@ -1723,7 +1723,7 @@ dependencies = [
[[package]]
name = "craft-plotter"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"kurbo 0.13.1",
"thiserror 2.0.21",
@@ -1732,7 +1732,7 @@ dependencies = [
[[package]]
name = "craft-print"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-behavior",
"craft-host",
@@ -1756,7 +1756,7 @@ dependencies = [
[[package]]
name = "craft-proof"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"log",
"miniz_oxide 0.9.1",
@@ -1767,7 +1767,7 @@ dependencies = [
[[package]]
name = "craft-ps"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-eps",
"flate2",
@@ -1781,7 +1781,7 @@ dependencies = [
[[package]]
name = "craft-psd"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"encoding_rs",
"flate2",
@@ -1792,7 +1792,7 @@ dependencies = [
[[package]]
name = "craft-quit"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"dispatch2",
"egui",
@@ -1805,7 +1805,7 @@ dependencies = [
[[package]]
name = "craft-review"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"base64 0.23.1",
"craft-behavior",
@@ -1824,7 +1824,7 @@ dependencies = [
[[package]]
name = "craft-settings"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-atomic",
"craft-host",
@@ -1841,7 +1841,7 @@ dependencies = [
[[package]]
name = "craft-stream-codecs"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"fax",
"hayro-ccitt",
@@ -1852,7 +1852,7 @@ dependencies = [
[[package]]
name = "craft-svg"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-image-codecs",
"craft-xml",
@@ -1873,7 +1873,7 @@ dependencies = [
[[package]]
name = "craft-table"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-behavior",
"craft-keymap",
@@ -1885,7 +1885,7 @@ dependencies = [
[[package]]
name = "craft-text"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-behavior",
"craft-font-manager",
@@ -1910,7 +1910,7 @@ dependencies = [
[[package]]
name = "craft-theme"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"bitflags 2.13.2",
"craft-tracked",
@@ -1925,7 +1925,7 @@ dependencies = [
[[package]]
name = "craft-theme-store"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-atomic",
"craft-behavior",
@@ -1940,7 +1940,7 @@ dependencies = [
[[package]]
name = "craft-tiff"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"serde",
"thiserror 2.0.21",
@@ -1950,7 +1950,7 @@ dependencies = [
[[package]]
name = "craft-time"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"serde",
"thiserror 2.0.21",
@@ -1959,7 +1959,7 @@ dependencies = [
[[package]]
name = "craft-timeline"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-behavior",
"craft-keymap",
@@ -1974,12 +1974,12 @@ dependencies = [
[[package]]
name = "craft-tracked"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
[[package]]
name = "craft-ui"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-cloud-ui",
"craft-ui-canvas",
@@ -1993,7 +1993,7 @@ dependencies = [
[[package]]
name = "craft-ui-canvas"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-behavior",
"craft-i18n",
@@ -2009,7 +2009,7 @@ dependencies = [
[[package]]
name = "craft-ui-contract"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"accesskit",
"craft-behavior",
@@ -2047,7 +2047,7 @@ dependencies = [
[[package]]
name = "craft-ui-macros"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"proc-macro-crate",
"proc-macro2",
@@ -2058,7 +2058,7 @@ dependencies = [
[[package]]
name = "craft-ui-panels"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2076,7 +2076,7 @@ dependencies = [
[[package]]
name = "craft-ui-patterns"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2097,7 +2097,7 @@ dependencies = [
[[package]]
name = "craft-ui-shell"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2118,7 +2118,7 @@ dependencies = [
[[package]]
name = "craft-ui-widgets"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2137,7 +2137,7 @@ dependencies = [
[[package]]
name = "craft-update"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"chrono",
"craft-host",
@@ -2166,7 +2166,7 @@ dependencies = [
[[package]]
name = "craft-vectorcraft-format"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"flate2",
"serde",
@@ -2177,7 +2177,7 @@ dependencies = [
[[package]]
name = "craft-wayland"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"raw-window-handle",
"wayland-backend",
@@ -2187,7 +2187,7 @@ dependencies = [
[[package]]
name = "craft-web-api"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"js-sys",
"serde_json",
@@ -2198,7 +2198,7 @@ dependencies = [
[[package]]
name = "craft-win32"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"winsafe",
]
@@ -2206,7 +2206,7 @@ dependencies = [
[[package]]
name = "craft-window"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"craft-appkit",
"craft-atomic",
@@ -2238,7 +2238,7 @@ dependencies = [
[[package]]
name = "craft-xml"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"quick-xml 0.41.0",
"serde",
@@ -3506,7 +3506,7 @@ checksum = "9f4d0e94ddd48749f06bbe4e5389fb9799a0c45bcaf00495042076ef05e3241a"
[[package]]
name = "hayro-cmap"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"brotli",
"hayro-postscript",
@@ -3515,7 +3515,7 @@ dependencies = [
[[package]]
name = "hayro-interpret"
version = "0.7.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"bitflags 2.13.2",
"hayro-cmap",
@@ -3533,7 +3533,7 @@ dependencies = [
[[package]]
name = "hayro-jbig2"
version = "0.3.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"fearless_simd",
"hayro-ccitt",
@@ -3551,12 +3551,12 @@ dependencies = [
[[package]]
name = "hayro-postscript"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
[[package]]
name = "hayro-syntax"
version = "0.7.2"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"flate2",
"hayro-ccitt",
@@ -4487,7 +4487,7 @@ dependencies = [
[[package]]
name = "krilla"
version = "0.8.2"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"base64 0.22.1",
"bumpalo",
@@ -4644,7 +4644,7 @@ checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4"
[[package]]
name = "linesweeper"
version = "0.5.0"
source = "git+https://github.com/storytold/craft-libs?rev=3238a3eca8af59ba13ee04a39f3527979e1dc33d#3238a3eca8af59ba13ee04a39f3527979e1dc33d"
source = "git+https://github.com/storytold/craft-libs?rev=a4b6d3b6ca04a65d5972339b808d1049a14c7167#a4b6d3b6ca04a65d5972339b808d1049a14c7167"
dependencies = [
"arrayvec",
"kurbo 0.13.1",
+34 -34
View File
@@ -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 = "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" }
craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167", default-features = false, features = ["interpret", "write"] }
craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
# 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 = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
craft-vectorcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
# Native Affinity documents (craft-libs#914).
craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
# Bounded CDR (v1-v27) and CMX (32-bit) reader (craft-libs#778).
craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
# SVG parsing, limits, SVGZ and writer (craft-libs#778).
craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d", features = ["tree"] }
craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167", features = ["tree"] }
craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
# EPS container, previews, ASCII85 and DSC comments (craft-libs#778).
craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
# DXF tags, reader and writer (craft-libs#778, #926, #927).
craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
# WMF, EMF and EMF+ reader (craft-libs#778).
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" }
craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167", default-features = false, features = ["read", "write"] }
craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
# 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 = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
craft = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
# 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 = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "3238a3eca8af59ba13ee04a39f3527979e1dc33d" }
craft-color-ui = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
# 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 = "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" }
hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
krilla = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167" }
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" }
+1 -1
View File
@@ -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 = "3238a3eca8af59ba13ee04a39f3527979e1dc33d", version = "0.1.0" }
craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "a4b6d3b6ca04a65d5972339b808d1049a14c7167", version = "0.1.0" }
wasm-bindgen = "0.2"
serde_json = { workspace = true }
+8 -2
View File
@@ -3,8 +3,8 @@ use craft::host::{AppInfo, Host, Wake};
use craft::platform::clipboard::{Clipboard, ClipboardProbe, EventClipboard};
use craft::platform::clock::monotonic_ms;
use craft::theme::variant::Tone;
use craft::ui::buttons::PushButtonLook;
use craft::ui::contract::Bind;
use craft::ui::buttons::{ActiveLook, PushButtonLook};
use craft::ui::contract::{Bind, GlyphColon};
use craft::ui::runtime::env::{RootEnv, Scale, ScrubDrags, WindowKey};
use craft::ui::runtime::frame::{FrameInput, FrameOutput};
use craft::ui::runtime::toast::{self, Toast};
@@ -670,6 +670,12 @@ pub(crate) fn root_env(prefs: &vectorcraft_engine::Prefs, native_ppp: f32) -> Ro
root.values.set(NumberLook::Inline);
// Push buttons that ask for no look are filled tiles with no edge at rest, as production's were.
root.values.set(PushButtonLook::Filled);
// Every icon button that is on (the current tool, Snap, Guides, a panel toggle) shows production's highlight: the
// pressed fill (`tool_active`) with no accent edge.
root.values.set(ActiveLook::Pressed);
// A glyph that stands for a word caption ("X", "W") takes a form's colon as production drew it ("X:"); "#" and
// the colour channel letters stay bare.
root.values.set(GlyphColon::Form);
// 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.
+11 -9
View File
@@ -1,11 +1,11 @@
use craft::behavior::CanvasView;
use craft::behavior::{IconId, Mixed};
use craft::color_ui::ui::PaintChip;
use craft::color_ui::ui::{PaintChip, PaintChipSize};
use craft::theme::{Srgba, Variant};
use craft::ui::buttons::{Button, IconButton};
use craft::ui::canvas::CanvasSpace;
use craft::ui::canvas_controls::TaskBar;
use craft::ui::contract::{Bind, Props as _, Show as _, ShowContainer as _, Trigger};
use craft::ui::canvas_controls::{TaskBar, TaskBarGrip, TaskBarHang};
use craft::ui::contract::{Bind, Gap, Props as _, Show as _, ShowContainer as _, Trigger};
use craft::ui::menu::PanelRow;
use craft::ui::popover::Popover;
use craft::ui::primitives::IconSpec;
@@ -455,10 +455,12 @@ pub(super) fn task_bar(app: &mut VectorcraftApp, ui: &mut Ui, space: &CanvasSpac
let has_shape = offer.shape.is_some();
let mut run: Option<(&'static str, serde_json::Value)> = None;
let mut show_swatches = false;
let shown = TaskBar::new(tl!("Contextual Task Bar"), &offer.anchor, Bind::bound(&mut local)).more_rows(more_rows(&offer)).show(
ui,
space.view.rect,
|ui, _| {
let shown = TaskBar::new(tl!("Contextual Task Bar"), &offer.anchor, Bind::bound(&mut local))
.grip(TaskBarGrip::Bar)
.member_gap(Gap::Item)
.hang_gap(TaskBarHang::ClearOfHandles)
.more_rows(more_rows(&offer))
.show(ui, space.view.rect, |ui, _| {
for (label, icon, cmd, params) in &offer.actions {
if *cmd == TASK_BAR_FIDELITY {
// The Smooth tool's Fidelity, labeled, sets the tool's option as it is typed or stepped.
@@ -488,6 +490,7 @@ pub(super) fn task_bar(app: &mut VectorcraftApp, ui: &mut Ui, space: &CanvasSpac
let chip = PaintChip::new(chip.label(has_shape), Bind::given(value), Srgba::BLACK)
.popover(false)
.ring(stroke)
.chip_size(PaintChipSize::Compact)
.selected(app.session.fill_active != stroke)
.show(ui);
if chip.clicked.is_some() {
@@ -523,8 +526,7 @@ pub(super) fn task_bar(app: &mut VectorcraftApp, ui: &mut Ui, space: &CanvasSpac
}
}
}
},
);
});
let (rect, hide) = (shown.output.rect, shown.output.hide);
if local != before {
app.ui.task_bar_place.set(key, local);
+3 -2
View File
@@ -1,8 +1,9 @@
use super::status_bar::ANIMATED_ZOOM_HINT;
use super::{Cow, Ui, VectorcraftApp, menus};
use craft::behavior::IconId;
use craft::theme::ControlSize;
use craft::ui::bars::{Bar, BarKind};
use craft::ui::contract::{Show as _, ShowContainer as _};
use craft::ui::contract::{Props as _, Show as _, ShowContainer as _};
use craft::ui::display::{Elide, Icon, Text};
use craft::ui::primitives::IconSpec;
use craft::ui::style::Span;
@@ -259,7 +260,7 @@ pub fn hint_bar(app: &mut VectorcraftApp, ui: &mut Ui) {
}
};
Bar::new(tl!("Help Bar"), BarKind::Status).show(ui, |ui, _| {
Icon::new(IconSpec::svg(IconId::new("dc-help"))).show(ui);
Icon::new(IconSpec::svg(IconId::new("dc-help"))).size(ControlSize::Md).show(ui);
let spans = segments
.iter()
.map(|(text, bold)| {
+9 -3
View File
@@ -1311,9 +1311,15 @@ pub(crate) fn show(app: &mut VectorcraftApp, ui: &mut egui::Ui, keeps_tools: boo
let hand_over = app.dock_rt.hand_over.take();
let output = {
let mut panels = Panels { app: &mut *app };
let mut area = DockArea::new("Dock", Bind::bound(&mut workspace), &specs, &mut panels, DockConfig::default())
.hide(hide)
.flyout(Bind::bound(&mut flyout));
let mut area = DockArea::new(
"Dock",
Bind::bound(&mut workspace),
&specs,
&mut panels,
DockConfig::default().panel_menu_always(true).panel_menu_icon(IconId::new("menu")),
)
.hide(hide)
.flyout(Bind::bound(&mut flyout));
if let Some((panel, grab)) = hand_over {
area = area.continue_move((panel, grab));
}
+8 -2
View File
@@ -62,7 +62,7 @@ use craft::color_ui::ui::{PaintChip, PairWell, SwatchPair, SwatchPairOutput, Swa
use craft::keymap::CommandRef;
use craft::theme::Srgba;
use craft::theme::variant::Tone;
use craft::ui::buttons::IconButton;
use craft::ui::buttons::{IconButton, PopupMark};
use craft::ui::choice::SwatchSpacing;
use craft::ui::contract::{Bind, CommandSet as _, Entry, ListDrag, PopupKind, Props as _, Show as _, ShowContainer as _, Sizing, Trigger};
use craft::ui::display::{Divider, Shade, Text};
@@ -696,7 +696,7 @@ pub(crate) fn paint_chip(app: &mut VectorcraftApp, ui: &mut Ui, stroke: bool) {
};
let shown = if mixed { Mixed::Mixed } else { Mixed::Same(well_paint(&paint, &|_| None)) };
let fallback = srgba(&paint.color().unwrap_or(Color::BLACK));
let out = PaintChip::new(label, Bind::given(shown), fallback).popover(false).ring(stroke).tooltip(tip).show(ui);
let out = PaintChip::new(label, Bind::given(shown), fallback).popover(false).ring(stroke).popup_mark(PopupMark::Menu).tooltip(tip).show(ui);
let chip = out.edit.response.id;
if let Some(mods) = out.clicked {
app.run("paint.toggleActive", json!({ "fill": !stroke })).ok();
@@ -901,6 +901,12 @@ pub(crate) fn section<'a>(title: impl Into<Label>) -> Section<'a> {
Section::fixed(title).strength(HeaderStrength::Normal)
}
/// A sub-heading over a group of a panel's controls ("Align Objects:", "Shape Modes:"): label text in the normal ink,
/// with no rule, as the reference app drew them.
pub(crate) fn subheading<'a>(title: impl Into<Label>) -> Section<'a> {
Section::fixed(title).strength(HeaderStrength::Subheading)
}
/// The empty state of a panel with nothing to show: `icon` over the title and the message,
/// centred in the panel.
pub(crate) fn empty_state(ui: &mut Ui, icon: &'static str, title: &str, body: &str) {
+6 -4
View File
@@ -8,6 +8,7 @@ use craft::keymap::CommandRef;
use craft::ui::bars::{BarItem, BarItems};
use craft::ui::buttons::{IconButton, PopupMark, ToggleButton};
use craft::ui::contract::{Bind, PopupKind, Props as _, Show as _, ShowContainer as _, Trigger};
use craft::ui::display::Divider;
use craft::ui::menu::{Menu, MenuItem, PanelRow};
use craft::ui::runtime::commands::{CommandState, CommandStates};
use craft::ui::text::NumberField;
@@ -496,14 +497,14 @@ pub(crate) fn run_align_to(app: &mut VectorcraftApp, v: AlignTo) -> Result<Value
/// Spacing with its value and Align To. The buttons are commands, so their state and clicks come
/// from the command layer ([`button_enabled`], [`run_button`]).
pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
crate::panels::section(tl!("Align Objects:")).show(ui, |ui, _| {
crate::panels::subheading(tl!("Align Objects:")).show(ui, |ui, _| {
ui.horizontal(|ui| {
for (icon, b) in align_icons() {
command_button(ui, icon, b);
}
});
});
crate::panels::section(tl!("Distribute Objects:")).show(ui, |ui, _| {
crate::panels::subheading(tl!("Distribute Objects:")).show(ui, |ui, _| {
ui.horizontal(|ui| {
for (icon, b) in distribute_icons() {
command_button(ui, icon, b);
@@ -513,6 +514,7 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
if part_hidden(app, HIDE_OPTIONS) {
return;
}
Divider::horizontal().show(ui);
// The Distribute Spacing value is sent while there is a key object or a key guide (#2143), or
// for artboards while Align to Artboard is chosen.
let spacing = app.ui.align_spacing;
@@ -521,7 +523,7 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
let lengths = crate::canvas::general_lengths(app);
let min_spacing = spacing_min(app);
let mut edited = None;
crate::panels::section(tl!("Distribute Spacing:")).show(ui, |ui, _| {
crate::panels::subheading(tl!("Distribute Spacing:")).show(ui, |ui, _| {
ui.horizontal(|ui| {
command_button(ui, "dc-dist-vspace", Button::Spacing("vertical"));
command_button(ui, "dc-dist-hspace", Button::Spacing("horizontal"));
@@ -536,7 +538,7 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
if let Some(v) = edited {
app.ui.align_spacing = v;
}
crate::panels::section(tl!("Align To:")).show(ui, |ui, _| {
crate::panels::subheading(tl!("Align To:")).show(ui, |ui, _| {
// With one object selected the buttons align it to the artboard, and Align To shows Artboard.
let anchor = key_is_anchor(app);
ui.horizontal(|ui| {
+2 -2
View File
@@ -132,7 +132,7 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
let mixed = !modes.is_empty() && shared.is_none();
// Selected members can always take a mode.
let count = if modes.is_empty() { n } else { n.max(2) };
crate::panels::section(tl!("Shape Modes:")).show(ui, |ui, _| {
crate::panels::subheading(tl!("Shape Modes:")).show(ui, |ui, _| {
Row::new().gap(Gap::Item).show(ui, |ui, _| {
for ((icon, label, op), mode) in SHAPE_MODES.into_iter().zip(ShapeMode::ALL) {
let glyph = ShapeModeGlyph { icon: IconId::new(icon), mixed };
@@ -153,7 +153,7 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
.show(ui);
});
});
crate::panels::section(tl!("Pathfinders:")).show(ui, |ui, _| {
crate::panels::subheading(tl!("Pathfinders:")).show(ui, |ui, _| {
Row::new().gap(Gap::Item).show(ui, |ui, _| {
for (icon, label, op) in PATHFINDERS {
IconButton::command(IconSpec::svg(IconId::new(icon)), CommandRef::new(format!("object.pathfinder.{op}")))
+2 -1
View File
@@ -7,6 +7,7 @@ use craft::ui::layout_components::{Grid, Row, Stack};
use craft::ui::patterns::panels::Inspector;
use craft::ui::runtime::commands::CommandRef;
use craft::ui::sections::HeaderStrength;
use egui::Ui;
use serde_json::json;
use vectorcraft_doc::{LiveShape, Node, NodeKind};
@@ -37,7 +38,7 @@ pub(crate) struct QuickAction {
/// The panel for what is selected: the selection's kind as its heading, then its sections (Edit
/// Artboards' with the Artboard tool, the document's with nothing selected).
pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
let inspector = Inspector::new(tl!("Properties")).empty(tl!("No document open"));
let inspector = Inspector::new(tl!("Properties")).title_strength(HeaderStrength::Quiet).empty(tl!("No document open"));
let Some(key) = target_key(app) else {
inspector.show(ui, |_, _| {});
return;
+2 -3
View File
@@ -7,7 +7,6 @@ use craft::ui::contract::{Bind, Bracket, Props as _, Show as _, ShowContainer as
use craft::ui::form::Field;
use craft::ui::layout_components::{Row, Stack};
use craft::ui::pickers::Select;
use craft::ui::sections::{HeaderStrength, Section};
use craft::ui::text::{NumberField, link_toggle};
use egui::Ui;
use serde_json::{Value, json};
@@ -51,11 +50,11 @@ pub(crate) fn live_shape_rows(app: &mut VectorcraftApp, ui: &mut Ui, n: &Node, l
true
}
/// `rows` under a caption heading, or bare when there is none.
/// `rows` under a sub-heading, or bare when there is none.
fn under_heading(ui: &mut Ui, heading: Option<&'static str>, mut rows: impl FnMut(&mut Ui)) {
match heading {
Some(title) => {
Section::fixed(title).strength(HeaderStrength::Caption).show(ui, |ui, _| rows(ui));
crate::panels::subheading(title).show(ui, |ui, _| rows(ui));
}
None => rows(ui),
}
+6 -4
View File
@@ -12,10 +12,10 @@ use craft::behavior::dock::{Action, DockEdge};
use craft::behavior::geometry::BoxState;
use craft::behavior::overlay::Side;
use craft::behavior::{EditEvent, IconId, Mixed};
use craft::color_ui::ui::PaintChip;
use craft::color_ui::ui::{PaintChip, PaintChipSize};
use craft::draw::ui::transform::{SizeUnit, TransformField, TransformFields, TransformGroups, TransformRow, TransformSource};
use craft::theme::ControlSize;
use craft::ui::buttons::{Button, IconButton};
use craft::ui::buttons::{ActiveLook, Button, IconButton};
use craft::ui::choice::Checkbox;
use craft::ui::contract::{Bind, BodyCx, Entry, Gap, Props as _, Show as _, ShowContainer as _, Tracked};
use craft::ui::display::Divider;
@@ -387,7 +387,8 @@ fn show_rail(app: &mut VectorcraftApp, ui: &mut Ui, owner: Owner, at: GroupAt, m
let located = locate::wanted(&app.ui, &home);
let holds = |tool: &str| model.slots.iter().any(|slot| slot.tools.iter().any(|t| t.id == tool));
let reveal = matches!(at, GroupAt::Show(_)).then(|| locate::take_reveal(&mut app.ui, &home, holds)).flatten();
let mut rail = ToolRail::new(tl!("Tools"), &model.slots, &current, &model.last_used).opens(opens).tips(&cards);
// The current tool in production's pressed fill, with no accent edge.
let mut rail = ToolRail::new(tl!("Tools"), &model.slots, &current, &model.last_used).opens(opens).tips(&cards).active_look(ActiveLook::Pressed);
if let Some(tool) = &located {
rail = rail.mark(tool);
}
@@ -708,7 +709,8 @@ fn bottom_controls(app: &mut VectorcraftApp, ui: &mut Ui, footer: RailFooter) {
Row::new().wrap(true).show(ui, |ui, _| {
for (label, cmd, paint) in &chips {
let shown = Mixed::Same(well_paint(paint, &|_| None));
let out = PaintChip::new(*label, Bind::given(shown), fallback).popover(false).size(ControlSize::Sm).tooltip(*label).show(ui);
let out =
PaintChip::new(*label, Bind::given(shown), fallback).popover(false).chip_size(PaintChipSize::Swatch).tooltip(*label).show(ui);
if let Some(mods) = out.clicked {
clicked = Some((*cmd, mods.cmd));
}
+1 -1
View File
@@ -5,7 +5,7 @@ use std::process::Command;
use serde_json::Value;
const REV: &str = "3238a3eca8af59ba13ee04a39f3527979e1dc33d";
const REV: &str = "a4b6d3b6ca04a65d5972339b808d1049a14c7167";
const PACKAGES: &[(&str, &str, &str)] = &[
("craft-pdf", "0.1.0", REV),
("krilla", "0.8.2", REV),