macOS: update ICNS file
Add SVG source icon created by Michael Danilov, and an SVG to ICNS conversion script from GitHub which generates all the resolutions and sizes nicely.
This commit is contained in:
parent
b2622458cc
commit
a25902e2a3
3 changed files with 140 additions and 0 deletions
106
package/FlightGear_app_icon.svg
Normal file
106
package/FlightGear_app_icon.svg
Normal file
|
@ -0,0 +1,106 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
|
||||
version="1.1"
|
||||
id="fgfs-logo"
|
||||
height="100%"
|
||||
width="100%"
|
||||
sodipodi:docname="FlightGear_app_icon.svg"
|
||||
viewBox="0 0 200 200"
|
||||
preserveAspectRatio="xMinYMin meet">
|
||||
<title
|
||||
id="title3935">FlightGear Logo</title>
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="1.9940411"
|
||||
inkscape:cx="131.49526"
|
||||
inkscape:cy="82.099036"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="fgfs-logo"
|
||||
showgrid="false"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="718"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="50"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:document-rotation="0" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title>FlightGear Logo</dc:title>
|
||||
<dc:date>2014-09-28</dc:date>
|
||||
<dc:creator>
|
||||
<cc:Agent>
|
||||
<dc:title>flightgear.org</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:creator>
|
||||
<dc:rights>
|
||||
<cc:Agent>
|
||||
<dc:title>flightgear.org</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:rights>
|
||||
<dc:publisher>
|
||||
<cc:Agent>
|
||||
<dc:title>flightgear.org</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:publisher>
|
||||
<dc:identifier>flightgear.org/Logo</dc:identifier>
|
||||
<dc:subject>
|
||||
<rdf:Bag>
|
||||
<rdf:li>The FlightGear Logo</rdf:li>
|
||||
</rdf:Bag>
|
||||
</dc:subject>
|
||||
<dc:contributor>
|
||||
<cc:Agent>
|
||||
<dc:title>Original: unknown artist
|
||||
Beautified: Gijs de Roy
|
||||
Vectorized: Torsten Dreyer</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:contributor>
|
||||
<cc:license
|
||||
rdf:resource="http://www.gnu.org/licenses/gpl-2.0.html" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<rect
|
||||
style="fill:#ffffff"
|
||||
id="bg"
|
||||
width="200"
|
||||
height="200"
|
||||
x="0"
|
||||
y="0"
|
||||
rx="40"
|
||||
ry="40" />
|
||||
<path
|
||||
id="yellow"
|
||||
style="fill:#fbfc46"
|
||||
d="M 50 0 L 50 25 L 75 25 L 75 0 L 50 0 z M 50 25 L 25 25 L 25 50 L 50 50 L 50 25 z M 50 50 L 50 75 L 75 75 L 75 50 L 50 50 z M 50 75 L 25 75 L 25 100 L 50 100 L 50 75 z M 50 100 L 50 125 L 75 125 L 75 100 L 50 100 z M 50 125 L 25 125 L 25 150 L 50 150 L 50 125 z M 50 150 L 50 175 L 75 175 L 75 150 L 50 150 z M 50 175 L 25 175 L 25 197.10156 C 29.62912 198.96539 34.688263 200 40 200 L 50 200 L 50 175 z M 25 175 L 25 150 L 0 150 L 0 160 C 0 165.31174 1.0346147 170.37088 2.8984375 175 L 25 175 z M 25 125 L 25 100 L 0 100 L 0 125 L 25 125 z M 25 75 L 25 50 L 0 50 L 0 75 L 25 75 z M 25 25 L 25 2.8984375 C 14.946045 6.9464618 6.9464618 14.946045 2.8984375 25 L 25 25 z " />
|
||||
<path
|
||||
style="fill:#427ebf"
|
||||
d="m 97.41844,27.531176 c -1.662,0 -3,1.338 -3,3 l 0,10.0625 0,10.96875 0,33.96875 0,20.937504 0,62.99998 c 0,1.662 1.338,3 3,3 l 29.1875,0 c 1.662,0 3,-1.338 3,-3 l 0,-59.99998 51.90625,0 c 1.662,0 3,-1.338 3,-3 l 0,-20.937504 c 0,-1.662 -1.338,-3 -3,-3 l -51.90625,0 0,-27.96875 55.9375,0 c 1.662,0 3,-1.338 3,-3 l 0,-21.03125 c 0,-1.662 -1.338,-3 -3,-3 l -88.125,0 z"
|
||||
id="F"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
id="path315"
|
||||
style="fill:#000000;font-variation-settings:normal;opacity:1;vector-effect:none;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;stop-color:#000000;stop-opacity:1"
|
||||
d="M 40 0 C 34.688263 0 29.62912 1.0346147 25 2.8984375 L 25 25 L 50 25 L 50 0 L 40 0 z M 50 25 L 50 50 L 75 50 L 75 25 L 50 25 z M 50 50 L 25 50 L 25 75 L 50 75 L 50 50 z M 50 75 L 50 100 L 75 100 L 75 75 L 50 75 z M 50 100 L 25 100 L 25 125 L 50 125 L 50 100 z M 50 125 L 50 150 L 75 150 L 75 125 L 50 125 z M 50 150 L 25 150 L 25 175 L 50 175 L 50 150 z M 50 175 L 50 200 L 75 200 L 75 175 L 50 175 z M 25 175 L 2.8984375 175 C 6.9464618 185.05396 14.946045 193.05354 25 197.10156 L 25 175 z M 25 150 L 25 125 L 0 125 L 0 150 L 25 150 z M 25 100 L 25 75 L 0 75 L 0 100 L 25 100 z M 25 50 L 25 25 L 2.8984375 25 C 1.0346147 29.62912 0 34.688263 0 40 L 0 50 L 25 50 z " />
|
||||
</svg>
|
After Width: | Height: | Size: 4.7 KiB |
Binary file not shown.
34
package/svg2icns.sh
Executable file
34
package/svg2icns.sh
Executable file
|
@ -0,0 +1,34 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# taken from https://gist.github.com/adriansr/1da9b18a8076b0f8a977a5eea0ae41ef
|
||||
# run `brew install svg2png` to get svg2png
|
||||
# iconutil comes from the Apple developer tools
|
||||
|
||||
set -e
|
||||
|
||||
SIZES="
|
||||
16,16x16
|
||||
32,16x16@2x
|
||||
32,32x32
|
||||
64,32x32@2x
|
||||
128,128x128
|
||||
256,128x128@2x
|
||||
256,256x256
|
||||
512,256x256@2x
|
||||
512,512x512
|
||||
1024,512x512@2x
|
||||
"
|
||||
|
||||
for SVG in "$@"; do
|
||||
BASE=$(basename "$SVG" | sed 's/\.[^\.]*$//')
|
||||
ICONSET="$BASE.iconset"
|
||||
mkdir -p "$ICONSET"
|
||||
for PARAMS in $SIZES; do
|
||||
SIZE=$(echo $PARAMS | cut -d, -f1)
|
||||
LABEL=$(echo $PARAMS | cut -d, -f2)
|
||||
svg2png -w $SIZE -h $SIZE "$SVG" "$ICONSET"/icon_$LABEL.png
|
||||
done
|
||||
|
||||
iconutil -c icns "$ICONSET"
|
||||
rm -rf "$ICONSET"
|
||||
done
|
Loading…
Reference in a new issue