Files
horizon-airdef/docs/media/brand
Ludovic Marie fcbbff26a7 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>
2026-10-15 00:08:40 +02:00
..

Horizon's mark and icons

The mark. An H whose crossbar is the horizon: the line runs edge to edge in Horizon's violet, the stems above it in full strength and their reflection below at a third. It is drawn on whole units of a 16-unit grid, so it is sharp at 16 px and holds at 1024 px. docs/design-system.md places it in the design system; candidates/ keeps the two alternatives that were shown with it.

Masters (edit these)

File What
icon.svg the app icon on the 16 grid: the full square with 22 % corners (Windows, Linux, favicons)
icon-macos.svg the same tile on Apple's 1024 grid (824 px tile, 185 px corners, transparent margin)
avatar.svg full-bleed square for services that round or crop the image (GitHub, Discord)
avatar-kira.svg the bot's avatar: the mark on violet, so Kira reads apart from the project
mark.svg, mark-dark.svg the mark alone, for light and for dark backgrounds
social/card.html, social/banner.html the GitHub social preview and the Discord banner, as pages

Generated (don't edit)

cargo run -p xtask -- icons (needs rsvg-convert from librsvg) renders the masters into:

Output Used by
packaging/icons/hicolor/<size>/apps/horizon.png (16–512) and scalable/apps/horizon.svg Linux: copy the tree into ~/.local/share/icons/hicolor (or /usr/share/icons/hicolor)
packaging/linux/horizon-launcher.desktop, horizon.desktop (hand-written) Linux: ~/.local/share/applications; Wayland matches the windows' app ids horizon-launcher and horizon
packaging/icons/horizon.ico Windows: embedded in horizon-client.exe, its tools and horizon-launcher.exe as icon resource 1 (build.rs of each, Windows builds only)
packaging/icons/horizon.icns macOS: an app bundle's Contents/Resources/horizon.icns (CFBundleIconFile)
crates/horizon-theme/icons/horizon-64.png the game window's icon at run time (X11 and Windows title bars, window::icon)
website/public/favicon.svg, favicon-32.png, apple-touch-icon.png the website
icon-1024.png, icon-macos-1024.png previews, store listings
social/github-avatar-500.png GitHub: the organisation or account avatar
social/discord-icon-512.png Discord: the server icon
social/kira-avatar-512.png Discord: Kira's avatar

The two pages in social/ are screenshots, at their exact size, with Playwright from the website's dev dependencies:

cd website && npm install
node -e 'const {chromium}=require("playwright");(async()=>{const b=await chromium.launch();for(const[f,w,h,o]of[["card",1280,640,"github-social-1280x640"],["banner",960,540,"discord-banner-960x540"]]){const p=await b.newPage({viewport:{width:w,height:h}});await p.goto("file://"+require("path").resolve("../docs/media/brand/social/"+f+".html"));await p.waitForTimeout(300);await p.screenshot({path:"../docs/media/brand/social/"+o+".png"})}await b.close()})()'

Uploading (the accounts are Ludovic's)

  • GitHub avatar: github.com/settings/profile (or the organisation's settings), Edit the picture, upload social/github-avatar-500.png.
  • GitHub social preview: the repository's Settings › General › Social preview › Edit, upload social/github-social-1280x640.png.
  • Discord server icon and banner: Server Settings › Server Profile: icon social/discord-icon-512.png; banner social/discord-banner-960x540.png (the banner needs boost level 2).
  • Kira's avatar: discord.com/developers/applications › Kira › Bot › icon, upload social/kira-avatar-512.png (or General Information › App Icon for the application too).