16 lines
1.6 KiB
Markdown
16 lines
1.6 KiB
Markdown
|
|
# Preview art
|
||
|
|
|
||
|
|
`preview.html` renders `About/Preview.png` (1280x720) and `icon.html` renders `About/ModIcon.png` (256x256) from `icon.svg`. Both follow the Blax CI from https://www.blax.at/ui-ci and match Blax Slaves' art, so the mods read as one label: Blax black `#050805`, Blax green `#19C63C`, logo gray `#CDCDCD`, Geist for the title and subtitle. `geist.woff2` is the file blax.at self-hosts (SIL Open Font License); icons are lucide (ISC license).
|
||
|
|
|
||
|
|
The preview's right column shows three join rows (new colonist, bought slave, new prisoner), each pointing at the policy bundle its caste sets: apparel, food, drugs, reading and medical care. Green slots are managed, gray ones are left alone. The icon is the Blax monogram with a green "layers" badge, so it stands apart from Blax Slaves' plain monogram in the mod list.
|
||
|
|
|
||
|
|
Render with Edge headless from this folder. The separate profile folder keeps the headless run away from an open Edge window, and `| Out-Null` waits for each screenshot.
|
||
|
|
|
||
|
|
```powershell
|
||
|
|
$edge = 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe'
|
||
|
|
$here = (Get-Location).Path -replace '\\','/'
|
||
|
|
$edgeData = "$env:TEMP\blax-art-edge"
|
||
|
|
& $edge --headless=new --disable-gpu --hide-scrollbars --user-data-dir="$edgeData" --virtual-time-budget=3000 --window-size=1280,720 --screenshot="$PWD\..\..\About\Preview.png" "file:///$here/preview.html" | Out-Null
|
||
|
|
& $edge --headless=new --disable-gpu --hide-scrollbars --user-data-dir="$edgeData" --virtual-time-budget=2000 --window-size=256,256 --default-background-color=00000000 --screenshot="$PWD\..\..\About\ModIcon.png" "file:///$here/icon.html" | Out-Null
|
||
|
|
```
|