From d9323ff15871a7ce7d0c34e4dbd13adc42f8bcf2 Mon Sep 17 00:00:00 2001 From: iris Date: Mon, 16 Nov 2026 19:28:28 +0100 Subject: [PATCH] the movie's logo is rendered at 96 px --- nix/packages/default.nix | 2 +- nix/packages/hyperhive-the-movie.nix | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/nix/packages/default.nix b/nix/packages/default.nix index 19fb65e4e..5ffc3abd4 100644 --- a/nix/packages/default.nix +++ b/nix/packages/default.nix @@ -144,7 +144,7 @@ in // { # `nix run .#hyperhive-the-movie`: gource over the cwd repo's history. hyperhive-the-movie = pkgs.callPackage ./hyperhive-the-movie.nix { - logo = ../../branding/hyperhive.png; + logo = ../../branding/hyperhive.svg; }; # Swarm-level controller daemon. Deliberately NOT in `daemonBins`: diff --git a/nix/packages/hyperhive-the-movie.nix b/nix/packages/hyperhive-the-movie.nix index 54378c16d..56c7964f4 100644 --- a/nix/packages/hyperhive-the-movie.nix +++ b/nix/packages/hyperhive-the-movie.nix @@ -87,7 +87,11 @@ writeShellApplication { # Milestone captions, `unix time|text`, sorted by time: the tracked # milestones file (`YYYY-MM-DD|text`) and the repo's git tags. captions="$(mktemp)" - trap 'rm -f "$captions"' EXIT + # The logo is drawn at its own size, so it is rendered small: 96 px, a third + # of the icon's 300. + logo_png="$(mktemp --suffix=.png)" + rsvg-convert -w 96 -h 96 ${logo} -o "$logo_png" + trap 'rm -f "$captions" "$logo_png"' EXIT { while IFS='|' read -r day text; do [[ -z "$day" || "$day" == \#* ]] && continue @@ -107,7 +111,7 @@ writeShellApplication { --filename-colour 585b70 --dir-colour 89b4fa --bloom-multiplier 1.5 --bloom-intensity 0.75 --elasticity 0.1 --title hyperhive - --logo ${logo} --logo-offset 20x20 + --logo "$logo_png" --logo-offset 20x20 --user-image-dir "$avatar_dir" --key )