the movie's logo is rendered at 96 px
This commit is contained in:
parent
50d318c92a
commit
d9323ff158
2 changed files with 7 additions and 3 deletions
|
|
@ -144,7 +144,7 @@ in
|
||||||
// {
|
// {
|
||||||
# `nix run .#hyperhive-the-movie`: gource over the cwd repo's history.
|
# `nix run .#hyperhive-the-movie`: gource over the cwd repo's history.
|
||||||
hyperhive-the-movie = pkgs.callPackage ./hyperhive-the-movie.nix {
|
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`:
|
# Swarm-level controller daemon. Deliberately NOT in `daemonBins`:
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,11 @@ writeShellApplication {
|
||||||
# Milestone captions, `unix time|text`, sorted by time: the tracked
|
# Milestone captions, `unix time|text`, sorted by time: the tracked
|
||||||
# milestones file (`YYYY-MM-DD|text`) and the repo's git tags.
|
# milestones file (`YYYY-MM-DD|text`) and the repo's git tags.
|
||||||
captions="$(mktemp)"
|
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
|
while IFS='|' read -r day text; do
|
||||||
[[ -z "$day" || "$day" == \#* ]] && continue
|
[[ -z "$day" || "$day" == \#* ]] && continue
|
||||||
|
|
@ -107,7 +111,7 @@ writeShellApplication {
|
||||||
--filename-colour 585b70 --dir-colour 89b4fa
|
--filename-colour 585b70 --dir-colour 89b4fa
|
||||||
--bloom-multiplier 1.5 --bloom-intensity 0.75 --elasticity 0.1
|
--bloom-multiplier 1.5 --bloom-intensity 0.75 --elasticity 0.1
|
||||||
--title hyperhive
|
--title hyperhive
|
||||||
--logo ${logo} --logo-offset 20x20
|
--logo "$logo_png" --logo-offset 20x20
|
||||||
--user-image-dir "$avatar_dir"
|
--user-image-dir "$avatar_dir"
|
||||||
--key
|
--key
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue