mirror of
https://github.com/storytold/gridcraft.git
synced 2026-12-01 18:26:05 -06:00
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch. Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
66 lines
3.2 KiB
Markdown
66 lines
3.2 KiB
Markdown
# GridCraft app icon (PLACEHOLDER)
|
||
|
||
**This icon is temporary.** Every Crafting App's icon is an engraved creature portrait that the
|
||
product owner makes; GridCraft's hasn't been made yet.
|
||
Until it is, this placeholder stands in: a simple ledger page with a header row, a row-number
|
||
column, a selected cell with its fill handle and a double rule under a total, on a full-bleed
|
||
GridCraft-green tile. It is original geometry written by hand for this repository, deliberately
|
||
not modelled on any vendor's spreadsheet logo (no letters, no "X", no overlapping panels).
|
||
|
||
When the owner's art arrives, replace `gridcraft.svg`, run `packaging/icons.sh`, update this
|
||
README (provenance, creature) and the rows in `ATTRIBUTION.md`, and drop the word placeholder.
|
||
|
||
## Palette
|
||
|
||
Exactly three colours:
|
||
|
||
| Colour | Hex | Used for |
|
||
|---|---|---|
|
||
| Ink | `#0b0b0c` | Line work and contour |
|
||
| Paper | `#efe9dc` | The page |
|
||
| GridCraft green (app colour, **proposed**) | `#1f9d55` | The full-bleed field and the header cells |
|
||
|
||
The app colour is a proposal pending the owner's approval: GridCraft green `#1f9d55`, with ink
|
||
(darker) variant `#147a40` for text and accents on light backgrounds. It differs from
|
||
DesignCraft's `#7bb51c`.
|
||
|
||
## Geometry
|
||
|
||
A 512 × 512 viewBox, clipped to a rounded square with `rx=112`. Windows and Linux use the full
|
||
tile. The macOS icons (`.icns`, `gridcraft-macos-512.png`) sit on Apple's grid: an 824/1024
|
||
body with a transparent margin.
|
||
|
||
## Files
|
||
|
||
| File | Use |
|
||
|---|---|
|
||
| `gridcraft.svg` | Canonical artwork; also `hicolor/scalable` |
|
||
| `gridcraft-1024.png` | 1024 px render of the full tile |
|
||
| `gridcraft-macos-512.png` | Runtime Dock icon on macOS (for `apps/gridcraft` to embed) |
|
||
| `gridcraft.icns` | macOS bundle icon (`CFBundleIconFile`) |
|
||
| `gridcraft.ico` | Windows exe icon, 16–256 px (embedded by `apps/gridcraft/build.rs`) |
|
||
| `hicolor/<size>/apps/ai.storyteller.gridcraft.png` | Linux icon theme, 16–512 px; the 256 px one is also the runtime window icon on Windows and Linux |
|
||
| `hicolor/scalable/apps/ai.storyteller.gridcraft.svg` | Linux scalable icon |
|
||
| `LICENSE.txt` | MIT OR Apache-2.0 |
|
||
|
||
The app ID is `ai.storyteller.gridcraft`. It's used for the hicolor icon names, the Wayland app
|
||
ID and `packaging/linux/ai.storyteller.gridcraft.desktop`.
|
||
|
||
## Regenerate
|
||
|
||
Edit `gridcraft.svg`, then run `packaging/icons.sh`. It needs `resvg`, and `iconutil` for the
|
||
`.icns` (macOS only). It packs the `.ico` with `cargo xtask ico`.
|
||
|
||
## Nightly channel
|
||
|
||
The nightly (`nightly-v1`) derivatives keep the artwork, geometry and the Mac padding unchanged and
|
||
change only the field colour: `#1f9d55` in the stable icon, `#14532d` in
|
||
`gridcraft-nightly.svg`. There is no letter, badge or crescent; the app and the Launcher name the
|
||
channel in text (`GridCraft Nightly`, the `ai.storyteller.gridcraft.nightly-v1` window id).
|
||
|
||
`gridcraft-nightly.svg` is the vector master. `packaging/nightly-icons.py` renders every frame from
|
||
it at its own size (never an upscale) and packs the nine-frame ICO and the eleven-slot ICNS; it
|
||
uses `resvg` when present, else a headless Chrome. Each output's SHA-256, the palette and the
|
||
method are recorded in [`nightly-provenance.json`](nightly-provenance.json), and
|
||
`python3 packaging/nightly-icons.py --check` verifies the committed files still match it.
|