Optimise status icons

Removed unnecessary transforms. Changed square rects which had their corner radius set to half their width into actual circles. Merged some glyphs that were a stroke and a background into one glyph with an actual stroke and background. Applied necessary transforms to actual coordinates. Dereferenced xlink symbols that were used only once.

Contributes to issue CURA-4148.
This commit is contained in:
Ghostkeeper 2017-08-24 17:10:20 +02:00
parent 974bf9de4d
commit f0c446cb28
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75
4 changed files with 17 additions and 86 deletions

View file

@ -1,22 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch -->
<title>busy - printing</title>
<desc>Created with Sketch.</desc>
<defs>
<rect id="path-1" x="1" y="1" width="16" height="16" rx="8"></rect>
</defs>
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="busy---printing">
<g id="Rectangle-45-Copy-158">
<use fill="#0CA9E3" fill-rule="evenodd" xlink:href="#path-1"></use>
<rect stroke="#272C30" stroke-width="1" x="0.5" y="0.5" width="17" height="17" rx="8.5"></rect>
</g>
<g id="Group-2" transform="translate(2.300003, 7.299999)" fill="#FFFFFF">
<rect id="Rectangle-45-Copy-158" x="10" y="0" width="3.5" height="3.5" rx="1.75"></rect>
<rect id="Rectangle-45-Copy-158" x="0" y="0" width="3.5" height="3.5" rx="1.75"></rect>
<rect id="Rectangle-45-Copy-158" x="5" y="0" width="3.5" height="3.5" rx="1.75"></rect>
</g>
</g>
</g>
<svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg">
<circle fill="#0CA9E3" cx="9" cy="9" r="8.5" stroke="#272C30" />
<circle fill="#FFFFFF" cx="4" cy="9" r="1.75" />
<circle fill="#FFFFFF" cx="9" cy="9" r="1.75" />
<circle fill="#FFFFFF" cx="14" cy="9" r="1.75" />
</svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 376 B

Before After
Before After

View file

@ -1,18 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch -->
<title>paused - maintenance</title>
<desc>Created with Sketch.</desc>
<defs>
<rect id="path-1" x="1" y="1" width="16" height="16" rx="8"></rect>
</defs>
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="paused---maintenance">
<g id="Rectangle-45-Copy-158">
<use fill="#FF8C10" fill-rule="evenodd" xlink:href="#path-1"></use>
<rect stroke="#272C30" stroke-width="1" x="0.5" y="0.5" width="17" height="17" rx="8.5"></rect>
</g>
<path d="M10,6 L12,6 L12,12 L10,12 L10,6 Z M6,6 L8,6 L8,12 L6,12 L6,6 Z" id="Rectangle-589-Copy-4" fill="#FFFFFF"></path>
</g>
</g>
<svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg">
<circle fill="#FF8C10" cx="9" cy="9" r="8.5" stroke="#272C30" />
<rect fill="#FFFFFF" x="6" y="6" width="2" height="6" />
<rect fill="#FFFFFF" x="10" y="6" width="2" height="6" />
</svg>

Before

Width:  |  Height:  |  Size: 984 B

After

Width:  |  Height:  |  Size: 339 B

Before After
Before After

View file

@ -1,31 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch -->
<title>stopped aborted</title>
<desc>Created with Sketch.</desc>
<defs>
<rect id="path-1" x="1" y="1" width="16" height="16" rx="8"></rect>
<rect id="path-2" x="3.58838835" y="-0.661611652" width="1" height="7.5"></rect>
<rect id="path-3" x="3.41161165" y="-0.661611652" width="1" height="7.5"></rect>
</defs>
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="stopped-aborted">
<g id="Rectangle-45-Copy-158">
<use fill="#D0021B" fill-rule="evenodd" xlink:href="#path-1"></use>
<rect stroke="#272C30" stroke-width="1" x="0.5" y="0.5" width="17" height="17" rx="8.5"></rect>
</g>
<g id="Group-13" transform="translate(5.000000, 6.000000)">
<g id="Group-12">
<g id="Rectangle-8" transform="translate(4.088388, 3.088388) rotate(45.000000) translate(-4.088388, -3.088388) ">
<use fill="#FFFFFF" fill-rule="evenodd" xlink:href="#path-2"></use>
<rect stroke="#FFFFFF" stroke-width="0.5" x="3.33838835" y="-0.911611652" width="1.25" height="8"></rect>
</g>
<g id="Rectangle-8" transform="translate(3.911612, 3.088388) rotate(135.000000) translate(-3.911612, -3.088388) ">
<use fill="#FFFFFF" fill-rule="evenodd" xlink:href="#path-3"></use>
<rect stroke="#FFFFFF" stroke-width="0.5" x="3.16161165" y="-0.911611652" width="1.25" height="8"></rect>
</g>
</g>
</g>
</g>
</g>
<svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg">
<circle fill="#D0021B" cx="9" cy="9" r="8.5" stroke="#272C30" />
<line x1="6" y1="6" x2="12" y2="12" stroke-width="2" stroke="#FFFFFF" />
<line x1="6" y1="12" x2="12" y2="6" stroke-width="2" stroke="#FFFFFF" />
</svg>

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 370 B

Before After
Before After

View file

@ -1,23 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch -->
<title>unknown</title>
<desc>Created with Sketch.</desc>
<defs>
<rect id="path-1" x="0" y="0" width="16" height="16" rx="8"></rect>
</defs>
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="unknown">
<g id="Group-3" transform="translate(1.000000, 1.000000)">
<g id="Rectangle-45-Copy-158">
<use fill="#8B9595" fill-rule="evenodd" xlink:href="#path-1"></use>
<rect stroke="#272C30" stroke-width="1" x="-0.5" y="-0.5" width="17" height="17" rx="8.5"></rect>
</g>
</g>
<g id="Group" transform="translate(6.000000, 3.500000)" fill="#FFFFFF">
<path d="M3.01314973,0 C1.28951337,0 0.533377003,1.015 0.236104275,1.61977273 C-0.0111684519,2.1225 -0.00298663369,2.55659091 0.00133154813,2.63840909 L1.58996791,2.55795455 L1.590877,2.58181818 C1.590877,2.58068182 1.59383155,2.46363636 1.66383155,2.32136364 C1.90542246,1.82977273 2.34678609,1.59068182 3.01314973,1.59068182 C3.47019518,1.59068182 3.81746791,1.71659091 4.07496791,1.975 C4.47655882,2.37840909 4.555877,2.98522727 4.55519518,3.12568182 C4.55428609,3.31159091 4.48974064,4.27045455 3.30564973,4.88590909 C2.31792246,5.39909091 1.75155882,6.40568182 1.75155882,7.64727273 L1.75201337,8.12113636 L3.34292246,8.11795455 L3.34246791,7.64727273 C3.34246791,7.19659091 3.46314973,6.59659091 4.03883155,6.2975 C6.03474064,5.26045455 6.14428609,3.47977273 6.145877,3.13340909 C6.148377,2.64090909 5.95224064,1.60636364 5.20246791,0.852727273 C4.64724064,0.295 3.89019518,0 3.01314973,0 Z" id="Path"></path>
<polygon id="Path" points="1.81818182 10.8863636 3.40909091 10.8863636 3.40909091 9.63636364 1.81818182 9.63636364"></polygon>
</g>
</g>
</g>
<svg width="18" height="18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
<circle cx="9" cy="9" r="8.5" fill="#8B9595" stroke="#272C30" />
<path fill="#FFFFFF" d="M9.013 3.5C7.29 3.5 6.533 4.515 6.236 5.12 5.989 5.623 5.997 6.057 6.001 6.138L7.59 6.058 7.591 6.082C7.591 6.081 7.594 5.964 7.664 5.821 7.905 5.33 8.347 5.091 9.013 5.091 9.47 5.091 9.817 5.217 10.075 5.475 10.477 5.878 10.556 6.485 10.555 6.626 10.554 6.812 10.49 7.77 9.306 8.386 8.318 8.899 7.752 9.906 7.752 11.147L7.752 11.621 9.343 11.618 9.342 11.147C9.342 10.697 9.463 10.097 10.039 9.798 12.035 8.76 12.144 6.98 12.146 6.633 12.148 6.141 11.952 5.106 11.202 4.353 10.647 3.795 9.89 3.5 9.013 3.5Z"/>
<rect fill="#FFFFFF" x="7.818" y="13.136" width="1.591" height="1.25" />
</svg>

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 814 B

Before After
Before After