-
-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add application icon source files (SVGs and a shell build script)
- Loading branch information
1 parent
9bdd062
commit 5c79bfa
Showing
5 changed files
with
1,608 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,36 @@ | ||
#!/bin/sh | ||
|
||
FLAGS='--export-area-page --export-background="#000000" --export-background-opacity=0.0 --without-gui' | ||
|
||
png_name() { | ||
for sz in $*; do | ||
printf 'pngs/pioneer-%dx%d.png\n' "$sz" "$sz" | ||
done | ||
} | ||
|
||
build_png() { | ||
SIZE=$1 | ||
SVG=$2 | ||
OUTFILE="$(png_name "$SIZE")" | ||
test "$SVG" -nt "$OUTFILE" || return 0 | ||
printf 'Generating %sx%s PNG from %s\n' $SIZE $SIZE "$SVG" | ||
inkscape --export-png="$OUTFILE" -w$SIZE -h$SIZE $FLAGS "$SVG" | ||
optipng -clobber "$OUTFILE" | ||
} | ||
|
||
test -d pngs || mkdir pngs | ||
build_png 256 badge-enlarged-text.svg | ||
build_png 128 badge-enlarged-text.svg | ||
build_png 64 badge-notext-extrastars.svg | ||
build_png 48 badge-notext-extrastars.svg | ||
build_png 40 badge-notext-extrastars.svg | ||
build_png 32 badge-notext-extrastars.svg | ||
build_png 24 badge-square.svg | ||
build_png 22 badge-square.svg | ||
build_png 16 badge-square.svg | ||
|
||
sizes="16 24 32 48 64 256" | ||
names="$(png_name $sizes)" | ||
CMD="icotool --create --icon --output=pioneer.ico $names" | ||
printf 'running %s\n' "$CMD" | ||
$CMD |