support svgs with currentColor

This commit is contained in:
galister
2025-12-20 19:32:24 +09:00
parent 796fdcbc01
commit 4c06fef35d
72 changed files with 78 additions and 73 deletions

View File

@@ -33,7 +33,7 @@
inkscape:current-layer="svg1" />
<!-- Icon from Material Symbols by Google - https://github.com/google/material-design-icons/blob/master/LICENSE -->
<path
fill="white"
fill="currentColor"
d="m 5.7477204,20.336375 c -1.5283351,0 -2.8366825,-0.544181 -3.9250422,-1.63254 C 0.73431841,17.615476 0.19013847,16.307128 0.19013847,14.778793 V 9.1170061 c 0,-1.1809862 0.37050551,-2.2174752 1.11151643,-3.1094671 C 2.0426657,5.1155471 2.9920861,4.5658096 4.1499156,4.3583266 5.4698413,4.1036041 6.7781887,3.9243721 8.0749578,3.8206305 9.3717264,3.716889 10.680074,3.6645552 12,3.6636289 c 1.319926,-9.264e-4 2.634294,0.051408 3.943104,0.1570016 1.308811,0.1055941 2.611137,0.2848261 3.90698,0.5376961 1.15783,0.2315659 2.107251,0.7873241 2.848261,1.6672746 0.741011,0.8799504 1.111517,1.9104187 1.111517,3.0914049 v 5.6617869 c 0,1.528335 -0.544181,2.836683 -1.63254,3.925042 -1.088359,1.088359 -2.396707,1.63254 -3.925042,1.63254 h -1.389396 c -0.301036,0 -0.602071,-0.0176 -0.903107,-0.0528 -0.301036,-0.03519 -0.590493,-0.110221 -0.868372,-0.225083 L 12.868372,19.294328 C 12.590493,19.17855 12.301036,19.120653 12,19.120653 c -0.301036,0 -0.590493,0.0579 -0.868372,0.173675 l -2.2230329,0.764167 c -0.2778791,0.115783 -0.5673365,0.19081 -0.8683722,0.225083 -0.3010357,0.03427 -0.6020713,0.05187 -0.9031071,0.0528 z m 0,-2.778791 h 1.3893954 c 0.1620962,0 0.3186347,-0.01153 0.4696157,-0.03473 0.150981,-0.02316 0.2954782,-0.0579 0.4334914,-0.104205 0.6715411,-0.208409 1.325946,-0.428396 1.9632161,-0.659963 0.63727,-0.231566 1.30279,-0.347349 1.996561,-0.347349 0.693771,0 1.365313,0.110221 2.014623,0.330676 0.649311,0.220452 1.297696,0.445996 1.945154,0.676636 0.13894,0.04631 0.283899,0.08104 0.434881,0.104205 0.150981,0.02316 0.307056,0.03473 0.468226,0.03473 h 1.389396 c 0.764167,0 1.418572,-0.271859 1.963215,-0.815576 0.544643,-0.543716 0.816502,-1.198121 0.815576,-1.963215 V 9.1170061 c 0,-0.5094451 -0.162097,-0.9494202 -0.486289,-1.3199257 C 20.22059,7.4265749 19.81535,7.1834307 19.329061,7.0676478 18.124918,6.8129253 16.914754,6.6452715 15.698571,6.5646866 14.482387,6.4841017 13.249529,6.4433461 12,6.4424198 10.750471,6.4414935 9.5231705,6.4878068 8.318102,6.5813593 7.113033,6.6749119 5.897312,6.8370081 4.6709389,7.0676478 4.1846505,7.1602742 3.7794101,7.3978608 3.4552178,7.7804076 3.1310256,8.1629545 2.9689294,8.6084873 2.9689294,9.1170061 v 5.6617869 c 0,0.764167 0.2723215,1.418572 0.8169646,1.963215 0.544643,0.544643 1.1985852,0.816502 1.9618264,0.815576 m 0,0 c -0.7641675,0 -1.4181097,-0.271859 -1.9618264,-0.815576 C 3.2421772,16.198292 2.9698557,15.543887 2.9689294,14.778793 V 9.1170061 c 0,-0.5094451 0.1620962,-0.9549778 0.4862884,-1.3365985 C 3.7794101,7.398787 4.1846505,7.1612003 4.6709389,7.0676478 5.8982382,6.8360818 7.1139592,6.6739858 8.318102,6.5813593 9.5222452,6.4887329 10.749544,6.4424198 12,6.4424198 c 1.250456,0 2.483776,0.040755 3.69996,0.1222668 1.216184,0.081512 2.425885,0.2491649 3.629101,0.5029612 0.486289,0.1157825 0.891529,0.3589271 1.215721,0.7294326 0.324192,0.3705055 0.486289,0.8104806 0.486289,1.3199257 v 5.6617869 c 0,0.764167 -0.271859,1.418572 -0.815576,1.963215 -0.543716,0.544643 -1.198121,0.816502 -1.963215,0.815576 h -1.389396 c -0.162096,0 -0.318171,-0.01153 -0.468226,-0.03473 -0.150055,-0.02316 -0.295015,-0.0579 -0.434881,-0.104205 C 15.311392,17.187078 14.663008,16.96107 14.014623,16.740619 13.366238,16.520168 12.694698,16.41087 12,16.412722 c -0.694698,0.0018 -1.360218,0.11764 -1.996561,0.347349 -0.6363434,0.229713 -1.2907487,0.449701 -1.9632161,0.659962 -0.1389395,0.04631 -0.2834367,0.08104 -0.4334914,0.104205 -0.1500547,0.02316 -0.3065933,0.03427 -0.4696157,0.03335 z"
id="path1"
style="fill:#ffffff;fill-opacity:1;stroke-width:1.3894"

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB