mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
ui: Simplify SVG app icons for using them inline in HTML
- Drop unnecessary inkscape markup. - Ensure that all the SVGs have viewBox='' attribute. - Drop unnecessary id='' attributes. - Prefix all IDs with 'autoidmagic-'. This will be replaced with a random string for each inlining in HTML to avoid duplicate IDs. Tests: - All SVGs appear the same as before. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
31925252cb
commit
c0dcd15169
46 files changed
+1105
-5141
No files matched your search
@@ -1,58 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
|
||||
<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"
|
||||
version="1.1"
|
||||
id="Layer_1"
|
||||
x="0px"
|
||||
y="0px"
|
||||
viewBox="0 0 511.99999 511.99999"
|
||||
viewBox="0 0 512 512"
|
||||
enable-background="new 0 0 429 117.3"
|
||||
xml:space="preserve"
|
||||
class="mozwebext"
|
||||
sodipodi:docname="syncthing.svg"
|
||||
width="512"
|
||||
height="512"
|
||||
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"><metadata
|
||||
id="metadata59595"><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><defs
|
||||
id="defs59593" /><sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1948"
|
||||
inkscape:window-height="1145"
|
||||
id="namedview59591"
|
||||
showgrid="false"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:zoom="0.59337633"
|
||||
inkscape:cx="16.685171"
|
||||
inkscape:cy="11.176827"
|
||||
inkscape:window-x="1391"
|
||||
inkscape:window-y="467"
|
||||
inkscape:window-maximized="0"
|
||||
inkscape:current-layer="Layer_1" />
|
||||
height="512">
|
||||
<g
|
||||
id="g59568"
|
||||
transform="scale(4.3611584)">
|
||||
<linearGradient
|
||||
id="SVGID_1_"
|
||||
id="autoidmagic-SVGID_1_"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="58.666"
|
||||
y1="117.332"
|
||||
@@ -60,34 +17,26 @@
|
||||
y2="-9.094947e-13">
|
||||
<stop
|
||||
offset="0"
|
||||
style="stop-color:#0882C8"
|
||||
id="stop59537" />
|
||||
style="stop-color:#0882C8" />
|
||||
<stop
|
||||
offset="1"
|
||||
style="stop-color:#26B6DB"
|
||||
id="stop59539" />
|
||||
style="stop-color:#26B6DB" />
|
||||
</linearGradient>
|
||||
<circle
|
||||
cx="58.700001"
|
||||
cy="58.700001"
|
||||
r="58.700001"
|
||||
id="circle59542"
|
||||
style="fill:url(#SVGID_1_)" />
|
||||
<g
|
||||
id="g59566">
|
||||
style="fill:url(#autoidmagic-SVGID_1_)" />
|
||||
<g>
|
||||
<circle
|
||||
stroke-miterlimit="10"
|
||||
cx="58.700001"
|
||||
cy="58.5"
|
||||
r="43.700001"
|
||||
id="circle59544"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:6;stroke-miterlimit:10" />
|
||||
<g
|
||||
id="g59550">
|
||||
<g>
|
||||
<path
|
||||
d="m 94.7,47.8 c 4.7,1.6 9.8,-0.9 11.4,-5.6 1.6,-4.7 -0.9,-9.8 -5.6,-11.4 -4.7,-1.6 -9.8,0.9 -11.4,5.6 -1.6,4.7 0.9,9.8 5.6,11.4 z"
|
||||
id="path59546"
|
||||
inkscape:connector-curvature="0"
|
||||
style="fill:#ffffff" />
|
||||
<line
|
||||
stroke-miterlimit="10"
|
||||
@@ -95,15 +44,11 @@
|
||||
y1="39.400002"
|
||||
x2="67.5"
|
||||
y2="64.400002"
|
||||
id="line59548"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:6;stroke-miterlimit:10" />
|
||||
</g>
|
||||
<g
|
||||
id="g59556">
|
||||
<g>
|
||||
<path
|
||||
d="m 77.6,91 c -0.4,4.9 3.2,9.3 8.2,9.8 5,0.4 9.3,-3.2 9.8,-8.2 C 96,87.7 92.4,83.3 87.4,82.8 82.4,82.4 78,86 77.6,91 Z"
|
||||
id="path59552"
|
||||
inkscape:connector-curvature="0"
|
||||
style="fill:#ffffff" />
|
||||
<line
|
||||
stroke-miterlimit="10"
|
||||
@@ -111,20 +56,14 @@
|
||||
y1="91.800003"
|
||||
x2="67.5"
|
||||
y2="64.400002"
|
||||
id="line59554"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:6;stroke-miterlimit:10" />
|
||||
</g>
|
||||
<path
|
||||
d="m 60,69.3 c 2.7,4.2 8.3,5.4 12.4,2.7 4.2,-2.7 5.4,-8.3 2.7,-12.4 -2.7,-4.2 -8.3,-5.4 -12.4,-2.7 -4.2,2.6 -5.4,8.2 -2.7,12.4 z"
|
||||
id="path59558"
|
||||
inkscape:connector-curvature="0"
|
||||
style="fill:#ffffff" />
|
||||
<g
|
||||
id="g59564">
|
||||
<g>
|
||||
<path
|
||||
d="m 21.2,61.4 c -4.3,-2.5 -9.8,-1.1 -12.3,3.1 -2.5,4.3 -1.1,9.8 3.1,12.3 4.3,2.5 9.8,1.1 12.3,-3.1 2.5,-4.2 1.1,-9.7 -3.1,-12.3 z"
|
||||
id="path59560"
|
||||
inkscape:connector-curvature="0"
|
||||
style="fill:#ffffff" />
|
||||
<line
|
||||
stroke-miterlimit="10"
|
||||
@@ -132,10 +71,9 @@
|
||||
y1="69.099998"
|
||||
x2="67.5"
|
||||
y2="64.400002"
|
||||
id="line59562"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:6;stroke-miterlimit:10" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
</svg>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 2.0 KiB |
Reference in new issue
Block a user