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:
Sunil Mohan Adapa authored and James Valleroy committed 2026-03-19 19:11:54 -04:00
1 parent 31925252cb
commit c0dcd15169
46 files changed
+1105 -5141

No files matched your search

@@ -1,60 +1,10 @@
<?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"
version="1.1"
viewBox="9.14 141.8 511.99998 511.99998"
id="svg72985"
sodipodi:docname="roundcube.svg"
viewBox="0 0 512 512"
width="512"
height="512"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
<metadata
id="metadata72991">
<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="defs72989" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1776"
inkscape:window-height="1180"
id="namedview72987"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:zoom="0.41140066"
inkscape:cx="286.82501"
inkscape:cy="286.82499"
inkscape:window-x="1488"
inkscape:window-y="444"
inkscape:window-maximized="0"
inkscape:current-layer="svg72985" />
xmlns="http://www.w3.org/2000/svg">
<style
type="text/css"
id="style72971">
type="text/css">
.st0{fill-rule:evenodd;clip-rule:evenodd;fill:#404F54;}
.st1{fill-rule:evenodd;clip-rule:evenodd;fill:#E5E5E5;}
.st2{fill-rule:evenodd;clip-rule:evenodd;fill:#CCCCCC;}
@@ -63,37 +13,29 @@
<polygon
class="st3"
points="582.79,372.95 582.79,549.77 295.96,384.1 295.96,207.27 "
id="polygon72973"
transform="matrix(0.89253029,0,0,0.89253029,0.98227315,15.239205)"
transform="matrix(0.89253029,0,0,0.89253029,-8.1577269,-126.5608)"
style="clip-rule:evenodd;fill:#37beff;fill-rule:evenodd" />
<polygon
class="st0"
points="9.14,372.95 9.14,549.77 295.96,384.1 295.96,207.27 "
id="polygon72975"
transform="matrix(0.89253029,0,0,0.89253029,0.98227315,15.239205)"
transform="matrix(0.89253029,0,0,0.89253029,-8.1577269,-126.5608)"
style="clip-rule:evenodd;fill:#404f54;fill-rule:evenodd" />
<path
class="st2"
d="m 265.13554,141.8 c 97.78562,0 177.08693,79.30132 177.08693,177.08693 0,97.78562 -79.30131,177.08694 -177.08693,177.08694 -97.78562,0 -177.086937,-79.30132 -177.086937,-177.08694 C 88.048603,221.10132 167.34992,141.8 265.13554,141.8"
id="path72977"
inkscape:connector-curvature="0"
style="clip-rule:evenodd;fill:#cccccc;fill-rule:evenodd;stroke-width:0.89253026" />
d="m 255.99554,0 c 97.78562,0 177.08693,79.30132 177.08693,177.08693 0,97.78562 -79.30131,177.08694 -177.08693,177.08694 -97.78562,0 -177.086937,-79.30132 -177.086937,-177.08694 C 78.908603,79.30132 158.20992,0 255.99554,0"
style="clip-rule:evenodd;fill:#cccccc;fill-rule:evenodd;stroke-width:0.89253" />
<path
class="st1"
d="m 265.13554,141.8 c 97.82132,0 177.14941,79.30132 177.14941,177.08693 0,97.78562 -79.32809,177.08694 -177.14941,177.08694 -56.14908,-37.78973 -79.38165,-113.92257 -79.38165,-176.98876 0,-63.06619 23.23257,-139.32398 79.38165,-177.18511"
id="path72979"
inkscape:connector-curvature="0"
style="clip-rule:evenodd;fill:#e5e5e5;fill-rule:evenodd;stroke-width:0.89253026" />
d="m 255.99554,0 c 97.82132,0 177.14941,79.30132 177.14941,177.08693 0,97.78562 -79.32809,177.08694 -177.14941,177.08694 C 199.84646,316.38414 176.61389,240.2513 176.61389,177.18511 176.61389,114.11892 199.84646,37.86113 255.99554,0"
style="clip-rule:evenodd;fill:#e5e5e5;fill-rule:evenodd;stroke-width:0.89253" />
<polygon
class="st3"
points="582.79,549.77 582.79,372.95 295.96,538.62 295.96,715.45 "
id="polygon72981"
transform="matrix(0.89253029,0,0,0.89253029,0.98227315,15.239205)"
transform="matrix(0.89253029,0,0,0.89253029,-8.1577269,-126.5608)"
style="clip-rule:evenodd;fill:#37beff;fill-rule:evenodd" />
<polygon
class="st0"
points="9.14,549.77 9.14,372.95 295.96,538.62 295.96,715.45 "
id="polygon72983"
transform="matrix(0.89253029,0,0,0.89253029,0.98227315,15.239205)"
transform="matrix(0.89253029,0,0,0.89253029,-8.1577269,-126.5608)"
style="clip-rule:evenodd;fill:#404f54;fill-rule:evenodd" />
</svg>

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB