-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
a0b2e5c
commit 8b99e7e
Showing
21 changed files
with
130 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
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.
Oops, something went wrong.