hex/packaging/macos/dmg/background.html
Kit Langton 8184e51aed
macOS: lay out the installer window with Hex's keycap (#297)
* macOS: lay out the installer window with Hex's keycap (t423)

The DMG opens on a light window with Hex, an arrow to Applications, and Hex's own dark Option keycap beside "Hold it, say it, done." packaging/macos/dmg holds the background (1x and 2x TIFF), Finder's .DS_Store, and render.sh, which draws the keycap with Rune and regenerates both. scripts/notarize-app.sh lays out the local DMG with them; the Release workflow's DMG follows in a separate .github/ PR.

* Show the whole background: the window height includes its title bar

* Follow the hex rename; satisfy clippy
2026-10-28 12:03:13 -07:00

24 lines
1.3 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<!-- The installer window's background, 660×400 pt. render.sh draws it at 1×
and 2× into background.tiff. Finder draws the icons and their labels on
top: Hex at (170, 178), Applications at (490, 178), 128 pt. -->
<html><head><meta charset="utf-8"><style>
html,body{margin:0;width:660px;height:400px;overflow:hidden}
body{background:linear-gradient(#f7f7f5,#efefec);font-family:-apple-system,system-ui,sans-serif;position:relative}
svg{position:absolute;inset:0}
.row{position:absolute;left:0;right:0;top:292px;height:72px;display:flex;justify-content:center;align-items:center;gap:6px}
/* Hex's own keycap (src/rune_ui/dmg_keycap.rs): a 56×48 pt canvas at 1.5×, the key centred in it. */
.row img{width:84px;height:72px;display:block;margin:0 -8px 0 -19px}
.line{font-size:16px;color:#2a2a2e;font-weight:600;letter-spacing:.005em;padding-bottom:2px}
</style></head><body>
<svg width="660" height="400" viewBox="0 0 660 400">
<g fill="none" stroke="#b4b4b9" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M268 178 H392"/>
<path d="M382 170 L392 178 L382 186"/>
</g>
</svg>
<div class="row">
<img srcset="keycap@1x.png 1x, keycap@2x.png 2x" alt="">
<div class="line">Hold it, say it, done.</div>
</div>
</body></html>