Add favicons and instrumentation.

This commit is contained in:
2019-03-27 16:15:58 +01:00
parent 650b7ee48c
commit f3be33174d
9 changed files with 164 additions and 0 deletions

View File

@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<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"
width="10mm"
height="10mm"
viewBox="0 0 10 10"
version="1.1"
id="svg4549"
inkscape:version="0.92.4 5da689c313, 2019-01-14"
sodipodi:docname="favicon-closed.svg">
<defs
id="defs4543" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="7.9195959"
inkscape:cx="26.7427"
inkscape:cy="6.2416383"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1680"
inkscape:window-height="1022"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1" />
<metadata
id="metadata4546">
<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></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-287)">
<path
sodipodi:type="star"
style="opacity:1;fill:#ff6666;fill-opacity:1;stroke:#ffffff;stroke-width:0.25292122;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path5096"
sodipodi:sides="8"
sodipodi:cx="4.8680987"
sodipodi:cy="291.94043"
sodipodi:r1="4.5414524"
sodipodi:r2="4.1957536"
sodipodi:arg1="0.77983236"
sodipodi:arg2="1.1725314"
inkscape:flatsided="true"
inkscape:rounded="0"
inkscape:randomized="0"
d="m 8.0972141,295.1338 -3.2038387,1.34801 -3.2186454,-1.31226 -1.34801333,-3.20384 1.31226673,-3.21865 3.2038386,-1.34801 3.2186455,1.31226 1.3480133,3.20384 z"
transform="matrix(1.0592515,-0.43875632,0.43875632,1.0592515,-128.24725,-15.102429)" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:3.66031456px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.09150787"
x="0.93129587"
y="293.3342"
id="text5100"><tspan
sodipodi:role="line"
id="tspan5098"
x="0.93129587"
y="293.3342"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';fill:#ffffff;stroke-width:0.09150787">NEE</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.0 KiB

63
artwork/favicon-open.svg Normal file
View File

@@ -0,0 +1,63 @@
<?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"
width="10mm"
height="10mm"
viewBox="0 0 10 10"
version="1.1"
id="svg8"
inkscape:version="0.92.4 5da689c313, 2019-01-14"
sodipodi:docname="favicon-open.svg">
<metadata
id="metadata5">
<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></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-287)">
<path
sodipodi:type="star"
id="path3713"
sodipodi:sides="5"
sodipodi:cx="5.087266"
sodipodi:cy="292.22028"
sodipodi:r1="5.0108638"
sodipodi:r2="3.3405776"
sodipodi:arg1="0.8635795"
sodipodi:arg2="1.491898"
inkscape:flatsided="false"
inkscape:rounded="0"
inkscape:randomized="0"
d="m 8.3429274,296.0294 -2.9923688,-0.47894 -2.87993,0.94322 -0.4691954,-2.99391 -1.78699947,-2.44751 2.70239007,-1.3714 1.7755036,-2.45586 2.1393643,2.14634 2.884321,0.9297 -1.3801902,2.69791 z"
inkscape:transform-center-x="0.12204295"
inkscape:transform-center-y="-0.36093347"
style="fill:#4fbc32;fill-opacity:1;stroke:#008800;stroke-width:0.25783524;stroke-opacity:1" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:4.07491302px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.10187282"
x="2.8319168"
y="293.43652"
id="text4522"><tspan
sodipodi:role="line"
id="tspan4520"
x="2.8319168"
y="293.43652"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:'DejaVu Sans';-inkscape-font-specification:'DejaVu Sans';stroke-width:0.10187282">Ja!</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 879 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

17
scripts/generate-favicons.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
if [[ $# -lt 2 ]]; then
echo "Usage: $0 SOURCE PREFIX" >&2
exit 1
fi
SOURCE=$1
PREFIX=$2
SUFFIX=.png
SIZES=(16x16 32x32 96x96)
for size in "${SIZES[@]}"; do
target="${PREFIX}${size}${SUFFIX}"
convert -background none "$SOURCE" -resize "$size" "$target"
optipng "$target"
done