mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 03:35:53 +01:00
Added LOC icons generation
Broken SVG rendering workaround + code cleanup
This commit is contained in:
parent
3ce3de119b
commit
8fb4acc4c2
10
icons/scripts/extensions
Normal file
10
icons/scripts/extensions
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
fit:#006600
|
||||||
|
gpx:#003399
|
||||||
|
igc:#ff3300
|
||||||
|
kml:#990000
|
||||||
|
nmea:#0083d7
|
||||||
|
plt:#66ff00
|
||||||
|
rte:#66ff00
|
||||||
|
tcx:#ffcc00
|
||||||
|
wpt:#66ff00
|
||||||
|
loc:#556677
|
@ -1,9 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
EXTENSIONS="fit:#006600 gpx:#003399 igc:#ff3300 kml:#990000 nmea:#0083d7 \
|
while read e; do
|
||||||
plt:#66ff00 rte:#66ff00 tcx:#ffcc00 wpt:#66ff00"
|
|
||||||
|
|
||||||
for e in $EXTENSIONS; do
|
|
||||||
IFS=":"; set $e
|
IFS=":"; set $e
|
||||||
|
|
||||||
EXT=`echo $1 | tr /a-z/ /A-Z/`
|
EXT=`echo $1 | tr /a-z/ /A-Z/`
|
||||||
@ -25,4 +22,4 @@ for e in $EXTENSIONS; do
|
|||||||
|
|
||||||
iconutil -c icns -o $1.icns "$ICONSET"
|
iconutil -c icns -o $1.icns "$ICONSET"
|
||||||
rm -R "$ICONSET" $1.svg
|
rm -R "$ICONSET" $1.svg
|
||||||
done
|
done < extensions
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
EXTENSIONS="fit:#006600 gpx:#003399 igc:#ff3300 kml:#990000 nmea:#0083d7 \
|
while read e; do
|
||||||
plt:#66ff00 rte:#66ff00 tcx:#ffcc00 wpt:#66ff00"
|
|
||||||
|
|
||||||
for e in $EXTENSIONS; do
|
|
||||||
IFS=":"; set $e
|
IFS=":"; set $e
|
||||||
|
|
||||||
EXT=`echo $1 | tr /a-z/ /A-Z/`
|
EXT=`echo $1 | tr /a-z/ /A-Z/`
|
||||||
sed -e "s/\$EXTENSION/$EXT/" -e "s/\$COLOR/$2/" icon-template.svg > $1.svg
|
sed -e "s/\$EXTENSION/$EXT/" -e "s/\$COLOR/$2/" icon-template.svg > $1.svg
|
||||||
convert -density 400 $1.svg -define icon:auto-resize $1.ico
|
convert -density 400 $1.svg -define icon:auto-resize $1.ico
|
||||||
rm $1.svg
|
rm $1.svg
|
||||||
done
|
done < extensions
|
||||||
|
Loading…
Reference in New Issue
Block a user