mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-27 21:24:47 +01:00
Fit the extension placeholder into the template
This commit is contained in:
parent
6210d1b983
commit
d4b10b091c
@ -4,7 +4,7 @@ while read e; 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/\$EXT/$EXT/" -e "s/\$COLOR/$2/" icon-template.svg > $1.svg
|
||||||
|
|
||||||
ICONSET=$1.iconset
|
ICONSET=$1.iconset
|
||||||
mkdir $ICONSET
|
mkdir $ICONSET
|
||||||
|
@ -4,7 +4,7 @@ while read e; 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/\$EXT/$EXT/" -e "s/\$COLOR/$2/" icon-template.svg > $1.svg
|
||||||
convert -density 400 -background none $1.svg -define icon:auto-resize $1.ico
|
convert -density 400 -background none $1.svg -define icon:auto-resize $1.ico
|
||||||
rm $1.svg
|
rm $1.svg
|
||||||
done < extensions
|
done < extensions
|
||||||
|
@ -13,8 +13,8 @@
|
|||||||
<g transform="translate(16.573463,124.9782)">
|
<g transform="translate(16.573463,124.9782)">
|
||||||
<rect y="0" x="0" id="textrect" height="50" width="120" style="fill:$COLOR;fill-opacity:1;stroke:none;"/>
|
<rect y="0" x="0" id="textrect" height="50" width="120" style="fill:$COLOR;fill-opacity:1;stroke:none;"/>
|
||||||
<!--
|
<!--
|
||||||
<text y="28" x="60" dominant-baseline="central" text-anchor="middle" style="fill:#FFFFFF;font-size:39px;font-family:Helvetica;font-weight:bold;">$EXTENSION</text>
|
<text y="28" x="60" dominant-baseline="central" text-anchor="middle" style="fill:#FFFFFF;font-size:39px;font-family:Helvetica;font-weight:bold;">$EXT</text>
|
||||||
-->
|
-->
|
||||||
<text y="25" x="60" dy="0.36em" text-anchor="middle" style="fill:#FFFFFF;font-size:39px;font-family:Helvetica;font-weight:bold;">$EXTENSION</text>
|
<text y="25" x="60" dy="0.36em" text-anchor="middle" style="fill:#FFFFFF;font-size:39px;font-family:Helvetica;font-weight:bold;">$EXT</text>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Loading…
Reference in New Issue
Block a user