Skip to content

ProCraft for Android: An Android native painting app written in Rust

Rust

feat(ui): our own bar icons, drawn to a new icon style guide

Joshc9c1ead2bdb9
diff --git a/ATTRIBUTION.md b/ATTRIBUTION.md
index e5249be..d622955 100644
--- a/ATTRIBUTION.md
+++ b/ATTRIBUTION.md
@@ -13,6 +13,7 @@ them.
| `apps/procraft-android/android/app/src/main/assets/fonts/Inter-{Regular,Medium,SemiBold,Bold}.ttf` | Inter 4.1 (interface font) | The Inter Project Authors | <https://github.com/rsms/inter/releases/tag/v4.1> (`Inter-4.1.zip`, `extras/ttf/`; `SOURCE.md` beside them) | SIL OFL 1.1, `Inter-OFL.txt` |
| `apps/procraft-android/android/app/src/main/java/io/github/artcraftandroid/procraft/ui/Icons.kt` (the icons listed below as Phosphor) | Phosphor icons, @phosphor-icons/core 2.1.1, Fill weight | Phosphor Icons | <https://github.com/phosphor-icons/core>; each icon's paths moved and scaled into the frame it is shown in, at the size shown | MIT, [`LICENSE-phosphor.txt`](apps/procraft-android/android/app/src/main/assets/icons/LICENSE-phosphor.txt) |
| `apps/procraft-android/android/app/src/main/java/io/github/artcraftandroid/procraft/ui/LucideIcons.kt` (the same icons as Lucide draws them, kept beside them) | Lucide icons, lucide-static 1.63.0 | Lucide Icons and Contributors (those derived from Feather: Cole Bemis) | <https://github.com/lucide-icons/lucide>; each icon's paths moved and scaled into the frame it is shown in, at the size shown | ISC (Feather-derived also MIT), [`LICENSE-lucide.txt`](apps/procraft-android/android/app/src/main/assets/icons/LICENSE-lucide.txt) |
+| `assets/icons/procraft/*.svg`, and in `apps/procraft-android/android/app/src/main/java/io/github/artcraftandroid/procraft/ui/Icons.kt` the bar's icons (`Actions`, `Adjustments`, `Selection`, `Transform`, `Brush`, `Smudge`, `Erase`, `Layers`, `Undo`, `Redo`) | ProCraft's own interface icons | ProCraft contributors | Original work, drawn from the idea to [`docs/icons/STYLE_GUIDE.md`](docs/icons/STYLE_GUIDE.md) by `tools/icons/draw_icons.py`; placed by the measured slots in `assets/icons/slots.tsv` | MIT OR Apache-2.0 |
| `apps/procraft-android/android/app/src/main/java/io/github/artcraftandroid/procraft/ui/Icons.kt` (every other icon) | Interface icons | ProCraft contributors | Original work, on a 24-unit grid | MIT OR Apache-2.0 |
| `apps/procraft-android/android/app/src/main/assets/environments/*.hdr` | 3D view light panoramas (11), halved to 512 x 256 and scaled by `tools/env/make_env.py` | Sergej Majboroda, Greg Zaal, Andreas Mischok, Rico Cilliers (per file in the folder's `README.md`) | <https://polyhaven.com> | CC0 1.0 |
| `assets/app-icon/procraft-{1024,512}.png`, `apps/procraft-android/android/app/src/main/res/drawable-*dpi/ic_launcher_{foreground,monochrome}.png`, `apps/procraft-android/android/app/src/main/res/drawable-nodpi/procraft_mark.png`, `apps/procraft-android/android/app/src/main/res/mipmap-anydpi/ic_launcher.xml` | App icon: a paintbrush in a warm-to-cool blend on black | ProCraft contributors | Original work, drawn in code by `tools/app-icon/make_icon.py`; see [`assets/app-icon/README.md`](assets/app-icon/README.md) | MIT OR Apache-2.0 |
@@ -24,16 +25,6 @@ them.
Each with the Phosphor icon it is (Fill weight):
- `FullScreen`: `arrows-out-simple`
-- `Actions`: `wrench`
-- `Adjustments`: `magic-wand`
-- `Selection`: `lasso`
-- `Transform`: `navigation-arrow`
-- `Brush`: `paint-brush`
-- `Smudge`: `hand-pointing`
-- `Erase`: `eraser`
-- `Layers`: `stack`
-- `Undo`: `arrow-u-up-left`
-- `Redo`: `arrow-u-up-right`
- `TransformReset`: `arrow-counter-clockwise`
- `SelectCopyPaste`: `copy`
- `StudioShape`: `shapes`
diff --git a/apps/procraft-android/android/app/src/main/java/io/github/artcraftandroid/procraft/ui/Icons.kt b/apps/procraft-android/android/app/src/main/java/io/github/artcraftandroid/procraft/ui/Icons.kt
index 1f6b5ef..259aa06 100644
--- a/apps/procraft-android/android/app/src/main/java/io/github/artcraftandroid/procraft/ui/Icons.kt
+++ b/apps/procraft-android/android/app/src/main/java/io/github/artcraftandroid/procraft/ui/Icons.kt
@@ -12,21 +12,22 @@ import androidx.compose.ui.unit.dp
/**
* ProCraft's interface icons. Most are Phosphor icons in their Fill weight (phosphoricons.com, MIT
* licence, `LICENSE-phosphor.txt` in the app's assets), their paths placed in the frame each is
- * shown in at the size it is shown; the rest are our own, on a 24-unit grid. [LucideIcons] keeps
- * the same icons as Lucide draws them.
+ * shown in at the size it is shown; the rest are our own, on a 24-unit grid, the bar's among them
+ * (`ours`, drawn to docs/icons/STYLE_GUIDE.md). [LucideIcons] keeps the same icons as Lucide
+ * draws them.
*/
object PcIcons {
val FullScreen by lazy { phosphor("fullscreen", 50f, "M 23.53,25.96 a 1.14,1.14 0 0,1 0,1.61 L 18.64,32.46 l 2.61,2.61 A 1.14,1.14 0 0,1 20.44,37.02 L 13.61,37.02 a 1.14,1.14 0 0,1-1.14,-1.14 L 12.47,29.04 a 1.14,1.14 0 0,1 1.95,-0.81 L 17.02,30.85 l 4.89,-4.89 A 1.14,1.14 0 0,1 23.53,25.96 Z M 36.39,11.95 L 29.56,11.95 a 1.14,1.14 0 0,0-0.81,1.95 L 31.36,16.51 l-4.89,4.89 a 1.14,1.14 0 0,0 1.61,1.61 L 32.98,18.12 l 2.61,2.61 A 1.14,1.14 0 0,0 37.53,19.93 L 37.53,13.09 A 1.14,1.14 0 0,0 36.39,11.95 Z") }
- val Actions by lazy { phosphor("actions", 44f, "M 32.32,18.8 a 7.13,7.13 0 0,1-10,6.54 L 17.17,31.3 c-0.01,0.01-0.03,0.03-0.04,0.04 a 3.17,3.17 0 0,1-4.48,-4.48 c 0.01,-0.01 0.03,-0.03 0.04,-0.04 L 18.65,21.67 a 7.14,7.14 0 0,1 8.27,-9.78 a 0.79,0.79 0 0,1 0.39,1.31 L 23.6,17.22 l 0.56,2.61 L 26.77,20.39 l 4.03,-3.72 a 0.79,0.79 0 0,1 1.31,0.39 A 7.19,7.19 0 0,1 32.32,18.8 Z") }
- val Adjustments by lazy { phosphor("adjustments", 44f, "M 31.09,24.06 a 0.67,0.67 0 0,1-0.67,0.67 L 29.09,24.73 l 0,1.33 a 0.67,0.67 0 0,1-1.33,0 L 27.76,24.73 L 26.42,24.73 a 0.67,0.67 0 0,1 0,-1.33 l 1.33,0 L 27.76,22.06 a 0.67,0.67 0 0,1 1.33,0 l 0,1.33 l 1.33,0 A 0.67,0.67 0 0,1 31.09,24.06 Z M 15.09,17.39 L 16.42,17.39 L 16.42,18.73 a 0.67,0.67 0 0,0 1.33,0 L 17.76,17.39 l 1.33,0 a 0.67,0.67 0 0,0 0,-1.33 L 17.76,16.06 L 17.76,14.73 a 0.67,0.67 0 0,0-1.33,0 L 16.42,16.06 L 15.09,16.06 a 0.67,0.67 0 0,0 0,1.33 Z M 25.76,27.39 l-0.67,0 l 0,-0.67 a 0.67,0.67 0 0,0-1.33,0 l 0,0.67 l-0.67,0 a 0.67,0.67 0 0,0 0,1.33 l 0.67,0 l 0,0.67 a 0.67,0.67 0 0,0 1.33,0 l 0,-0.67 l 0.67,0 a 0.67,0.67 0 0,0 0,-1.33 Z M 28.7,18.06 L 17.09,29.67 a 1.33,1.33 0 0,1-1.88,0 L 13.48,27.94 a 1.33,1.33 0 0,1 0,-1.89 L 25.09,14.45 a 1.33,1.33 0 0,1 1.89,0 l 1.72,1.72 A 1.33,1.33 0 0,1 28.7,18.06 Z M 27.76,17.12 L 26.03,15.39 l-2.67,2.67 L 25.09,19.78 Z") }
- val Selection by lazy { phosphor("selection", 44f, "M 18.31,22.86 a 1.83,1.83 0 0,0-1.64,0.65 c 0.99,0.7 2.4,1.21 3.99,1.39 C 20.12,23.63 19.2,22.96 18.31,22.86 Z", "M 32.25,13.46 L 32.25,30.53 a 1.71,1.71 0 0,1-1.71,1.71 L 21.96,32.24 a 0.43,0.43 0 0,1-0.34,-0.68 c 0.8,-1.09 1.24,-2.48 1.24,-4.04 c 0,-0.3-0.01,-0.58-0.04,-0.86 C 27.21,26.41 30.54,24.07 30.54,21.14 c 0,-3.11-3.75,-5.55-8.54,-5.55 S 13.46,18.03 13.46,21.14 c 0,2.91 3.29,5.24 7.64,5.52 a 8.22,8.22 0 0,1 0.04,0.86 c 0,1.88-0.82,3.41-2.24,4.2 A 4.14,4.14 0 0,1 16.8,32.24 L 13.46,32.24 a 1.71,1.71 0 0,1-1.71,-1.71 L 11.76,13.46 A 1.71,1.71 0 0,1 13.46,11.75 L 30.54,11.75 A 1.71,1.71 0 0,1 32.25,13.46 Z m-3.42,7.68 c 0,-2.08-3.13,-3.84-6.83,-3.84 s-6.83,1.76-6.83,3.84 a 2.27,2.27 0 0,0 0.32,1.13 A 3.59,3.59 0 0,1 18.5,21.16 c 1.6,0.17 3.29,1.43 4.01,3.81 C 25.98,24.82 28.83,23.13 28.83,21.14 Z") }
- val Transform by lazy { phosphor("transform", 44f, "M 29.7,20.38 a 1.17,1.17 0 0,1-0.84,1.12 l-0.01,0 l-5.81,1.63 l-1.63,5.81 l 0,0.01 a 1.17,1.17 0 0,1-1.12,0.84 l-0.02,0 a 1.17,1.17 0 0,1-1.12,-0.79 L 14.29,15.9 a 0.07,0.07 0 0,1 0,-0.01 A 1.19,1.19 0 0,1 15.79,14.37 l 0.01,0 l 13.1,4.86 A 1.17,1.17 0 0,1 29.7,20.38 Z") }
- val Brush by lazy { phosphor("brush", 44f, "M 35.97,10.56 a 1,1 0 0,0-1,-1 c-5.5,0-11.14,6.2-14.27,10.3 A 7.48,7.48 0 0,0 11.03,27.02 c 0,3.85-2.44,5.58-2.55,5.66 A 1,1 0 0,0 9.03,34.5 L 18.51,34.5 a 7.48,7.48 0 0,0 7.15,-9.67 C 29.77,21.69 35.97,16.05 35.97,10.56 Z M 22.55,20.73 q 0.64,-0.83 1.26,-1.56 A 9.51,9.51 0 0,1 26.36,21.72 q-0.74,0.62-1.56,1.26 A 7.55,7.55 0 0,0 22.55,20.73 Z m 5.32,-0.33 a 11.54,11.54 0 0,0-2.74,-2.74 c 3.96,-4.31 6.95,-5.61 8.72,-5.97 C 33.49,13.44 32.18,16.43 27.88,20.39 Z") }
- val Smudge by lazy { phosphor("smudge", 44f, "M 32.98,19.24 l 0,5.83 c 0,5.29-4.22,9.68-9.5,9.73 A 9.58,9.58 0 0,1 16.57,31.99 C 14.07,29.35 11.25,22.9 11.25,22.9 a 1.83,1.83 0 0,1 0.75,-2.54 c 0.88,-0.46 1.96,-0.1 2.45,0.76 l 2.4,4.17 a 0.7,0.7 0 0,0 0.69,0.35 l 0.01,0 A 0.94,0.94 0 0,0 18.33,24.7 L 18.33,11 a 1.83,1.83 0 0,1 1.92,-1.83 c 0.99,0.05 1.74,0.89 1.74,1.88 L 21.99,19.24 a 0.92,0.92 0 0,0 0.98,0.92 a 0.93,0.93 0 0,0 0.85,-0.94 L 23.82,17.41 a 1.83,1.83 0 0,1 1.92,-1.83 c 0.99,0.05 1.74,0.89 1.74,1.88 L 27.48,20.15 a 0.92,0.92 0 0,0 0.98,0.92 a 0.93,0.93 0 0,0 0.85,-0.94 l 0,-0.83 c 0,-0.99 0.76,-1.83 1.74,-1.88 A 1.83,1.83 0 0,1 32.98,19.24 Z") }
- val Erase by lazy { phosphor("erase", 44f, "M 33.75,16.26 L 28.74,11.25 a 2.9,2.9 0 0,0-4.11,0 L 10.27,25.61 a 2.9,2.9 0 0,0 0,4.11 l 3.64,3.64 A 0.97,0.97 0 0,0 14.59,33.64 L 32.66,33.64 a 0.97,0.97 0 0,0 0,-1.94 l-10.25,0 L 33.75,20.37 A 2.9,2.9 0 0,0 33.75,16.26 Z M 32.38,19 L 25.88,25.5 L 19.5,19.12 L 26,12.62 a 0.97,0.97 0 0,1 1.37,0 l 5.01,5.01 a 0.97,0.97 0 0,1 0,1.37 Z") }
- val Layers by lazy { phosphor("layers", 44f, "M 31.87,26.44 l-9.88,5.76 L 12.11,26.44 A 0.86,0.86 0 0,0 11.26,27.92 l 10.31,6.01 a 0.86,0.86 0 0,0 0.87,0 l 10.31,-6.01 A 0.86,0.86 0 1,0 31.87,26.44 Z", "M 31.87,21.28 l-9.88,5.76 L 12.11,21.28 A 0.86,0.86 0 0,0 11.26,22.77 l 10.31,6.01 a 0.86,0.86 0 0,0 0.87,0 l 10.31,-6.01 A 0.86,0.86 0 1,0 31.87,21.28 Z", "M 11.26,17.61 l 10.31,6.01 a 0.86,0.86 0 0,0 0.87,0 l 10.31,-6.01 a 0.86,0.86 0 0,0 0,-1.48 l-10.31,-6.01 a 0.86,0.86 0 0,0-0.87,0 l-10.31,6.01 a 0.86,0.86 0 0,0 0,1.48 Z") }
- val Undo by lazy { phosphor("undo", 50f, "M 38.83,27.93 a 8.42,8.42 0 0,1-8.41,8.41 L 18.86,36.34 a 1.05,1.05 0 0,1 0,-2.1 l 11.56,0 a 6.31,6.31 0 0,0 0,-12.61 L 19.91,21.63 l 0,5.25 a 1.05,1.05 0 0,1-1.79,0.74 l-6.31,-6.31 a 1.05,1.05 0 0,1 0,-1.49 l 6.31,-6.31 A 1.05,1.05 0 0,1 19.91,14.27 L 19.91,19.53 l 10.51,0 A 8.42,8.42 0 0,1 38.83,27.93 Z") }
- val Redo by lazy { phosphor("redo", 50f, "M 30.35,26.88 L 30.35,21.63 L 19.86,21.63 a 6.29,6.29 0 0,0 0,12.59 l 11.54,0 a 1.05,1.05 0 0,1 0,2.1 L 19.86,36.32 A 8.39,8.39 0 0,1 19.86,19.53 l 10.49,0 L 30.35,14.29 a 1.05,1.05 0 0,1 1.79,-0.74 l 6.29,6.29 a 1.05,1.05 0 0,1 0,1.48 l-6.29,6.29 A 1.05,1.05 0 0,1 30.35,26.88 Z") }
+ val Actions by lazy { ours("actions", 44f, "M20.59 20.1L12.4 28.33L12.09 28.7L11.88 29.1L11.75 29.54L11.71 29.99L11.76 30.44L11.89 30.88L12.11 31.28L12.4 31.63L12.76 31.91L13.38 32.2L13.82 32.28L14.23 32.28L14.9 32.12L15.48 31.78L23.88 23.4L24.48 23.61L25.02 23.75L25.61 23.84L26.25 23.87L26.81 23.84L27.4 23.76L27.98 23.61L28.58 23.4L29.12 23.14L29.6 22.85L30.12 22.47L30.53 22.1L30.93 21.66L31.31 21.14L31.6 20.66L31.86 20.12L32.07 19.52L32.22 18.94L32.3 18.39L32.33 17.75L32.3 17.15L32.22 16.6L32 15.8L31.91 15.65L31.77 15.55L31.52 15.52L31.36 15.59L27.7 19.23L27.22 19.59L26.82 19.76L26.24 19.84L25.81 19.8L25.43 19.68L25.07 19.49L24.76 19.23L24.5 18.91L24.32 18.57L24.2 18.18L24.16 17.78L24.19 17.38L24.31 16.99L24.5 16.63L24.76 16.31L28.36 12.71L28.48 12.48L28.47 12.31L28.35 12.09L27.98 11.93L27.44 11.79L26.85 11.7L26.25 11.67L25.65 11.7L25.06 11.78L24.48 11.93L23.91 12.13L23.37 12.38L22.86 12.69L22.38 13.04L21.93 13.44L21.53 13.88L21.17 14.36L20.86 14.88L20.6 15.42L20.4 15.98L20.25 16.56L20.16 17.15L20.13 17.75L20.16 18.35L20.24 18.94L20.39 19.52ZM17.38 27.77L17.25 28.16L16.99 28.47L16.63 28.65L16.22 28.68L15.84 28.56L15.53 28.3L15.35 27.94L15.32 27.53L15.44 27.15L15.7 26.84L16.06 26.66L16.47 26.62L16.85 26.75L17.16 27.01L17.34 27.37Z") }
+ val Adjustments by lazy { ours("adjustments", 44f, "M20.28 14.62L18.82 15.03L18.78 15.13L18.8 15.2L18.85 15.25L20.28 15.65L20.66 17.05L20.7 17.11L20.8 17.15L20.9 17.11L20.93 17.05L21.31 15.65L22.71 15.27L22.8 15.2L22.82 15.13L22.78 15.03L22.71 15L21.31 14.62L20.93 13.21L20.9 13.15L20.8 13.11L20.73 13.13L20.66 13.21ZM26.98 15.49L24.55 16.16L24.51 16.26L24.53 16.33L24.61 16.4L26.98 17.03L27.62 19.4L27.65 19.46L27.75 19.5L27.85 19.46L27.89 19.4L28.53 17.03L30.89 16.4L30.98 16.33L31 16.26L30.98 16.19L30.89 16.12L28.53 15.49L27.89 13.12L27.85 13.06L27.75 13.02L27.65 13.06L27.62 13.12ZM25.61 20.5L25.75 20.11L25.77 19.69L25.67 19.29L25.54 19.05L25.37 18.83L25.03 18.59L24.78 18.48L24.37 18.42L24.09 18.45L23.83 18.53L23.47 18.74L21.52 20.69L23.51 22.69L25.37 20.83ZM27.49 22.34L27.44 22.39L27.42 22.46L27.44 22.53L27.49 22.58L28.78 22.94L29.12 24.19L29.16 24.25L29.26 24.3L29.36 24.25L29.39 24.19L29.73 22.94L30.99 22.6L31.05 22.56L31.09 22.46L31.05 22.36L30.99 22.33L29.73 21.99L29.39 20.73L29.36 20.67L29.26 20.63L29.16 20.67L29.12 20.73L28.78 21.99ZM13.26 29.04L13.12 29.43L13.09 29.7L13.12 29.98L13.26 30.37L13.5 30.7L13.84 30.94L14.09 31.05L14.36 31.1L14.77 31.08L15.16 30.94L15.5 30.7L22.71 23.48L20.72 21.49L13.5 28.7Z") }
+ val Selection by lazy { ours("selection", 44f, "M18.61 14.05L18.92 13.9L19.09 13.75L19.24 13.58L19.39 13.26L19.44 12.92L19.39 12.58L19.24 12.27L19.09 12.09L18.92 11.95L18.61 11.8L18.26 11.75L12.93 11.75L12.59 11.8L12.38 11.89L12.18 12.02L12.02 12.18L11.89 12.37L11.81 12.58L11.76 12.92L11.76 18.26L11.81 18.6L11.89 18.81L12.02 19L12.28 19.24L12.48 19.34L12.81 19.43L13.16 19.41L13.38 19.34L13.67 19.17L13.9 18.91L14.01 18.71L14.08 18.49L14.1 18.26L14.1 14.1L18.26 14.1ZM25.39 11.8L25.08 11.95L24.83 12.18L24.65 12.47L24.57 12.81L24.58 13.15L24.7 13.48L24.91 13.75L25.18 13.96L25.51 14.08L25.74 14.1L29.9 14.1L29.9 18.26L29.92 18.49L29.99 18.71L30.1 18.91L30.33 19.17L30.52 19.3L30.73 19.38L30.96 19.43L31.3 19.41L31.62 19.3L31.82 19.17L32.05 18.91L32.16 18.71L32.22 18.49L32.25 18.26L32.25 12.92L32.22 12.69L32.16 12.47L31.98 12.18L31.82 12.02L31.62 11.89L31.41 11.8L31.19 11.76L25.74 11.75ZM25.45 18.84L25.15 18.55L24.77 18.39L24.56 18.37L19.44 18.37L19.03 18.45L18.68 18.68L18.45 19.03L18.37 19.43L18.37 24.56L18.45 24.96L18.68 25.31L19.03 25.54L19.44 25.62L24.56 25.62L24.97 25.54L25.32 25.31L25.55 24.96L25.63 24.56L25.63 19.43L25.61 19.23ZM14.05 25.39L13.9 25.08L13.76 24.9L13.58 24.75L13.27 24.61L12.93 24.56L12.59 24.61L12.28 24.75L12.1 24.9L11.95 25.08L11.81 25.39L11.76 25.73L11.76 31.07L11.81 31.41L11.89 31.62L12.02 31.81L12.28 32.04L12.48 32.15L12.7 32.22L12.93 32.24L18.26 32.24L18.49 32.22L18.71 32.15L19.01 31.97L19.17 31.81L19.35 31.52L19.43 31.18L19.43 30.95L19.39 30.73L19.24 30.41L19.01 30.16L18.71 29.98L18.49 29.91L18.26 29.89L14.1 29.89L14.1 25.73ZM32.19 25.39L32.05 25.08L31.82 24.82L31.52 24.65L31.19 24.56L30.84 24.58L30.52 24.69L30.24 24.9L30.04 25.18L29.95 25.39L29.9 25.73L29.9 29.89L25.74 29.89L25.51 29.91L25.29 29.98L25.08 30.09L24.83 30.32L24.7 30.51L24.58 30.84L24.56 31.07L24.58 31.3L24.7 31.62L24.83 31.81L25.08 32.04L25.29 32.15L25.51 32.22L25.74 32.24L31.07 32.24L31.3 32.22L31.52 32.15L31.82 31.97L31.98 31.81L32.11 31.62L32.19 31.41L32.24 31.18L32.25 25.73Z") }
+ val Transform by lazy { ours("transform", 44f, "M14.7 26.95L14.41 27.34L14.24 27.8L14.22 28.29L14.34 28.77L14.59 29.19L14.95 29.51L15.39 29.72L15.72 29.79L16.04 29.79L16.52 29.67L16.8 29.51L17.06 29.31L23.4 22.96L25.92 25.46L26.19 25.58L26.34 25.6L26.62 25.55L26.87 25.39L26.97 25.29L27.1 25.02L29.68 15.27L29.7 14.98L29.67 14.84L29.53 14.58L29.43 14.48L29.17 14.34L28.88 14.3L28.74 14.33L18.98 16.91L18.72 17.04L18.52 17.25L18.42 17.52L18.43 17.82L18.54 18.08L21.04 20.61Z") }
+ val Brush by lazy { ours("brush", 44f, "M9.53 34.03L9.56 34.22L9.73 34.43L9.91 34.5L10.09 34.49L17.13 32.76L18.03 32.39L18.42 32.15L19.1 31.59L19.69 30.88L20.13 30.07L20.4 29.19L20.49 28.27L20.41 27.35L20.14 26.47L19.71 25.65L19.13 24.93L18.42 24.35L17.61 23.91L16.73 23.63L15.81 23.54L14.89 23.63L14.01 23.89L13.19 24.32L12.48 24.9L11.86 25.65L11.45 26.42L11.29 26.86ZM20.85 18.77L20.5 18.74L20.19 18.9L18.04 21.05L17.88 21.36L17.88 21.6L18.04 21.91L22.12 25.99L22.43 26.16L22.67 26.16L22.98 25.99L25.13 23.84L25.3 23.53L25.3 23.3L25.13 22.98L21.05 18.9ZM34.04 12.14L34.37 11.65L34.47 11.26L34.43 10.67L34.17 10.14L33.73 9.75L33.36 9.6L32.77 9.56L32.21 9.75L22.34 18.47L25.56 21.7Z") }
+ val Smudge by lazy { ours("smudge", 44f, "M28.49 14.23L28.66 13.51L28.7 13.14L28.66 12.39L28.48 11.67L28.16 11L27.95 10.69L27.71 10.4L27.16 9.9L26.51 9.52L26.17 9.37L25.44 9.19L24.7 9.16L23.96 9.27L23.26 9.53L22.62 9.91L22.07 10.41L21.83 10.7L21.45 11.34L19.83 14.79L26.75 17.99ZM15.98 23.39L15.94 23.76L15.98 24.51L16.16 25.23L16.31 25.58L16.69 26.22L17.2 26.77L17.49 27L18.13 27.38L18.47 27.53L19.2 27.71L19.94 27.74L20.68 27.63L21.04 27.52L21.38 27.38L22.02 26.99L22.57 26.49L23.02 25.89L26.17 19.2L19.26 16.01L16.3 22.32L16.16 22.67ZM14.8 32.38L15.99 31.9L16.71 31.72L17.39 31.67L18.07 31.72L18.79 31.9L19.57 32.19L20.41 32.59L22.72 33.79L23.8 34.26L24.81 34.58L25.37 34.69L26.06 34.78L26.64 34.8L27.68 34.71L28.81 34.45L29.88 34.05L30.92 33.55L31.85 33.06L32.22 32.79L32.48 32.41L32.56 32.2L32.62 31.75L32.6 31.52L32.45 31.09L32.18 30.73L32 30.58L31.59 30.38L31.14 30.32L30.69 30.4L29.17 31.17L27.98 31.66L27.26 31.83L26.91 31.87L26.24 31.87L25.9 31.83L25.18 31.66L24.4 31.36L23.56 30.96L21.25 29.76L20.17 29.29L19.16 28.98L18.6 28.86L18.03 28.78L17.45 28.75L16.75 28.78L15.72 28.95L15.08 29.13L14.09 29.51L13.05 30L11.92 30.62L11.61 30.94L11.41 31.35L11.35 31.81L11.37 32.03L11.52 32.46L11.79 32.83L11.97 32.97L12.38 33.17L12.83 33.23L13.28 33.15Z") }
+ val Erase by lazy { ours("erase", 44f, "M25.61 10.51L25.33 10.43L25.04 10.4L24.75 10.43L24.47 10.51L24.21 10.65L23.98 10.84L17.4 17.42L24.07 24.1L30.66 17.51L30.84 17.29L30.98 17.03L31.07 16.75L31.09 16.46L31.07 16.17L30.98 15.89L30.84 15.63L30.66 15.4L26.09 10.84L25.86 10.65ZM13.03 21.95L12.95 22.23L12.92 22.52L12.95 22.81L13.03 23.09L13.17 23.35L13.36 23.57L17.92 28.14L18.15 28.32L18.41 28.46L18.69 28.55L18.98 28.57L19.27 28.55L19.55 28.46L19.81 28.32L20.03 28.14L23.02 25.15L16.34 18.48L13.36 21.46L13.17 21.69ZM32.81 33.62L33.25 33.44L33.52 33.19L33.75 32.76L33.81 32.4L33.75 32.04L33.52 31.62L33.15 31.31L32.69 31.17L11.33 31.17L10.97 31.26L10.57 31.53L10.3 31.93L10.21 32.28L10.26 32.76L10.49 33.19L10.86 33.5L11.33 33.64Z") }
+ val Layers by lazy { ours("layers", 44f, "M22.42 11.53L22 11.45L21.79 11.47L21.39 11.62L12.74 16.96L12.56 17.1L12.4 17.28L12.29 17.49L12.22 17.71L12.19 17.94L12.22 18.18L12.29 18.4L12.4 18.61L12.56 18.78L12.74 18.93L21.39 24.26L21.79 24.42L22 24.44L22.21 24.42L22.61 24.26L31.26 18.93L31.44 18.78L31.6 18.61L31.71 18.4L31.78 18.18L31.81 17.94L31.78 17.71L31.71 17.49L31.6 17.28L31.44 17.1L31.26 16.96ZM21.47 32.5L21.67 32.56L22.11 32.6L22.33 32.56L22.73 32.39L33.35 25.82L33.52 25.69L33.8 25.36L33.97 24.96L34 24.74L33.96 24.31L33.8 23.91L33.51 23.58L33.14 23.36L32.72 23.26L32.5 23.26L32.08 23.36L22 29.59L11.92 23.36L11.5 23.26L11.06 23.29L10.66 23.45L10.33 23.73L10.2 23.91L10.04 24.31L10 24.74L10.1 25.16L10.32 25.53L10.48 25.69Z") }
+ val Undo by lazy { ours("undo", 50f, "M14.5 24.13L14.66 24.34L14.89 24.48L15.28 24.49L20.48 23.1L20.72 22.98L20.89 22.78L20.98 22.53L20.96 22.26L20.84 22.03L20.64 21.85L18.99 20.9L19.6 19.98L19.96 19.56L20.76 18.8L21.66 18.15L22.14 17.88L22.63 17.64L23.68 17.28L24.76 17.06L25.86 17L26.96 17.1L28.03 17.35L29.06 17.75L30.02 18.29L30.9 18.96L31.67 19.75L32.01 20.18L32.6 21.12L33.05 22.13L33.35 23.19L33.45 23.73L33.52 24.83L33.5 25.38L33.34 26.48L33.02 27.53L32.81 28.04L32.28 29.01L31.62 29.89L30.84 30.67L29.95 31.34L28.99 31.87L27.95 32.26L26.88 32.49L25.77 32.58L25.22 32.56L24.13 32.41L22.72 32.02L22.13 32.02L21.84 32.09L21.31 32.36L20.89 32.78L20.62 33.3L20.53 33.89L20.62 34.47L20.89 35L21.31 35.42L21.84 35.69L23.29 36.1L24.09 36.24L25.04 36.34L26.55 36.33L27.5 36.23L28.97 35.9L29.75 35.64L30.63 35.27L31.95 34.55L32.73 34.01L33.36 33.49L33.96 32.92L34.95 31.79L35.49 31L36.22 29.68L36.58 28.8L36.84 28.02L37.17 26.55L37.27 25.61L37.28 24.1L37.19 23.15L36.88 21.68L36.63 20.9L36.32 20.13L35.9 19.28L35.1 18L34.51 17.25L33.46 16.18L32.72 15.57L32.05 15.1L30.74 14.36L29.86 13.98L28.42 13.54L27.62 13.37L26.67 13.26L25.85 13.22L24.35 13.3L23.41 13.45L22.61 13.65L21.83 13.9L20.45 14.5L19.73 14.9L18.94 15.42L17.78 16.39L17.11 17.07L16.59 17.7L15.75 18.95L17.35 19.95L14.06 18.05L13.67 17.96L13.3 18.1L13.07 18.42L13.06 18.81Z") }
+ val Redo by lazy { ours("redo", 50f, "M35.76 24.13L35.59 24.34L35.36 24.48L34.97 24.49L29.78 23.1L29.55 22.98L29.37 22.78L29.29 22.53L29.3 22.27L29.42 22.03L29.62 21.86L31.27 20.9L30.66 19.99L30.3 19.57L29.5 18.81L28.61 18.16L28.13 17.89L27.63 17.66L26.59 17.29L25.51 17.08L24.41 17.02L23.31 17.11L22.24 17.36L21.21 17.76L20.25 18.3L19.38 18.97L18.61 19.76L18.27 20.19L17.68 21.12L17.23 22.13L16.93 23.19L16.84 23.73L16.76 24.83L16.79 25.38L16.95 26.47L17.26 27.53L17.47 28.04L18 29L18.67 29.88L19.44 30.66L20.33 31.32L21.29 31.85L22.32 32.24L23.4 32.48L24.5 32.57L25.05 32.55L26.14 32.4L27.55 32.01L28.14 32.01L28.43 32.08L28.95 32.34L29.37 32.76L29.64 33.29L29.73 33.87L29.64 34.45L29.37 34.98L28.95 35.4L28.43 35.67L26.98 36.08L26.18 36.22L25.23 36.32L23.72 36.31L22.78 36.21L21.31 35.88L20.53 35.62L19.65 35.26L18.34 34.53L17.55 33.99L16.92 33.47L16.32 32.91L15.34 31.77L14.8 30.99L14.07 29.67L13.71 28.8L13.45 28.02L13.12 26.55L13.02 25.6L13.01 24.1L13.1 23.15L13.41 21.68L13.66 20.9L13.96 20.14L14.38 19.29L15.18 18.01L15.77 17.27L16.83 16.19L17.56 15.59L18.23 15.11L19.54 14.38L20.41 14L21.85 13.56L22.65 13.39L23.6 13.28L24.42 13.24L25.92 13.32L26.86 13.47L27.65 13.67L28.43 13.92L29.81 14.51L30.53 14.91L31.32 15.44L31.97 15.94L33.05 16.98L33.67 17.71L34.51 18.96L32.91 19.96L36.2 18.06L36.58 17.97L36.95 18.11L37.18 18.43L37.19 18.82Z") }
val TransformReset by lazy { phosphor("transformreset", 44f, "M 32,22 a 9.18,9.18 0 0,1-9.06,9.18 L 22.82,31.18 A 9.13,9.13 0 0,1 16.51,28.68 a 0.77,0.77 0 0,1 1.05,-1.11 A 7.65,7.65 0 1,0 17.4,16.58 a 0.29,0.29 0 0,1-0.02,0.02 L 16.37,17.53 l 1.63,1.63 A 0.77,0.77 0 0,1 17.46,20.47 L 12.87,20.47 a 0.77,0.77 0 0,1-0.77,-0.77 L 12.1,15.11 A 0.77,0.77 0 0,1 13.41,14.57 L 15.29,16.45 L 16.33,15.49 A 9.18,9.18 0 0,1 32,22 Z") }
val SelectCopyPaste by lazy { phosphor("selectcopypaste", 44f, "M 29.52,13.8 L 18.59,13.8 a 0.68,0.68 0 0,0-0.68,0.68 L 17.91,17.9 L 14.49,17.9 a 0.68,0.68 0 0,0-0.68,0.68 L 13.81,29.52 a 0.68,0.68 0 0,0 0.68,0.68 L 25.42,30.2 a 0.68,0.68 0 0,0 0.68,-0.68 L 26.11,26.1 l 3.42,0 a 0.68,0.68 0 0,0 0.68,-0.68 L 30.21,14.48 A 0.68,0.68 0 0,0 29.52,13.8 Z m-0.68,10.93 L 26.11,24.73 L 26.11,18.58 a 0.68,0.68 0 0,0-0.68,-0.68 L 19.27,17.9 L 19.27,15.17 L 28.84,15.17 Z") }
/** A plus. */
@@ -698,6 +699,16 @@ object PcIcons {
private fun outline(name: String, width: Float, vararg paths: String): ImageVector = icon(name, *paths.map { Part(it, width, false) }.toTypedArray())
+ /**
+ * One of our own icons (docs/icons/STYLE_GUIDE.md, drawn by tools/icons/draw_icons.py) in a [frame] unit
+ * square, filled, its knockouts cut out (even-odd).
+ */
+ private fun ours(name: String, frame: Float, vararg paths: String): ImageVector = ours(name, frame, frame, *paths)
+
+ /** One of our own icons in a [frameWidth] x [frameHeight] unit frame. */
+ private fun ours(name: String, frameWidth: Float, frameHeight: Float, vararg paths: String): ImageVector =
+ icon(name, *paths.map { Part(it, 0f, true, evenOdd = true) }.toTypedArray(), viewport = frameWidth, viewportHeight = frameHeight)
+
/** A Phosphor icon in a [frame] unit square (the frame it is shown in), its paths placed there and filled. */
private fun phosphor(name: String, frame: Float, vararg paths: String): ImageVector = phosphor(name, frame, frame, *paths)
diff --git a/assets/icons/procraft/actions.svg b/assets/icons/procraft/actions.svg
new file mode 100644
index 0000000..c1a3418
--- /dev/null
+++ b/assets/icons/procraft/actions.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
+ <!-- ProCraft actions icon: original, drawn by tools/icons/draw_icons.py. MIT OR Apache-2.0. -->
+ <path fill="currentColor" fill-rule="evenodd" d="M10.88 10.41L4.16 17.15L3.91 17.46L3.74 17.79L3.63 18.15L3.6 18.52L3.64 18.89L3.75 19.24L3.93 19.57L4.17 19.86L4.46 20.09L4.97 20.32L5.33 20.39L5.67 20.39L6.21 20.26L6.69 19.98L13.57 13.12L14.07 13.29L14.51 13.4L14.99 13.47L15.52 13.5L15.97 13.48L16.46 13.41L16.93 13.29L17.43 13.11L17.87 12.9L18.26 12.67L18.68 12.35L19.02 12.05L19.35 11.68L19.67 11.26L19.9 10.87L20.11 10.43L20.29 9.93L20.41 9.46L20.47 9.01L20.5 8.48L20.47 7.99L20.41 7.54L20.23 6.88L20.15 6.77L20.04 6.68L19.83 6.66L19.7 6.71L16.71 9.7L16.31 9.99L15.99 10.13L15.51 10.2L15.16 10.17L14.84 10.07L14.55 9.91L14.29 9.7L14.08 9.44L13.93 9.16L13.83 8.84L13.8 8.51L13.83 8.18L13.93 7.86L14.08 7.56L14.3 7.3L17.24 4.35L17.34 4.17L17.34 4.03L17.23 3.85L16.93 3.71L16.49 3.6L16.01 3.53L15.52 3.5L15.03 3.52L14.54 3.59L14.07 3.71L13.6 3.87L13.16 4.08L12.74 4.33L12.34 4.62L11.98 4.95L11.65 5.32L11.35 5.71L11.1 6.13L10.89 6.57L10.72 7.03L10.6 7.51L10.53 7.99L10.5 8.48L10.52 8.97L10.59 9.46L10.71 9.93ZM8.24 16.7L8.14 17.01L7.93 17.27L7.63 17.42L7.3 17.44L6.99 17.34L6.73 17.13L6.58 16.83L6.56 16.5L6.66 16.19L6.87 15.93L7.17 15.78L7.5 15.76L7.81 15.86L8.07 16.07L8.22 16.37Z"/>
+</svg>
diff --git a/assets/icons/procraft/adjustments.svg b/assets/icons/procraft/adjustments.svg
new file mode 100644
index 0000000..5587755
--- /dev/null
+++ b/assets/icons/procraft/adjustments.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
+ <!-- ProCraft adjustments icon: original, drawn by tools/icons/draw_icons.py. MIT OR Apache-2.0. -->
+ <path fill="currentColor" fill-rule="evenodd" d="M10.65 3.45L9.09 3.89L9.05 4L9.07 4.07L9.12 4.13L10.65 4.55L11.06 6.04L11.09 6.11L11.2 6.15L11.31 6.11L11.34 6.04L11.75 4.55L13.24 4.14L13.33 4.07L13.35 4L13.31 3.89L13.24 3.86L11.75 3.45L11.34 1.96L11.31 1.89L11.2 1.85L11.13 1.87L11.06 1.96ZM17.78 4.38L15.19 5.09L15.15 5.2L15.17 5.27L15.26 5.34L17.78 6.02L18.46 8.54L18.49 8.61L18.6 8.65L18.71 8.61L18.74 8.54L19.42 6.02L21.94 5.34L22.03 5.27L22.05 5.2L22.03 5.13L21.94 5.06L19.42 4.38L18.74 1.86L18.71 1.79L18.6 1.75L18.49 1.79L18.46 1.86ZM16.32 9.71L16.47 9.29L16.49 8.85L16.39 8.43L16.25 8.17L16.06 7.94L15.71 7.68L15.44 7.56L15 7.5L14.71 7.53L14.43 7.61L14.05 7.84L11.96 9.92L14.08 12.04L16.06 10.06ZM18.32 11.67L18.27 11.73L18.25 11.8L18.27 11.87L18.32 11.93L19.7 12.3L20.06 13.64L20.09 13.71L20.2 13.75L20.31 13.71L20.34 13.64L20.7 12.3L22.04 11.94L22.11 11.91L22.15 11.8L22.11 11.69L22.04 11.66L20.7 11.3L20.34 9.96L20.31 9.89L20.2 9.85L20.09 9.89L20.06 9.96L19.7 11.3ZM3.18 18.79L3.03 19.21L3 19.5L3.03 19.79L3.18 20.21L3.44 20.56L3.79 20.82L4.06 20.94L4.35 20.99L4.79 20.97L5.21 20.82L5.56 20.56L13.24 12.88L11.12 10.76L3.44 18.44Z"/>
+</svg>
diff --git a/assets/icons/procraft/brush.svg b/assets/icons/procraft/brush.svg
new file mode 100644
index 0000000..b1f7920
--- /dev/null
+++ b/assets/icons/procraft/brush.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
+ <!-- ProCraft brush icon: original, drawn by tools/icons/draw_icons.py. MIT OR Apache-2.0. -->
+ <path fill="currentColor" fill-rule="evenodd" d="M3.84 19.85L3.86 19.97L3.97 20.11L4.09 20.16L4.21 20.15L8.85 19.01L9.43 18.77L9.69 18.61L10.14 18.24L10.53 17.77L10.82 17.24L11 16.66L11.06 16.05L11 15.45L10.83 14.87L10.54 14.33L10.16 13.86L9.69 13.47L9.16 13.18L8.58 13L7.97 12.94L7.37 13L6.79 13.17L6.25 13.46L5.78 13.84L5.37 14.33L5.1 14.84L5 15.13ZM11.29 9.8L11.06 9.78L10.86 9.89L9.44 11.3L9.34 11.51L9.34 11.66L9.44 11.87L12.13 14.56L12.34 14.66L12.49 14.66L12.7 14.56L14.11 13.14L14.22 12.94L14.22 12.78L14.11 12.58L11.42 9.89ZM19.98 5.43L20.2 5.11L20.26 4.86L20.24 4.47L20.07 4.12L19.77 3.86L19.53 3.76L19.14 3.74L18.77 3.86L12.27 9.61L14.39 11.73Z"/>
+</svg>
diff --git a/assets/icons/procraft/erase.svg b/assets/icons/procraft/erase.svg
new file mode 100644
index 0000000..86bda83
--- /dev/null
+++ b/assets/icons/procraft/erase.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
+ <!-- ProCraft erase icon: original, drawn by tools/icons/draw_icons.py. MIT OR Apache-2.0. -->
+ <path fill="currentColor" fill-rule="evenodd" d="M14.9 3.17L14.67 3.11L14.44 3.08L14.21 3.11L13.98 3.17L13.77 3.29L13.59 3.43L8.29 8.74L13.66 14.11L18.97 8.81L19.11 8.63L19.23 8.42L19.29 8.19L19.32 7.96L19.29 7.73L19.23 7.5L19.11 7.29L18.97 7.11L15.29 3.43L15.11 3.29ZM4.77 12.38L4.71 12.61L4.68 12.84L4.71 13.07L4.77 13.3L4.89 13.51L5.03 13.69L8.71 17.37L8.89 17.51L9.1 17.63L9.33 17.69L9.56 17.72L9.79 17.69L10.02 17.63L10.23 17.51L10.41 17.37L12.81 14.96L7.44 9.59L5.03 11.99L4.89 12.17ZM20.7 21.78L21.06 21.63L21.27 21.43L21.46 21.09L21.5 20.8L21.46 20.51L21.27 20.17L20.97 19.92L20.6 19.8L3.4 19.8L3.12 19.88L2.79 20.09L2.58 20.42L2.5 20.7L2.54 21.09L2.73 21.43L3.03 21.68L3.4 21.8Z"/>
+</svg>
diff --git a/assets/icons/procraft/layers.svg b/assets/icons/procraft/layers.svg
new file mode 100644
index 0000000..9e128a5
--- /dev/null
+++ b/assets/icons/procraft/layers.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
+ <!-- ProCraft layers icon: original, drawn by tools/icons/draw_icons.py. MIT OR Apache-2.0. -->
+ <path fill="currentColor" fill-rule="evenodd" d="M12.36 2.84L12 2.78L11.82 2.79L11.47 2.92L3.98 7.55L3.82 7.67L3.69 7.83L3.59 8L3.53 8.2L3.5 8.4L3.53 8.6L3.59 8.8L3.69 8.97L3.82 9.13L3.98 9.25L11.47 13.88L11.82 14.01L12 14.02L12.18 14.01L12.53 13.88L20.02 9.25L20.18 9.13L20.31 8.97L20.41 8.8L20.47 8.6L20.5 8.4L20.47 8.2L20.41 8L20.31 7.83L20.18 7.67L20.02 7.55ZM11.54 21.01L11.72 21.07L12.09 21.1L12.28 21.07L12.63 20.92L21.83 15.22L21.98 15.11L22.23 14.82L22.37 14.47L22.4 14.29L22.37 13.91L22.22 13.57L21.97 13.28L21.65 13.09L21.29 13L21.1 13L20.74 13.09L12 18.49L3.26 13.09L2.9 13L2.53 13.03L2.18 13.17L1.89 13.42L1.78 13.57L1.63 13.91L1.6 14.29L1.69 14.65L1.88 14.97L2.02 15.11Z"/>
+</svg>
diff --git a/assets/icons/procraft/redo.svg b/assets/icons/procraft/redo.svg
new file mode 100644
index 0000000..fde163f
--- /dev/null
+++ b/assets/icons/procraft/redo.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
+ <!-- ProCraft redo icon: original, drawn by tools/icons/draw_icons.py. MIT OR Apache-2.0. -->
+ <path fill="currentColor" fill-rule="evenodd" d="M18.43 12.57L18.32 12.7L18.17 12.79L17.91 12.8L14.47 11.88L14.32 11.8L14.2 11.67L14.14 11.51L14.16 11.33L14.23 11.17L14.37 11.06L15.46 10.43L15.05 9.82L14.82 9.54L14.29 9.04L13.7 8.61L13.38 8.43L13.05 8.28L12.36 8.03L11.64 7.89L10.92 7.85L10.19 7.92L9.48 8.08L8.8 8.35L8.16 8.7L7.58 9.15L7.07 9.67L6.85 9.96L6.46 10.57L6.16 11.24L5.96 11.94L5.9 12.3L5.85 13.03L5.87 13.39L5.97 14.11L6.18 14.81L6.32 15.15L6.67 15.79L7.11 16.37L7.63 16.89L8.21 17.33L8.85 17.68L9.53 17.94L10.24 18.09L10.97 18.15L11.34 18.14L12.06 18.04L12.99 17.78L13.38 17.78L13.58 17.83L13.92 18L14.2 18.28L14.38 18.63L14.44 19.01L14.38 19.4L14.2 19.75L13.92 20.03L13.58 20.2L12.62 20.48L12.08 20.57L11.46 20.64L10.46 20.63L9.83 20.56L8.86 20.34L8.35 20.17L7.76 19.93L6.89 19.45L6.37 19.09L5.95 18.75L5.56 18.38L4.91 17.63L4.55 17.11L4.07 16.24L3.83 15.65L3.66 15.14L3.44 14.17L3.37 13.54L3.36 12.54L3.43 11.92L3.63 10.94L3.8 10.43L4 9.92L4.27 9.36L4.81 8.51L5.2 8.02L5.89 7.31L6.38 6.9L6.82 6.59L7.69 6.1L8.27 5.85L9.22 5.56L9.75 5.45L10.38 5.38L10.92 5.35L11.91 5.41L12.54 5.51L13.06 5.63L13.58 5.8L14.49 6.19L14.97 6.46L15.49 6.81L15.92 7.14L16.64 7.83L17.04 8.31L17.6 9.14L16.54 9.8L18.72 8.54L18.97 8.48L19.22 8.58L19.37 8.79L19.38 9.05Z"/>
+</svg>
diff --git a/assets/icons/procraft/selection.svg b/assets/icons/procraft/selection.svg
new file mode 100644
index 0000000..f8307fb
--- /dev/null
+++ b/assets/icons/procraft/selection.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
+ <!-- ProCraft selection icon: original, drawn by tools/icons/draw_icons.py. MIT OR Apache-2.0. -->
+ <path fill="currentColor" fill-rule="evenodd" d="M8.82 4.55L9.11 4.41L9.28 4.28L9.41 4.11L9.55 3.82L9.6 3.5L9.55 3.18L9.41 2.89L9.28 2.72L9.11 2.59L8.82 2.45L8.5 2.4L3.5 2.4L3.18 2.45L2.98 2.53L2.8 2.65L2.65 2.8L2.53 2.98L2.45 3.18L2.4 3.5L2.4 8.5L2.45 8.82L2.53 9.02L2.65 9.2L2.89 9.41L3.08 9.52L3.39 9.59L3.71 9.58L3.92 9.52L4.2 9.35L4.41 9.11L4.52 8.92L4.58 8.71L4.6 8.5L4.6 4.6L8.5 4.6ZM15.18 2.45L14.89 2.59L14.65 2.8L14.48 3.08L14.41 3.39L14.42 3.71L14.53 4.02L14.72 4.28L14.98 4.47L15.29 4.58L15.5 4.6L19.4 4.6L19.4 8.5L19.42 8.71L19.48 8.92L19.59 9.11L19.8 9.35L19.98 9.47L20.18 9.55L20.39 9.59L20.71 9.58L21.02 9.47L21.2 9.35L21.41 9.11L21.52 8.92L21.58 8.71L21.6 8.5L21.6 3.5L21.58 3.29L21.52 3.08L21.35 2.8L21.2 2.65L21.02 2.53L20.82 2.45L20.61 2.41L15.5 2.4ZM15.23 9.04L14.96 8.77L14.6 8.62L14.4 8.6L9.6 8.6L9.22 8.68L8.89 8.89L8.68 9.22L8.6 9.6L8.6 14.4L8.68 14.78L8.89 15.11L9.22 15.32L9.6 15.4L14.4 15.4L14.78 15.32L15.11 15.11L15.32 14.78L15.4 14.4L15.4 9.6L15.38 9.4ZM4.55 15.18L4.41 14.89L4.28 14.72L4.11 14.59L3.82 14.45L3.5 14.4L3.18 14.45L2.89 14.59L2.72 14.72L2.59 14.89L2.45 15.18L2.4 15.5L2.4 20.5L2.45 20.82L2.53 21.02L2.65 21.2L2.89 21.41L3.08 21.52L3.29 21.58L3.5 21.6L8.5 21.6L8.71 21.58L8.92 21.52L9.2 21.35L9.35 21.2L9.52 20.92L9.59 20.61L9.59 20.39L9.55 20.18L9.41 19.89L9.2 19.65L8.92 19.48L8.71 19.42L8.5 19.4L4.6 19.4L4.6 15.5ZM21.55 15.18L21.41 14.89L21.2 14.65L20.92 14.48L20.61 14.41L20.29 14.42L19.98 14.53L19.72 14.72L19.53 14.98L19.45 15.18L19.4 15.5L19.4 19.4L15.5 19.4L15.29 19.42L15.08 19.48L14.89 19.59L14.65 19.8L14.53 19.98L14.42 20.29L14.4 20.5L14.42 20.71L14.53 21.02L14.65 21.2L14.89 21.41L15.08 21.52L15.29 21.58L15.5 21.6L20.5 21.6L20.71 21.58L20.92 21.52L21.2 21.35L21.35 21.2L21.47 21.02L21.55 20.82L21.59 20.61L21.6 15.5Z"/>
+</svg>
diff --git a/assets/icons/procraft/smudge.svg b/assets/icons/procraft/smudge.svg
new file mode 100644
index 0000000..9d6576b
--- /dev/null
+++ b/assets/icons/procraft/smudge.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
+ <!-- ProCraft smudge icon: original, drawn by tools/icons/draw_icons.py. MIT OR Apache-2.0. -->
+ <path fill="currentColor" fill-rule="evenodd" d="M17.8 3.74L17.96 3.09L18 2.76L17.96 2.09L17.8 1.45L17.51 0.84L17.32 0.57L17.11 0.31L16.62 -0.14L16.04 -0.48L15.74 -0.6L15.09 -0.76L14.42 -0.8L13.76 -0.7L13.14 -0.47L12.57 -0.12L12.07 0.32L11.86 0.58L11.52 1.16L10.08 4.24L16.25 7.09ZM6.64 11.91L6.6 12.24L6.64 12.91L6.8 13.55L6.93 13.86L7.28 14.43L7.72 14.93L7.98 15.14L8.56 15.48L8.86 15.6L9.51 15.76L10.18 15.8L10.84 15.7L11.15 15.6L11.46 15.47L12.03 15.12L12.53 14.68L12.92 14.14L15.74 8.17L9.57 5.32L6.92 10.96L6.8 11.26ZM5.59 19.94L6.65 19.51L7.29 19.35L7.9 19.3L8.51 19.35L9.15 19.51L9.84 19.77L10.59 20.13L12.65 21.2L13.62 21.62L14.52 21.9L15.02 22L15.64 22.08L16.15 22.1L17.08 22.02L18.09 21.78L19.05 21.43L19.98 20.99L20.81 20.55L21.14 20.3L21.37 19.97L21.44 19.78L21.5 19.37L21.48 19.17L21.35 18.79L21.1 18.46L20.94 18.33L20.58 18.16L20.17 18.1L19.77 18.17L18.41 18.86L17.35 19.29L16.71 19.45L16.4 19.49L15.8 19.49L15.49 19.45L14.85 19.29L14.16 19.03L13.41 18.67L11.35 17.6L10.38 17.18L9.48 16.9L8.98 16.8L8.47 16.73L7.95 16.7L7.33 16.73L6.41 16.88L5.83 17.04L4.95 17.37L4.02 17.81L3.02 18.36L2.73 18.66L2.56 19.02L2.5 19.43L2.52 19.63L2.65 20.01L2.9 20.34L3.06 20.47L3.42 20.64L3.83 20.7L4.23 20.63Z"/>
+</svg>
diff --git a/assets/icons/procraft/transform.svg b/assets/icons/procraft/transform.svg
new file mode 100644
index 0000000..2d6cc92
--- /dev/null
+++ b/assets/icons/procraft/transform.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
+ <!-- ProCraft transform icon: original, drawn by tools/icons/draw_icons.py. MIT OR Apache-2.0. -->
+ <path fill="currentColor" fill-rule="evenodd" d="M5.57 16.6L5.34 16.9L5.21 17.26L5.19 17.64L5.28 18.01L5.48 18.34L5.76 18.6L6.11 18.76L6.36 18.81L6.61 18.81L6.98 18.72L7.21 18.6L7.4 18.43L12.35 13.48L14.32 15.44L14.53 15.53L14.64 15.54L14.87 15.5L15.06 15.38L15.14 15.3L15.24 15.09L17.25 7.48L17.27 7.26L17.24 7.15L17.13 6.95L17.05 6.87L16.85 6.76L16.63 6.73L16.52 6.75L8.91 8.76L8.7 8.86L8.55 9.03L8.47 9.24L8.47 9.47L8.56 9.68L10.52 11.65Z"/>
+</svg>
diff --git a/assets/icons/procraft/undo.svg b/assets/icons/procraft/undo.svg
new file mode 100644
index 0000000..ec9e757
--- /dev/null
+++ b/assets/icons/procraft/undo.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
+ <!-- ProCraft undo icon: original, drawn by tools/icons/draw_icons.py. MIT OR Apache-2.0. -->
+ <path fill="currentColor" fill-rule="evenodd" d="M5.57 12.57L5.68 12.7L5.83 12.79L6.09 12.8L9.53 11.88L9.68 11.8L9.8 11.67L9.86 11.51L9.84 11.33L9.77 11.17L9.63 11.06L8.54 10.43L8.95 9.82L9.18 9.54L9.71 9.04L10.3 8.61L10.62 8.43L10.95 8.28L11.64 8.03L12.36 7.89L13.08 7.85L13.81 7.92L14.52 8.08L15.2 8.35L15.84 8.7L16.42 9.15L16.93 9.67L17.15 9.96L17.54 10.57L17.84 11.24L18.04 11.94L18.1 12.3L18.15 13.03L18.13 13.39L18.03 14.11L17.82 14.81L17.68 15.15L17.33 15.79L16.89 16.37L16.37 16.89L15.79 17.33L15.15 17.68L14.47 17.94L13.76 18.09L13.03 18.15L12.66 18.14L11.94 18.04L11.01 17.78L10.62 17.78L10.42 17.83L10.08 18L9.8 18.28L9.62 18.63L9.56 19.01L9.62 19.4L9.8 19.75L10.08 20.03L10.42 20.2L11.38 20.48L11.92 20.57L12.54 20.64L13.54 20.63L14.17 20.56L15.14 20.34L15.65 20.17L16.24 19.93L17.11 19.45L17.63 19.09L18.05 18.75L18.44 18.38L19.09 17.63L19.45 17.11L19.93 16.24L20.17 15.65L20.34 15.14L20.56 14.17L20.63 13.54L20.64 12.54L20.57 11.92L20.37 10.94L20.2 10.43L20 9.92L19.73 9.36L19.19 8.51L18.8 8.02L18.11 7.31L17.62 6.9L17.18 6.59L16.31 6.1L15.73 5.85L14.78 5.56L14.25 5.45L13.62 5.38L13.08 5.35L12.09 5.41L11.46 5.51L10.94 5.63L10.42 5.8L9.51 6.19L9.03 6.46L8.51 6.81L7.74 7.44L7.3 7.9L6.96 8.31L6.4 9.14L7.46 9.8L5.28 8.54L5.03 8.48L4.78 8.58L4.63 8.79L4.62 9.05Z"/>
+</svg>
diff --git a/assets/icons/slots.tsv b/assets/icons/slots.tsv
new file mode 100644
index 0000000..d5e2720
--- /dev/null
+++ b/assets/icons/slots.tsv
@@ -0,0 +1,237 @@
+# Each interface icon's slot: the frame it is drawn in and the box its ink fills there (x0 y0 x1 y1),
+# measured where it is shown. An icon's drawing is scaled into its ink box, centred, keeping its proportions.
+name frame_w frame_h x0 y0 x1 y1
+fullscreen 50 50 9.98 11.95 40.03 37.02
+actions 44 44 11.7 11.67 32.34 32.28
+adjustments 44 44 13.09 11.88 31.09 32.24
+selection 44 44 11.75 11.75 32.25 32.24
+transform 44 44 14.22 14.3 29.7 29.79
+brush 44 44 7.9 9.56 36.1 34.5
+smudge 44 44 9.98 9.16 33.99 34.8
+erase 44 44 8.42 10.4 35.6 33.64
+layers 44 44 10.0 10.0 34.0 34.05
+undo 50 50 11.14 13.22 39.2 36.34
+redo 50 50 11.08 13.24 39.12 36.32
+transformreset 44 44 12.1 12.5 32.0 31.5
+selectcopypaste 44 44 9.01 13.8 35.0 30.2
+studioshape 50 50 15.98 15.98 34.02 34.0
+gesturecopypaste 50 50 14.45 11.98 36.0 36.5
+menunewbrush 40 40 10.1 8.7 29.67 30.9
+menunewset 40 40 10.02 13.02 33.35 28.5
+menushare 40 40 11.33 9.02 28.67 31.0
+menuchevron 40 40 17.44 14.39 24.01 25.6
+pieundo 50 50 6.3 11.26 39.69 36.74
+piereset 50 50 9.68 9.1 42.32 40.9
+shapeequilateral 28 28 8.21 7.93 19.83 18.64
+shapesquare 28 28 9.1 9.1 18.9 18.9
+copycut 50 50 4.46 4.66 45.1 45.27
+copyduplicate 50 50 11.0 12.35 38.8 40.28
+donetick 40 40 11.34 14.77 28.85 26.95
+add 40 40 9.51 9.54 30.49 30.49
+infoabout 50 50 11.03 10.98 39.03 38.97
+infodimensions 50 50 16.7 16.1 33.9 33.3
+infolayers 50 50 13.02 12.95 37.08 37.0
+infoprofile 50 50 11.85 11.0 36.1 36.0
+infovideo 50 50 15.95 19.95 33.99 30.05
+infostatistics 50 50 12.52 12.02 35.55 35.98
+keyboard 40 40 8.98 10.99 31.15 31.67
+textcut 40 40 6.04 6.35 32.99 33.26
+textcopy 40 40 9.33 7.62 30.62 32.37
+textpaste 40 40 9.33 7.65 30.7 32.38
+alignleft 32 32 6.0 7.0 26.0 25.0
+aligncenter 32 32 6.0 7.0 26.0 25.0
+alignright 32 32 6.0 7.0 26.0 25.0
+alignjustify 32 32 6.0 7.0 26.0 25.0
+textunderline 38 38 12.6 10.1 25.4 27.9
+textoutline 38 38 9.99 9.59 27.94 28.4
+textvertical 50 50 2.36 10.43 47.59 39.24
+set-0 40 40 10.53 10.5 30.37 30.15
+set-1 40 40 10.6 10.1 29.0 29.97
+set-2 40 40 11.81 11.0 28.2 29.0
+set-3 40 40 11.64 10.98 28.05 28.45
+set-4 40 40 13.0 11.0 26.01 28.87
+set-5 40 40 10.47 10.5 30.37 29.03
+set-6 40 40 12.06 10.17 27.61 29.2
+set-7 40 40 10.7 10.7 29.3 29.3
+set-8 40 40 10.88 13.7 29.07 26.35
+set-9 40 40 8.42 11.9 31.02 27.42
+set-10 40 40 11.26 8.89 31.33 28.9
+set-11 40 40 10.43 12.1 29.21 27.31
+set-12 40 40 11.5 11.5 28.5 28.48
+set-13 40 40 13.49 10.73 26.46 28.63
+set-14 40 40 11.56 10.5 30.37 29.34
+set-15 40 40 10.82 10.8 29.98 29.21
+set-16 40 40 8.46 13.2 32.02 26.88
+set-17 40 40 11.31 11.99 28.65 30.0
+set-18 40 40 13.4 10.53 27.32 29.62
+set-19 40 40 12.4 10.29 27.24 28.7
+set-20 40 40 11.96 12.15 27.7 27.87
+set-21 40 40 11.3 11.29 28.7 29.6
+set-22 40 40 10.51 10.79 29.48 29.17
+set-23 40 40 10.6 11.51 29.12 27.5
+set-24 40 40 10.82 11.2 29.18 29.3
+set-25 40 40 12.57 11.24 29.2 28.42
+set-26 40 40 10.73 10.2 27.25 29.58
+set-27 40 40 10.99 10.57 29.47 29.04
+set-28 40 40 12.18 11.16 29.3 28.58
+set-29 40 40 10.5 10.02 30.42 30.0
+set-30 40 40 8.54 12.0 31.49 28.0
+set-31 40 40 11.06 10.69 29.35 29.09
+set-32 40 40 11.1 11.1 28.9 28.9
+set-33 40 40 10.67 10.9 28.94 28.44
+set-34 40 40 10.37 10.42 29.63 29.6
+set-35 40 40 10.58 10.24 29.34 29.82
+set-36 40 40 10.33 10.56 29.67 29.86
+set-37 40 40 9.54 9.9 29.46 29.81
+set-38 40 40 11.03 11.1 28.97 29.1
+set-39 40 40 11.0 10.4 28.94 29.46
+set-40 40 40 10.0 9.95 29.99 29.98
+set-41 40 40 8.75 11.95 31.2 28.94
+set-42 40 40 14.16 11.08 26.11 30.02
+set-43 40 40 13.99 11.06 25.62 29.04
+set-44 40 40 11.4 9.97 30.61 27.34
+set-45 40 40 12.03 12.98 28.31 27.26
+set-46 40 40 10.38 11.0 29.1 29.47
+set-47 40 40 13.0 13.0 27.6 27.5
+copyone 50 50 2.36 10.43 47.59 39.24
+copyall 50 50 2.36 10.43 47.59 39.24
+cutpaste 50 50 11.06 12.38 40.2 40.32
+pastedown 50 50 2.36 10.43 47.59 39.24
+gestureassisted 50 50 14.0 11.45 37.53 37.55
+gestureeyedropper 50 50 12.99 12.02 38.01 37.0
+gesturequickshape 50 50 13.0 13.01 37.01 36.77
+gesturequickmenu 50 50 5.0 15.95 44.0 33.05
+gesturefullscreen 50 50 9.98 11.95 40.03 37.02
+gestureclearlayer 50 50 9.0 13.0 40.0 36.0
+gesturelayerselect 50 50 10.02 11.95 39.0 37.04
+gesturehover 40 40 14.79 7.25 25.24 32.78
+gesturegeneral 50 50 12.69 12.05 36.3 37.01
+modedisc 36 36 8.15 8.15 27.85 27.84
+modeclassic 36 36 9.85 9.93 26.1 26.14
+modeharmony 36 36 9.45 8.43 28.35 27.64
+modevalue 36 36 8.12 11.78 27.88 24.82
+modepalettes 36 36 8.09 11.6 27.9 24.4
+sweep 41 40 10.5 10.01 31.49 29.1
+cardcompact 21 32 1.4 9.3 19.6 22.7
+cardstack 21 32 0.4 8.3 19.6 23.65
+tabadd 50 50 14.35 14.63 35.3 35.0
+tabcanvas 50 50 11.72 14.48 38.77 33.68
+tabshare 50 50 16.02 9.3 34.38 34.32
+tabvideo 50 50 17.11 14.3 35.86 34.2
+tabprefs 50 50 10.06 14.9 40.08 32.87
+tabhelp 50 50 14.53 13.22 35.5 34.24
+folder-fill 24 24 3.0 5.0 21.0 19.5
+freeform 44 44 13.3 14.5 30.7 29.48
+uniform 44 44 13.23 14.45 30.77 29.55
+distort 44 44 13.23 14.45 30.77 29.52
+warp 44 44 11.98 14.49 32.0 29.5
+snapping 44 44 12.02 12.01 31.99 32.04
+fliphorizontal 50 50 14.87 16.28 34.14 34.0
+flipvertical 50 50 15.2 15.07 32.9 35.18
+rotate45 44 44 13.26 12.01 30.76 31.5
+fittocanvas 44 44 14.52 14.52 29.55 29.48
+interpolation 44 44 11.99 11.98 32.0 31.97
+adjusthsb 32 32 9.3 9.01 22.7 22.99
+adjustblur 32 32 8.03 8.0 23.98 24.0
+adjustbalance 32 32 8.54 8.52 23.5 23.5
+adjustcurves 32 32 9.0 9.02 23.0 22.98
+adjustgradient 32 32 8.5 8.52 23.5 23.5
+adjustmotion 32 32 9.0 9.0 23.0 22.98
+adjustperspective 32 32 9.1 9.0 22.9 23.0
+adjustnoise 32 32 8.73 8.99 23.26 23.02
+studiograin 50 50 18.0 18.0 32.0 32.0
+adjustsharpen 32 32 9.0 9.0 23.0 23.0
+adjustbloom 32 32 8.04 8.06 23.0 22.98
+adjustglitch 32 32 8.48 9.02 24.9 21.42
+adjusthalftone 32 32 9.02 8.02 23.5 23.94
+adjustchromatic 32 32 7.1 9.5 24.9 22.5
+adjustliquify 32 32 8.0 8.22 24.11 22.9
+adjustclone 32 32 7.99 10.98 23.82 21.0
+disclose 32 32 8.53 12.3 17.94 19.24
+noiseclouds 50 50 7.96 11.03 43.21 39.0
+noisebillows 50 50 9.3 8.77 41.7 41.29
+noiseridges 50 50 11.0 11.0 39.0 39.02
+halftonefull 50 50 8.4 10.9 42.7 39.0
+halftonescreen 50 50 8.2 7.1 42.1 40.9
+halftonenews 50 50 9.85 11.0 36.5 39.02
+chromaperspective 50 50 15.5 14.3 34.5 35.7
+chromadisplace 50 50 11.0 11.0 39.0 39.01
+guidegrid 50 50 11.5 14.0 40.5 34.0
+guideisometric 50 50 15.5 14.3 34.5 35.7
+guidesymmetry 50 50 9.98 14.0 39.0 35.0
+shapeline 28 28 8.44 8.59 17.69 19.48
+shapepolyline 28 28 10.06 7.02 18.91 20.98
+shapearc 28 28 8.01 10.5 20.0 17.5
+shapeellipse 28 28 7.51 9.06 20.5 18.9
+shapecircle 28 28 8.1 8.08 19.94 19.94
+shapetriangle 28 28 7.38 9.07 20.66 19.14
+shapequad 28 28 7.35 9.0 20.6 19.0
+shaperect 28 28 7.72 9.0 20.27 19.0
+studiostroke 50 50 14.49 16.25 36.14 37.35
+studiostabilize 50 50 16.68 16.54 33.61 33.39
+studiotaper 50 50 13.49 20.24 37.22 30.09
+studiorendering 50 50 15.0 15.0 36.74 33.84
+studiowet 50 50 18.82 15.3 30.51 33.01
+studiocolor 50 50 16.58 16.69 33.42 33.47
+studiodynamics 50 50 14.43 16.05 36.6 33.2
+studiostylus 50 50 16.56 16.58 33.46 33.44
+studioproperties 50 50 17.86 19.05 31.71 28.71
+studiomaterials 50 50 13.02 11.8 37.64 38.32
+studiopreview 50 50 15.6 18.0 34.35 31.97
+studioabout 50 50 16.68 16.54 33.61 33.39
+grainmoving 50 50 10.9 11.0 38.92 39.0
+graintexturized 50 50 11.0 11.0 39.0 39.0
+glitchartifact 50 50 3.4 11.0 45.4 39.0
+glitchwave 50 50 11.0 11.02 39.0 39.0
+glitchsignal 50 50 11.58 10.49 39.58 38.51
+glitchdiverge 50 50 9.0 12.1 40.0 37.9
+brushpaintedon 50 50 6.3 13.29 36.71 37.23
+modelayer 27 32 0.0 9.9 20.04 22.2
+modepencil 24 32 0.0 9.6 16.1 22.38
+adjustknob 50 50 13.03 13.98 38.35 34.99
+apply 50 50 2.36 10.43 47.59 39.24
+preview 50 50 2.1 10.44 46.93 39.24
+canceladjust 50 50 10.02 8.85 41.96 40.8
+automatic 44 44 13.0 12.8 31.0 31.2
+freehand 44 44 12.97 13.56 30.97 30.4
+rectangleshape 44 44 13.05 15.55 30.95 28.45
+ellipseshape 44 44 13.01 15.57 31.0 28.46
+selectadd 44 44 9.68 13.72 34.32 30.19
+selectremove 44 44 9.68 13.72 34.32 30.19
+invert 44 44 13.33 14.0 30.67 30.0
+feather 44 44 11.0 11.02 33.0 32.97
+saveload 44 44 11.32 12.99 32.65 30.91
+colorfill 44 44 12.99 11.87 31.0 32.1
+clearselection 44 44 11.52 12.42 32.5 31.54
+blend-multiply 26 26 5.72 4.2 21.92 20.4
+blend-darken 26 26 7.88 4.77 21.08 20.45
+blend-shade 26 26 4.02 3.52 22.98 22.5
+blend-color-burn 26 26 7.56 4.8 21.47 20.5
+blend-linear-burn 26 26 9.7 4.85 19.04 19.74
+blend-darker-color 26 26 5.77 4.85 21.77 20.85
+blend-normal 26 26 5.72 4.7 21.92 20.9
+blend-lighten 26 26 4.07 2.81 23.67 22.91
+blend-screen 26 26 5.82 4.6 22.02 20.8
+blend-color-dodge 26 26 5.96 4.95 21.64 20.59
+blend-add 26 26 5.72 4.7 21.92 20.9
+blend-lighter-color 26 26 5.77 4.35 21.77 20.35
+blend-overlay 26 26 5.87 4.15 21.47 20.35
+blend-soft-light 26 26 7.87 4.25 19.17 21.33
+blend-hard-light 26 26 7.88 4.26 19.17 21.33
+blend-vivid-light 26 26 7.78 4.16 19.27 21.33
+blend-linear-light 26 26 7.88 4.26 19.17 21.33
+blend-pin-light 26 26 7.89 4.25 19.17 21.33
+blend-hard-mix 26 26 7.46 4.1 20.44 20.1
+blend-difference 26 26 5.57 4.2 21.77 20.4
+blend-exclusion 26 26 5.4 4.17 21.8 20.48
+blend-subtract 26 26 5.72 4.2 21.92 20.4
+blend-divide 26 26 5.57 4.2 21.77 20.4
+blend-hue 26 26 5.67 4.47 21.73 20.53
+blend-saturation 26 26 6.14 4.52 21.48 20.1
+blend-color 26 26 6.02 4.12 21.98 20.08
+blend-luminosity 26 26 5.15 4.7 22.14 21.69
+blend-behind 26 26 5.16 6.47 22.99 20.25
+blend-height 26 26 5.57 4.2 21.77 20.4
+blend-linear-height 26 26 5.72 4.2 21.92 20.4
+swipe-share 24 24 5.5 3.8 18.5 21.0
+swipe-duplicate 24 24 4.0 4.0 20.0 20.0
diff --git a/docs/icons/STYLE_GUIDE.md b/docs/icons/STYLE_GUIDE.md
new file mode 100644
index 0000000..d9a4218
--- /dev/null
+++ b/docs/icons/STYLE_GUIDE.md
@@ -0,0 +1,52 @@
+# ProCraft icon style guide
+
+The rules for ProCraft's own interface icons. Until an icon has its own drawing, it uses Phosphor's
+(Fill weight); `LucideIcons` keeps the Lucide set beside them. Our drawings replace Phosphor's one
+by one.
+
+## Where an icon comes from
+
+- **Draw from the idea, never from another app's icon.** Start from what the control does ("a
+ wrench", "a brush", "two stacked sheets") and build it from this guide's shapes. Don't trace,
+ redraw, adapt or work beside another app's glyph, and don't feed one to a tool.
+- **What we match is the slot, not the drawing.** Each icon's frame, its ink box in that frame
+ (where and how big it sits), its colour and its states are measured facts, kept in
+ [`assets/icons/slots.tsv`](../../assets/icons/slots.tsv). An icon fills its slot's ink box;
+ nothing else about the old glyph is used.
+- **A distinctive mark gets our own idea.** Where a control's usual picture is one app's own
+ invention rather than a common metaphor, pick a different, plain idea.
+- **Every drawing is recorded.** Its master SVG lives in `assets/icons/procraft/`, it is made by
+ `tools/icons/draw_icons.py`, and it has a line in `ATTRIBUTION.md` as original work.
+
+## Grid and shapes
+
+- A 24-unit square; the drawing stays inside the live area 2 to 22. It is then scaled into its
+ slot's ink box, keeping its proportions and centring it there.
+- Solid, filled shapes in one colour (white; the interface tints it, blue when chosen). No
+ outlines-only icons, gradients, shadows or text.
+- Built from plain geometry: circles, capsules (a line with round ends), rounded rectangles,
+ triangles with rounded corners, arcs. Outer corners are rounded by 1 unit, inner ones by 0.5.
+- Details are knockouts: gaps cut through a shape, 1.2 units wide (1 for small parts). Nothing
+ solid is thinner than 1.6 units, so it survives at 22 px.
+- Long tools (brush, pencil, wand) lie on the diagonal from lower left to upper right, writing
+ end down.
+
+## Weight
+
+- A square-ish icon's ink box is about 18 units across; a diagonal tool runs about 20.
+- Line-like parts (capsules, arcs, arrows) are 2.4 units thick; small accents (sparkles, dots)
+ 1.6 to 3 units across.
+
+## The bar (first drawings)
+
+| Control | Idea |
+|---|---|
+| Actions | an open-end wrench with a hole in its handle |
+| Adjustments | a wand with a banded tip and three sparkles |
+| Selection | a selection's four corner marks around a solid square |
+| Transform | a solid arrow pointing up and to the right |
+| Paint | a round brush: handle, ferrule, bristles |
+| Smudge | a fingertip pressing on a smear |
+| Erase | an eraser block with a band, on a line |
+| Layers | two stacked sheets, the top one solid |
+| Undo / Redo | a curved arrow turning back / forward |
diff --git a/tools/icons/draw_icons.py b/tools/icons/draw_icons.py
new file mode 100644
index 0000000..3b10f85
--- /dev/null
+++ b/tools/icons/draw_icons.py
@@ -0,0 +1,204 @@
+"""Draws ProCraft's own interface icons from plain geometry (docs/icons/STYLE_GUIDE.md) and puts them
+in place: an SVG master per icon (assets/icons/procraft/<name>.svg, a 24-unit grid), and its path
+data, scaled into its slot (assets/icons/slots.tsv), in Icons.kt instead of the Phosphor icon.
+Needs shapely. Run from anywhere:
+
+ python tools/icons/draw_icons.py
+"""
+
+import math
+import os
+import re
+
+from shapely.affinity import rotate, translate
+from shapely.geometry import LineString, Point, Polygon, box
+from shapely.ops import unary_union
+
+ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+MASTERS = os.path.join(ROOT, 'assets', 'icons', 'procraft')
+SLOTS = os.path.join(ROOT, 'assets', 'icons', 'slots.tsv')
+ICONS = os.path.join(ROOT, 'apps', 'procraft-android', 'android', 'app', 'src', 'main', 'java', 'io', 'github',
+ 'artcraftandroid', 'procraft', 'ui', 'Icons.kt')
+
+GAP = 1.2 # a knockout's width
+SQ2 = math.sqrt(0.5)
+
+
+def capsule(a, b, r):
+ """A line from a to b, r thick each side, with round ends."""
+ return LineString([a, b]).buffer(r, quad_segs=16)
+
+
+def soft(shape, r=0.4):
+ """`shape` with its corners rounded by r."""
+ return shape.buffer(-r, quad_segs=8).buffer(r, quad_segs=8)
+
+
+def gap_across(at, direction, length):
+ """A knockout across a part at `at`, at right angles to `direction`."""
+ nx, ny = -direction[1], direction[0]
+ a = (at[0] - nx * length / 2, at[1] - ny * length / 2)
+ b = (at[0] + nx * length / 2, at[1] + ny * length / 2)
+ return LineString([a, b]).buffer(GAP / 2, cap_style='flat')
+
+
+def star(cx, cy, r, inner=0.3):
+ """A four-pointed sparkle."""
+ points = []
+ for k in range(8):
+ a = math.pi / 4 * k - math.pi / 2
+ rr = r if k % 2 == 0 else r * inner
+ points.append((cx + rr * math.cos(a), cy + rr * math.sin(a)))
+ return Polygon(points).buffer(0.15, quad_segs=6)
+
+
+def along_diagonal(shape, tip):
+ """A drawing made along +x (its writing end at 0) turned to run up and to the right from `tip`."""
+ return translate(rotate(shape, -45, origin=(0, 0)), tip[0], tip[1])
+
+
+def wrench():
+ """Actions: an open-end wrench with a hole in its handle."""
+ head = (15.5, 8.5)
+ shape = unary_union([Point(head).buffer(5.0, quad_segs=16), capsule(head, (5.5, 18.5), 1.9)])
+ jaw = capsule(head, (head[0] + SQ2 * 8, head[1] - SQ2 * 8), 1.7)
+ hole = Point(7.4, 16.6).buffer(0.85, quad_segs=12)
+ return soft(shape.difference(jaw).difference(hole), 0.35)
+
+
+def wand():
+ """Adjustments: a wand with a banded tip and three sparkles."""
+ shaft = capsule((4.5, 19.5), (15.0, 9.0), 1.5).difference(gap_across((12.6, 11.4), (SQ2, -SQ2), 6))
+ return unary_union([shaft, star(18.6, 5.2, 3.3), star(11.2, 4.0, 2.0), star(20.2, 11.8, 1.8)])
+
+
+def selection():
+ """Selection: a selection's four corner marks around a solid square."""
+ marks = []
+ for (cx, cy), (dx, dy) in (((3.5, 3.5), (1, 1)), ((20.5, 3.5), (-1, 1)), ((3.5, 20.5), (1, -1)), ((20.5, 20.5), (-1, -1))):
+ marks.append(capsule((cx, cy), (cx + 5 * dx, cy), 1.1))
+ marks.append(capsule((cx, cy), (cx, cy + 5 * dy), 1.1))
+ inside = soft(box(8.6, 8.6, 15.4, 15.4), 1.0)
+ return unary_union(marks + [inside])
+
+
+def arrow():
+ """Transform: a solid arrow pointing up and to the right."""
+ shaft = capsule((0, 0), (9.0, 0), 1.3)
+ head = soft(Polygon([(7.0, -5.0), (15.6, 0), (7.0, 5.0)]), 0.6)
+ shape = unary_union([shaft, head])
+ return along_diagonal(translate(shape, -7.8, 0), (12.0, 12.0))
+
+
+def paintbrush():
+ """Paint: a round brush, its bristles down to the left."""
+ bristles = unary_union([Point(5.6, 0).buffer(3.1, quad_segs=16), Point(0, 0).buffer(0.2)]).convex_hull
+ ferrule = soft(box(9.6, -2.3, 12.4, 2.3), 0.4)
+ handle = unary_union([Polygon([(13.2, -1.5), (21.6, -1.0), (21.6, 1.0), (13.2, 1.5)]),
+ Point(21.6, 0).buffer(1.0, quad_segs=12)])
+ return along_diagonal(unary_union([soft(bristles, 0.3), ferrule, handle]), (4.0, 20.0))
+
+
+def fingertip():
+ """Smudge: a fingertip pressing on a smear."""
+ finger = capsule((14.6, 2.6), (10.0, 12.4), 3.4)
+ crease = gap_across((12.9, 6.2), (-0.42, 0.91), 8)
+ finger = finger.difference(crease)
+ wave = LineString([(3.8 + 16.4 * t, 19.4 - 1.4 * math.sin(t * 2 * math.pi)) for t in [i / 40 for i in range(41)]])
+ return unary_union([finger, wave.buffer(1.3, quad_segs=10)])
+
+
+def eraser():
+ """Erase: an eraser block with a band, on a line."""
+ block = soft(box(0, -3.8, 14.5, 3.8), 1.2).difference(box(4.6, -5, 4.6 + GAP, 5))
+ block = translate(rotate(translate(block, -7.25, 0), -45, origin=(0, 0)), 12.0, 10.4)
+ line = capsule((3.5, 20.8), (20.5, 20.8), 1.0)
+ return unary_union([block, line])
+
+
+def layers():
+ """Layers: two stacked sheets, the top one solid."""
+ top = soft(Polygon([(12, 2.6), (21.4, 8.4), (12, 14.2), (2.6, 8.4)]), 1.0)
+ under = LineString([(2.8, 14.2), (12, 19.9), (21.2, 14.2)]).buffer(1.2, quad_segs=10)
+ return unary_union([top, under])
+
+
+def turning_arrow(mirror):
+ """Undo (or, mirrored, Redo): a curved arrow turning back."""
+ cx, cy, r = 13.0, 13.0, 6.4
+ angles = [math.radians(-150 + 260 * i / 64) for i in range(65)]
+ arc = LineString([(cx + r * math.cos(a), cy + r * math.sin(a)) for a in angles]).buffer(1.25, cap_style='flat')
+ arc = arc.union(Point(cx + r * math.cos(angles[-1]), cy + r * math.sin(angles[-1])).buffer(1.25, quad_segs=10))
+ a = angles[0]
+ sx, sy = cx + r * math.cos(a), cy + r * math.sin(a)
+ back = (math.sin(a), -math.cos(a))
+ normal = (math.cos(a), math.sin(a))
+ tip = (sx + back[0] * 3.6, sy + back[1] * 3.6)
+ head = soft(Polygon([tip, (sx + normal[0] * 3.6, sy + normal[1] * 3.6), (sx - normal[0] * 3.6, sy - normal[1] * 3.6)]), 0.45)
+ shape = unary_union([arc, head])
+ if mirror:
+ from shapely.affinity import scale
+ shape = scale(shape, -1, 1, origin=(12, 12))
+ return shape
+
+
+DRAWINGS = {
+ 'actions': wrench, 'adjustments': wand, 'selection': selection, 'transform': arrow,
+ 'brush': paintbrush, 'smudge': fingertip, 'erase': eraser, 'layers': layers,
+ 'undo': lambda: turning_arrow(False), 'redo': lambda: turning_arrow(True),
+}
+
+
+def fmt(v):
+ s = f'{v:.2f}'.rstrip('0').rstrip('.')
+ return '0' if s in ('-0', '') else s
+
+
+def path_data(shape, fit=lambda x, y: (x, y)):
+ """Path data (even-odd) for every outline and hole of `shape`, through `fit`."""
+ polygons = getattr(shape, 'geoms', [shape])
+ d = []
+ for poly in polygons:
+ for ring in [poly.exterior, *poly.interiors]:
+ pts = [fit(x, y) for x, y in ring.coords[:-1]]
+ d.append('M' + 'L'.join(f'{fmt(x)} {fmt(y)}' for x, y in pts) + 'Z')
+ return ''.join(d)
+
+
+def slots():
+ out = {}
+ for line in open(SLOTS, encoding='utf-8'):
+ if line.startswith('#') or line.startswith('name'):
+ continue
+ name, w, h, x0, y0, x1, y1 = line.rstrip('\n').split('\t')
+ out[name] = (float(w), float(h), (float(x0), float(y0), float(x1), float(y1)))
+ return out
+
+
+def main():
+ os.makedirs(MASTERS, exist_ok=True)
+ places = slots()
+ src = open(ICONS, encoding='utf-8', newline='').read()
+ for name, draw in DRAWINGS.items():
+ shape = draw().simplify(0.02)
+ with open(os.path.join(MASTERS, f'{name}.svg'), 'w', encoding='utf-8', newline='\n') as f:
+ f.write('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n'
+ f' <!-- ProCraft {name} icon: original, drawn by tools/icons/draw_icons.py. MIT OR Apache-2.0. -->\n'
+ f' <path fill="currentColor" fill-rule="evenodd" d="{path_data(shape)}"/>\n</svg>\n')
+ w, h, (x0, y0, x1, y1) = places[name]
+ bx0, by0, bx1, by1 = shape.bounds
+ s = min((x1 - x0) / (bx1 - bx0), (y1 - y0) / (by1 - by0))
+ ox = (x0 + x1) / 2 - s * (bx0 + bx1) / 2
+ oy = (y0 + y1) / 2 - s * (by0 + by1) / 2
+ d = path_data(shape, lambda x, y: (ox + s * x, oy + s * y))
+ frame = f'{fmt(w)}f' if w == h else f'{fmt(w)}f, {fmt(h)}f'
+ call = re.compile(r'(?:phosphor|ours)\("' + re.escape(name) + r'", [^\n]*?\)(?= \})')
+ src, n = call.subn(f'ours("{name}", {frame}, "{d}")', src)
+ if n != 1:
+ raise SystemExit(f'{name}: {n} places in Icons.kt')
+ open(ICONS, 'w', encoding='utf-8', newline='').write(src)
+ print(f'{len(DRAWINGS)} icons drawn')
+
+
+if __name__ == '__main__':
+ main()