Stone & wood pixel-art surfaces for panel/frame backgrounds #161
Labels
No labels
bug
campaign-editor-ui
dependencies
design
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
javascript
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/chess-tactics#161
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Replace the flat blue/navy panel fills (
.settings-frame,.app-titlebar.settings-header-frame, and the other framed surfaces) with stone and wood pixel-art surfaces. Wood & stone are core to the app's material language (lore / background-art-contract), the shell is meant to read as "muted steel/slate," and chrome must be low-fi pixel art (ADR-0014). New ADR-0025 (world-scene/anti-story lore) may also bear on direction.Key technical finding (the hard part)
You can't just drop a texture behind the existing kit 9-slice frames.
panel.pngis authored as a complete navy panel — gold only at the corners, navy baked into the edge and center slices. Dropping thefillkeyword removes only the center navy; the edge slices still paint a navy ring over the texture.Solution: split it into two layers — a transparent-interior frame (gold ornament only) as the
border-image, and the texture as a separatebackgroundbehind it (border-box origin so it fills to the edge). Both flex in width and height; one frame works for every material. Addedframes/panel-corners.pngandframes/panel-line.png(corners-only vs corners+thin gold line).Approaches explored
Open decisions / TODO
background-size: coverupscales them ~1.5× (looks "zoomed"). Fix by generating/sizing textures to the target width.kit-forge/forge-atomvs the sharedcodex-imagegen.mjshelper)Review harness
/surface-review.html(worktree dev server) loads the real/settingspage and toggles approach / material / zoom / frame live.