Skip to content

Commit

Permalink
add application icon source files (SVGs and a shell build script)
Browse files Browse the repository at this point in the history
  • Loading branch information
John Bartholomew authored and johnbartholomew committed Sep 23, 2012
1 parent 9bdd062 commit 5c79bfa
Show file tree
Hide file tree
Showing 5 changed files with 1,608 additions and 0 deletions.
410 changes: 410 additions & 0 deletions application-icon/badge-enlarged-text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
405 changes: 405 additions & 0 deletions application-icon/badge-full.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
417 changes: 417 additions & 0 deletions application-icon/badge-notext-extrastars.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
340 changes: 340 additions & 0 deletions application-icon/badge-square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions application-icon/build.sh
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

0 comments on commit 5c79bfa

Please sign in to comment.