Skip to content

Commit

Permalink
void-artwork: update to 20220303.
Browse files Browse the repository at this point in the history
Adds an svg version of the logo, a script to generate icons from it,
and generated icon files for the logo (with and without the VOID text)
at various sizes, which are installed to the hicolor (fallback) icon
theme.

The logo files are pre-generated to avoid makedep on librsvg-utils,
and they are small enough and change so rarely that it is not a big
deal to include them in git.

The source svg is slightly different than the one on alpha.de; it has
a small white border added to help with legibility on dark backgrounds.

This is a follow-up to #35604
  • Loading branch information
classabbyamp committed Mar 3, 2022
1 parent a0b2e5c commit 6b13e0e
Show file tree
Hide file tree
Showing 21 changed files with 130 additions and 3 deletions.
29 changes: 29 additions & 0 deletions srcpkgs/void-artwork/files/generate-icons.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash
# regenerates the files in icons/ from void-logo.svg
# run with ./generate-icons.sh
# only needed when the logo changes

if ! command -v rsvg-convert >/dev/null; then
echo "Please install librsvg-utils"
exit 1
fi

[ -d "./icons" ] && rm -r ./icons
mkdir ./icons

RESOLUTIONS="16 22 32 48 64 128 256 512"

for res in $RESOLUTIONS; do
# at low resolutions, the text is too small to read, so the text is left out
if [ "$res" -lt 64 ]; then
rsvg-convert void-logo.svg --keep-aspect-ratio --width $res -i circlearcs -o ./icons/void-logo-$res.png
else
rsvg-convert void-logo.svg --keep-aspect-ratio --width $res -o ./icons/void-logo-$res.png
fi
rsvg-convert void-logo.svg --keep-aspect-ratio --width $res -i circlearcs -o ./icons/void-logo-notext-$res.png
done

# scalable
rsvg-convert void-logo.svg --format svg -o ./icons/void-logo.svg
rsvg-convert void-logo.svg --format svg -i circlearcs -o ./icons/void-logo-notext.svg

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added srcpkgs/void-artwork/files/icons/void-logo-16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added srcpkgs/void-artwork/files/icons/void-logo-22.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added srcpkgs/void-artwork/files/icons/void-logo-32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added srcpkgs/void-artwork/files/icons/void-logo-48.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added srcpkgs/void-artwork/files/icons/void-logo-64.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions srcpkgs/void-artwork/files/icons/void-logo-notext.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions srcpkgs/void-artwork/files/icons/void-logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6b13e0e

Please sign in to comment.