Changed icons SVG

Changed the way colours were managed in the SVG files to make them more amenable to scripting. Changed the scripts to automate icon resizing.

Co-Authored-By: Joseph Abbey <me@josephabbey.dev>
This commit is contained in:
Philip Abbey
2025-11-11 19:57:51 +00:00
parent 38d9c2c06d
commit 0d6c3a10c6
85 changed files with 507 additions and 226 deletions

View File

@@ -1,7 +1,11 @@
<svg height="28" viewBox="0 0 960 960" width="28" xmlns="http://www.w3.org/2000/svg">
<style id="colours">
.colour1 { color: #aa0000; }
.colour2 { color: #ff1111; }
</style>
<style>
.colour1 { stroke: #aa0000; }
.colour2 { fill: #ff1111; }
.colour1 { stroke: currentColor; }
.colour2 { fill: currentColor; }
text.large { font: bold 600px sans-serif; }
</style>
<circle class="colour1" cx="480" cy="480" fill-opacity="0.0" r="400" stroke-width="60"/>

Before

Width:  |  Height:  |  Size: 440 B

After

Width:  |  Height:  |  Size: 548 B

View File

@@ -1,7 +1,10 @@
<svg height="28" viewBox="0 0 960 960" width="28" xmlns="http://www.w3.org/2000/svg">
<style id="colours">
.colour1 { color: #0091ff; }
.colour2 { color: #00ccff; }
</style>
<style>
.colour1 { fill: #0091ff; }
.colour2 { fill: #00ccff; }
.colour1, .colour2 { fill: currentColor; }
</style>
<rect class="colour1" height="160" rx="20" ry="20" width="560" x="300" y="160"/>
<rect class="colour1" height="160" rx="20" ry="20" width="560" x="300" y="400"/>

Before

Width:  |  Height:  |  Size: 572 B

After

Width:  |  Height:  |  Size: 653 B

View File

@@ -1,7 +1,11 @@
<svg height="28" viewBox="0 0 960 960" width="28" xmlns="http://www.w3.org/2000/svg">
<style id="colours">
.colour1 { color: #0091ff; }
.colour2 { color: #00ccff; }
</style>
<style>
.colour1 { stroke: #0091ff; }
.colour2 { fill: #00ccff; }
.colour1 { stroke: currentColor; }
.colour2 { fill: currentColor; }
</style>
<circle class="colour1" cx="480" cy="480" fill-opacity="0.0" r="400" stroke-width="60"/>
<g class="colour2">

Before

Width:  |  Height:  |  Size: 392 B

After

Width:  |  Height:  |  Size: 500 B

View File

@@ -1,10 +1,13 @@
<svg height="28" viewBox="0 0 960 960" width="28" xmlns="http://www.w3.org/2000/svg">
<style id="colours">
.colour1 { color: #0091ff; }
.colour2 { color: #00ccff; }
</style>
<style>
text.small { font: bold 400px sans-serif; }
text.large { font: bold 500px sans-serif; }
.colour1 { fill: #0091ff; }
.colour2 { fill: #00ccff; }
rect.colour2 { stroke: #00ccff; }
.colour1, .colour2 { fill: currentColor; }
rect.colour2 { stroke: currentColor; }
</style>
<rect class="colour2" fill-opacity="0.0" height="700" rx="100" ry="100" stroke-width="60" width="900" x="30" y="130"/>
<text class="small colour1" x="110" y="610">1</text>

Before

Width:  |  Height:  |  Size: 589 B

After

Width:  |  Height:  |  Size: 675 B

View File

@@ -1,7 +1,10 @@
<svg height="28" viewBox="0 0 960 960" width="28" xmlns="http://www.w3.org/2000/svg">
<style id="colours">
.colour1 { color: #0091ff; }
.colour2 { color: #00ccff; }
</style>
<style>
.colour1 { fill: #0091ff; }
.colour2 { fill: #00ccff; }
.colour1, .colour2 { fill: currentColor; }
</style>
<g>
<path class="colour1" d="m463.2,216.48c58.5,0 94.47,43.11 97.5,103.57l0,8l0,93.79l96.2,18.22c3.9,0.44 7.37,1.33 11.26,2.22c72.37,20 116.57,94.67 101.39,168.91l-1.73,8l-45.5,174.69c-9.53,36 -37.7,63.56 -73.23,71.56l-6.94,1.33l-104.86,15.56c-40.3,5.78 -79.3,-14.22 -98.8,-49.79l-3.47,-7.11l-1.3,-2.66c-10.4,-22.67 -25.57,-42.22 -44.64,-56.9l-8.24,-6.22l-81.47,-56.01l-4.34,-2.66l0,0l-4.34,-2.22l-102.26,-52.01c-10.83,-5.78 -17.77,-16.89 -17.77,-29.34c-1.3,-49.33 19.93,-87.12 61.1,-108.46c30.76,-15.56 71.06,-14.67 122.63,0.89l11.26,3.56l0,-185.35c0,-64.45 36.4,-111.57 97.5,-111.57l0.02,-0.01zm0,66.67c-19.93,0 -30.76,12 -32.5,38.67l0,6.22l0,232.91c0,24 -23.4,40.01 -45.07,31.11c-63.27,-27.12 -105.73,-33.34 -124.36,-23.56c-11.26,5.78 -18.2,12.89 -22.1,23.11l-1.73,5.33l82.33,42.22l7.8,4.45l0,0l7.8,4.45l81.47,56.01c29.46,20 53.73,47.56 70.63,79.57l5.2,11.11l1.3,2.66c5.2,12 16.9,19.11 29.46,19.11l4.34,0l104.86,-15.56c11.26,-1.77 20.8,-9.34 25.14,-20l1.73,-4.45l45.5,-174.24c10.83,-41.78 -13.43,-84.45 -53.73,-95.56l-3.03,-0.44l0,0l-125.66,-23.56c-14.3,-2.66 -24.7,-14.22 -26.44,-28l-0.43,-4.89l0,-121.79c0,-30.67 -10.83,-44.9 -32.5,-44.9l0,0.02z"/>

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB