The top menu strip is now the window's title bar wherever the app draws the frame (crates/ui-egui/src/titlebar.rs), using craft-window for the decision and for the draggable empty area: - Windows: no OS frame. App icon at the very left, the menus, empty space that moves the window (double-click maximizes), the mode label, then minimize, maximize/restore and close (46 pt wide, crisp pixel-snapped glyphs, close turns red on hover, dimmed while inactive). Invisible edge and corner zones resize the window. A per-frame guard ported from VectorCraft keeps the undecorated window borderless and a maximized one clear of the taskbar (winsafe, no unsafe), and the taskbar gets the big app icon. - macOS: the traffic lights over the strip (full-size content view, hidden title), centred on it with eframe's traffic-light API, the app icon after their inset, and AppKit's movable flag synced by craft-window. - Linux and the BSDs: craft-window's probe decides; where the compositor leaves the frame to the app (GNOME) the strip draws the buttons in the desktop's button layout. - Wherever the system draws the frame (and on the web) the strip stays the menu bar, with the app icon at its left. No line under the strip. TEXTURECRAFT_TITLEBAR=app|system overrides the decision. Settings › Interface › System title bar (applies on restart) brings the OS frame back; it is read from the saved settings before the window opens and is settable over the control channel as prefs.system_title_bar. ui.inspect reports titleBar. New strings are translated in every language, and the offscreen snapshots render the app-drawn and macOS variants.
TextureCraft app icon
Creature: an engraved zebra, TextureCraft's mascot.
Style: an engraving-style portrait in the Crafting Apps owl template (the FilmCraft owl): a tight head-and-shoulders portrait on a full-bleed field, no frame or roundel, with the body running off the tile.
Palette (exactly three colours):
| Colour | Hex | Used for |
|---|---|---|
| Ink | #0b0b0c |
line work and contour |
| Paper | #efe9dc |
the figure |
| TextureCraft copper | #c2672b |
the full-bleed field; also the default UI accent "Copper" (crates/ui-egui/src/theme.rs) |
Tile: viewBox="0 0 512 512", a rounded square with rx=112, clipped. The macOS .icns adds
Apple's transparent margin (tile = 824/1024 of the canvas); Windows and Linux use the tile edge to edge.
Provenance: the owner's original ArtCraft drawing (2048 px), vectorised with
craftrules assets/logo-options/_tools/vectorize_tile.py. The drawing is kept in craftrules at
craftrules/assets/app-icons/texturecraft/source.png, not here. texturecraft.svg is the canonical
artwork. Licence: see LICENSE.txt.
Files
| File | What | Used by |
|---|---|---|
texturecraft.svg |
master vector (traced at 2048 px, about 840 KB) | source for everything below |
texturecraft-small.svg |
lighter vector (traced at 1024 px, about 240 KB) | hicolor/scalable |
texturecraft-1024.png |
full tile, 1024 px | docs, store listings |
texturecraft.icns |
macOS icon set, 16 to 1024 px | packaging/macos/package.sh (CFBundleIconFile) |
texturecraft.ico |
Windows icon, 16 to 256 px | apps/texturecraft/build.rs (embedded in the .exe), the MSI (packaging/windows/package.ps1) |
hicolor/<size>/apps/ai.storyteller.texturecraft.png |
Linux theme icons, 16 to 512 px; the 256 one is also the runtime window and taskbar icon (apps/texturecraft/src/main.rs) and the README icon, and the 16 to 64 px ones the icon at the left of the title bar (crates/ui-egui/src/titlebar.rs) |
packaging/linux/ai.storyteller.texturecraft.desktop |
hicolor/scalable/apps/ai.storyteller.texturecraft.svg |
Linux scalable icon | as above |
How it reaches each OS
- macOS: the app sets the Dock / app-switcher icon at runtime (
ViewportBuilder::with_icon); the.appfrompackaging/macos/package.shcarriestexturecraft.icns. - Windows:
build.rsembedstexturecraft.icoand VERSIONINFO withwinresource(taskbar, Start menu, Explorer, Alt-Tab); the runtime icon covers the window and taskbar, and the MSI uses the same.icofor its shortcuts. - Linux and FreeBSD: the packages install
packaging/linux/ai.storyteller.texturecraft.desktoptoshare/applications/andhicolor/toshare/icons/; the AppImage and Flatpak carry the same files.
Regenerate
Edit or replace texturecraft.svg (and texturecraft-small.svg), then run packaging/icons.sh
(needs resvg). It writes every PNG, the .ico (via cargo xtask ico) and the .icns (via
cargo xtask icns).
To trace a new drawing, use craftrules' vectoriser as the other Crafting Apps did (needs numpy, pillow and potracer):
OPT=0.4 DP=1 python3 vectorize_tile.py source.png '#c2672b' 2048 2 texturecraft.svg
OPT=1.0 DP=0 python3 vectorize_tile.py source.png '#c2672b' 1024 4 texturecraft-small.svg