Skip to content

Commit

Permalink
chore: improved solid volume icon
Browse files Browse the repository at this point in the history
Updated solid volume icon. IMHO this version stands out (pops) better
and is a little clearer on the solid background, plus it will match
with the PVC icon (PR incoming) that really requires the full outline.

Raised as part of containers#7641.

Signed-off-by: Tim deBoer <git@tdeboer.ca>
  • Loading branch information
deboer-tim committed Jun 18, 2024
1 parent c1ac129 commit 62b5d48
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions packages/renderer/src/lib/images/VolumeIcon.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,10 @@ export let solid = false;
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
{#if solid}
<defs>
<mask id="volumemask">
<rect x="0" y="0" width="100" height="100" fill="white"></rect>
<path
style="stroke-linejoin:round;stroke-miterlimit:10"
d="M 8,-0.5 C 5.308199,-0.44627808 2.7353389,-0.26074086 0.3828125,0.73242187 -0.08998295,0.99973104 -0.5,1.3654569 -0.5,1.9121094 v 5.1757812 c 0,0.5466525 0.41001705,0.9123784 0.8828125,1.1796875 C 2.7589104,9.3313527 5.7271019,9.491748 8,9.5 10.691802,9.4462782 13.264661,9.2607406 15.617188,8.2675781 16.246686,7.9041374 16.5,7.8219799 16.5,7.0878906 V 1.9121094 C 16.5,1.3654569 16.089983,0.99973104 15.617188,0.73242187 13.24109,-0.33135254 10.272898,-0.49174799 8,-0.5 Z m 0,1 c 2.649222,0.0569525 5.021785,0.005065 7.5,1.4121094 0,-0.018671 -0.03806,0.1200895 -0.375,0.3105469 C 12.902157,3.1721288 10.113737,3.3183277 8,3.3261719 5.4907046,3.2640566 3.1296592,3.1307059 0.875,2.2226563 0.53806505,2.0321989 0.5,1.8934389 0.5,1.9121094 2.9262917,0.39519991 5.8400742,0.50801972 8,0.5 Z M 0.5,3.1328125 C 2.8423807,4.1650465 5.7688795,4.318076 8,4.3261719 10.645243,4.2636654 13.190761,4.1064332 15.5,3.1328125 V 7.0878906 C 13.289959,8.4696007 10.159926,8.4919803 8,8.5 5.3507782,8.4430475 2.6797453,8.3254743 0.5,7.0878906 Z"
></path>
</mask>
</defs>
<g transform="translate(-0.50925903,-15.109665)">
<g transform="matrix(0.26458333,0,0,0.26458333,1.5675951,17.09404)">
<path
style="fill:currentColor;fill-rule:nonzero;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none"
mask="url(#volumemask)"
d="m 16,1.913 z m 0,0 C 16,2.969 12.418,3.826 8,3.826 3.582,3.826 0,2.969 0,1.913 v 0 C 0,0.856 3.582,0 8,0 c 4.418,0 8,0.856 8,1.913 z m 0,0 V 7.087 C 16,8.144 12.418,9 8,9 3.582,9 0,8.144 0,7.087 V 1.913"
></path>
</g>
</g>
<path
style="fill:currentColor;fill-rule:evenodd;stroke-width:1.16856;stroke-linejoin:round;stroke-miterlimit:10"
d="M 8.0000005,-2.1098166 C 4.9236594,-2.0456273 1.9822664,-1.8236887 -0.70633337,-0.63702079 -1.2466699,-0.31763012 -1.7142854,0.11857915 -1.7142854,0.77174039 V 6.9570083 c 0,0.6531601 0.4676155,1.0893704 1.00795203,1.4087612 C 2.0092046,9.6368073 5.4024052,9.8287063 8.0000005,9.8385653 11.076342,9.774379 14.017735,9.5524379 16.706334,8.3657695 17.42576,7.9315179 17.714286,7.8341251 17.714286,6.9570083 V 0.77174039 c 0,-0.65316124 -0.467615,-1.08937051 -1.007952,-1.40876118 C 13.990796,-1.9080574 10.597596,-2.0999567 8.0000005,-2.1098166 Z m 0,0.9747489 c 2.2728955,0.00825 5.2416495,0.16711398 7.6177455,1.23088732 0.472795,0.2673089 0.882255,0.63443065 0.882255,1.18108258 v 5.1749443 c 0,0.7340886 -0.252758,0.8176423 -0.882255,1.1810826 C 13.265221,8.6260906 10.6918,8.8100947 8.0000005,8.8638164 5.7271046,8.8555644 2.7583503,8.6967026 0.38225482,7.6329291 -0.09054016,7.3656203 -0.49999966,6.9984985 -0.49999966,6.4518465 V 1.2769022 c 0,-0.54665193 0.4094595,-0.91377368 0.88225448,-1.18108258 C 2.7347789,-0.89734212 5.3082022,-1.0813458 8.0000005,-1.1350677 Z m 0,0.99846544 c -2.1599237,0.00802 -5.0728738,-0.10340349 -7.49916309,1.41350446 0,-0.018671 0.0377864,0.1202292 0.37472099,0.3106864 C 3.1302153,2.4956373 5.4907076,2.6282915 8.0000005,2.6904067 10.113735,2.6825625 12.901602,2.5370602 15.124443,1.5875886 15.461382,1.3971314 15.499164,1.2582312 15.499164,1.2769022 13.020951,-0.13014077 10.64922,-0.07964981 8.0000005,-0.13660226 Z M 0.50083741,2.4983029 V 6.4518465 C 2.6805805,7.689429 5.3507813,7.8083985 8.0000005,7.865351 10.159924,7.8573313 13.289125,7.8335552 15.499164,6.4518465 V 2.4983029 C 13.189927,3.4719226 10.645241,3.6287373 8.0000005,3.6912438 5.7688822,3.6831479 2.8432158,3.5305359 0.50083741,2.4983029 Z"
transform="matrix(0.23157948,0,0,0.23157948,1.3229933,2.3405899)" />
{:else}
<g transform="translate(-0.50925903,-15.109665)">
<g transform="matrix(0.26458333,0,0,0.26458333,1.5675951,17.09404)">
Expand Down

0 comments on commit 62b5d48

Please sign in to comment.