Give Horizon a mark, and its icon everywhere

The mark is an H whose crossbar is the horizon: a violet line edge to edge, the stems above it
and their reflection below at a third, on whole units of a 16-unit grid so it stays sharp at
16 px. docs/media/brand holds the SVG masters (square icon, macOS tile, avatars, the mark for
light and dark backgrounds), the two alternatives that were shown with it, the GitHub social
preview and the Discord banner, and a README of what goes where and how to upload what only
Ludovic's accounts can.

`cargo run -p xtask -- icons` renders the masters (rsvg-convert) and packs, in plain Rust:
packaging/icons/horizon.ico and horizon.icns, Linux's hicolor icons 16–512 and the scalable
SVG, the game's run-time window icon, the avatars and the website's favicons.
packaging/linux has .desktop entries for the launcher and the game.

On Windows, build.rs embeds the .ico as icon resource 1 in horizon-client (and its tools) and
horizon-launcher (winresource, a Windows-only build dependency); gpui loads that resource as
the launcher's window icon. The game window sets the icon itself (X11, Windows) and names
itself `horizon` on Wayland so the desktop entry matches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-14 19:59:44 +02:00
parent 7d26cb0a5b
commit fcbbff26a7
46 changed files with 461 additions and 61 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 733 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 424 B

+6 -58
View File
@@ -1,62 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<title>Horizon</title>
<defs>
<linearGradient id="sky" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#0A0F2C"/>
<stop offset="0.38" stop-color="#26206A"/>
<stop offset="0.62" stop-color="#7C3A88"/>
<stop offset="0.78" stop-color="#EE6E5A"/>
<stop offset="0.9" stop-color="#FFB25E"/>
</linearGradient>
<linearGradient id="sun" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#FFF6CF"/>
<stop offset="0.5" stop-color="#FFD272"/>
<stop offset="1" stop-color="#FF9A44"/>
</linearGradient>
<radialGradient id="glow" cx="0.5" cy="0.6" r="0.55">
<stop offset="0" stop-color="#FFC874" stop-opacity="0.6"/>
<stop offset="0.6" stop-color="#FF8A5C" stop-opacity="0.12"/>
<stop offset="1" stop-color="#FF8A5C" stop-opacity="0"/>
</radialGradient>
<linearGradient id="far" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#4A2F7E"/>
<stop offset="1" stop-color="#2B1F5E"/>
</linearGradient>
<linearGradient id="near" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#151A45"/>
<stop offset="1" stop-color="#080B22"/>
</linearGradient>
<clipPath id="tile"><rect width="512" height="512" rx="112"/></clipPath>
<clipPath id="sunCut"><rect x="0" y="0" width="512" height="352"/></clipPath>
<clipPath id="sunDisc"><circle cx="256" cy="300" r="136"/></clipPath>
</defs>
<clipPath id="tile"><rect width="16" height="16" rx="3.5"/></clipPath>
<g clip-path="url(#tile)">
<rect width="512" height="512" fill="url(#sky)"/>
<ellipse cx="256" cy="320" rx="300" ry="230" fill="url(#glow)"/>
<g clip-path="url(#sunCut)">
<circle cx="256" cy="300" r="136" fill="url(#sun)"/>
<g clip-path="url(#sunDisc)">
<rect x="100" y="262" width="312" height="8" fill="#EE6E5A" opacity="0.5"/>
<rect x="100" y="284" width="312" height="11" fill="#EE6E5A" opacity="0.62"/>
<rect x="100" y="310" width="312" height="14" fill="#EE6E5A" opacity="0.74"/>
</g>
</g>
<path fill="url(#far)" d="M0 320H64V288H128V320H352V288H416V256H512V512H0Z"/>
<path fill="url(#near)" d="M0 384H64V352H192V384H320V352H384V320H448V352H512V512H0Z"/>
<g fill="#FFFFFF" opacity="0.07">
<rect x="64" y="352" width="4" height="160"/>
<rect x="192" y="352" width="4" height="160"/>
<rect x="320" y="352" width="4" height="160"/>
<rect x="384" y="320" width="4" height="192"/>
<rect x="448" y="320" width="4" height="192"/>
<rect x="0" y="448" width="512" height="4"/>
</g>
<rect x="0" y="384" width="64" height="4" fill="#FFB25E" opacity="0.25"/>
<rect x="64" y="352" width="128" height="4" fill="#FFB25E" opacity="0.35"/>
<rect x="192" y="384" width="128" height="4" fill="#FFB25E" opacity="0.25"/>
<rect x="320" y="352" width="64" height="4" fill="#FFB25E" opacity="0.35"/>
<rect x="384" y="320" width="64" height="4" fill="#FFB25E" opacity="0.45"/>
<rect x="448" y="352" width="64" height="4" fill="#FFB25E" opacity="0.35"/>
<rect width="16" height="16" fill="#16181f"/>
<g fill="#ecedf3"><rect x="4" y="3" width="2" height="4"/><rect x="10" y="3" width="2" height="4"/></g>
<g fill="#ecedf3" opacity=".36"><rect x="4" y="8" width="2" height="4"/><rect x="10" y="8" width="2" height="4"/></g>
<rect y="7" width="16" height="1" fill="#9a86ff"/>
</g>
<rect x="2" y="2" width="508" height="508" rx="110" fill="none" stroke="#FFFFFF" stroke-opacity="0.1" stroke-width="4"/>
</svg>

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 537 B