fixed S19 icons
This commit is contained in:
parent
a15ccf414f
commit
39dfc1ed28
@ -1 +1 @@
|
||||
<svg class="color-immutable" width="59" height="20" viewBox="0 0 59 20" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path d="M1.792.5h55.416c.71 0 1.292.58 1.292 1.3v16.4c0 .72-.58 1.3-1.292 1.3H1.792C1.082 19.5.5 18.92.5 18.2V1.8c0-.72.581-1.3 1.292-1.3Z" stroke="#fff"/><path d="M12.798 7.659h-2.405c-.047-.564-.258-.994-.633-1.29-.369-.3-.888-.45-1.558-.45-.596 0-1.06.118-1.392.356-.327.232-.49.559-.49.98 0 .38.158.654.474.823.306.169 1.081.406 2.326.712 1.313.327 2.223.657 2.729.989.933.612 1.4 1.463 1.4 2.555 0 1.197-.47 2.14-1.408 2.832-.828.606-1.949.91-3.362.91-1.571 0-2.792-.36-3.662-1.076-.87-.718-1.321-1.738-1.353-3.062h2.515c.037.644.203 1.121.499 1.432.464.496 1.163.744 2.096.744.633 0 1.134-.124 1.503-.372.416-.285.625-.673.625-1.163s-.293-.849-.878-1.076c-.322-.126-1.081-.356-2.278-.688-.75-.205-1.335-.4-1.756-.585-.422-.185-.76-.39-1.013-.617-.59-.528-.886-1.255-.886-2.183 0-1.113.462-1.994 1.384-2.642.786-.554 1.807-.831 3.062-.831 1.102 0 2.025.219 2.768.657 1.07.627 1.635 1.642 1.693 3.045ZM22.147 4.234v11.565h-2.31v-7.57h-2.721V6.552c.564-.016 1.023-.074 1.376-.174.359-.1.686-.264.981-.49.427-.328.715-.879.862-1.654h1.812ZM25.4069999999999964 12.896h2.183c.18.896.699 1.344 1.558 1.344.485 0 .878-.163 1.179-.49.306-.332.54-.847.704-1.543.105-.443.182-.946.23-1.51-.354.495-.718.849-1.092 1.06-.37.205-.82.308-1.353.308-.849 0-1.587-.248-2.215-.744A3.544 3.544 0 0 1 35.35 9.97a4.446 4.446 0 0 1-.364-1.804c0-1.302.446-2.357 1.337-3.164.764-.696 1.682-1.044 2.752-1.044.66 0 1.269.148 1.828.443a3.962 3.962 0 0 1 1.408 1.258c.67.965 1.004 2.32 1.004 4.066 0 1.613-.295 2.99-.886 4.129-.77 1.482-1.935 2.222-3.496 2.222-1.039 0-1.898-.287-2.579-.862-.675-.575-1.065-1.347-1.17-2.317Zm3.844-6.985c-.496 0-.915.203-1.258.609-.342.411-.514.933-.514 1.566 0 .512.124.965.372 1.36.337.544.812.815 1.424.815.553 0 .996-.221 1.329-.664.31-.417.466-.912.466-1.487 0-.607-.16-1.12-.482-1.543a1.606 1.606 0 0 0-1.337-.656Z" fill="#fff"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h59v20H0z"/></clipPath></defs></svg>
|
||||
<svg class="color-immutable" width="59" height="20" viewBox="0 0 59 20" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path d="M1.792.5h55.416c.71 0 1.292.58 1.292 1.3v16.4c0 .72-.58 1.3-1.292 1.3H1.792C1.082 19.5.5 18.92.5 18.2V1.8c0-.72.581-1.3 1.292-1.3Z" stroke="#fff"/><path d="M12.798 7.659h-2.405c-.047-.564-.258-.994-.633-1.29-.369-.3-.888-.45-1.558-.45-.596 0-1.06.118-1.392.356-.327.232-.49.559-.49.98 0 .38.158.654.474.823.306.169 1.081.406 2.326.712 1.313.327 2.223.657 2.729.989.933.612 1.4 1.463 1.4 2.555 0 1.197-.47 2.14-1.408 2.832-.828.606-1.949.91-3.362.91-1.571 0-2.792-.36-3.662-1.076-.87-.718-1.321-1.738-1.353-3.062h2.515c.037.644.203 1.121.499 1.432.464.496 1.163.744 2.096.744.633 0 1.134-.124 1.503-.372.416-.285.625-.673.625-1.163s-.293-.849-.878-1.076c-.322-.126-1.081-.356-2.278-.688-.75-.205-1.335-.4-1.756-.585-.422-.185-.76-.39-1.013-.617-.59-.528-.886-1.255-.886-2.183 0-1.113.462-1.994 1.384-2.642.786-.554 1.807-.831 3.062-.831 1.102 0 2.025.219 2.768.657 1.07.627 1.635 1.642 1.693 3.045ZM22.147 4.234v11.565h-2.31v-7.57h-2.721V6.552c.564-.016 1.023-.074 1.376-.174.359-.1.686-.264.981-.49.427-.328.715-.879.862-1.654h1.812ZM25.4069999999999964 12.896h2.183c.18.896.699 1.344 1.558 1.344.485 0 .878-.163 1.179-.49.306-.332.54-.847.704-1.543.105-.443.182-.946.23-1.51-.354.495-.718.849-1.092 1.06-.37.205-.82.308-1.353.308-.849 0-1.587-.248-2.215-.744A3.544 3.544 0 0 1 25.5735 9.97a4.446 4.446 0 0 1-.364-1.804c0-1.302.446-2.357 1.337-3.164.764-.696 1.682-1.044 2.752-1.044.66 0 1.269.148 1.828.443a3.962 3.962 0 0 1 1.408 1.258c.67.965 1.004 2.32 1.004 4.066 0 1.613-.295 2.99-.886 4.129-.77 1.482-1.935 2.222-3.496 2.222-1.039 0-1.898-.287-2.579-.862-.675-.575-1.065-1.347-1.17-2.317Zm3.844-6.985c-.496 0-.915.203-1.258.609-.342.411-.514.933-.514 1.566 0 .512.124.965.372 1.36.337.544.812.815 1.424.815.553 0 .996-.221 1.329-.664.31-.417.466-.912.466-1.487 0-.607-.16-1.12-.482-1.543a1.606 1.606 0 0 0-1.337-.656Z" fill="#fff"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h59v20H0z"/></clipPath></defs></svg>
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
@ -1 +1 @@
|
||||
<svg class="color-immutable" width="59" height="20" viewBox="0 0 59 20" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path d="M1.792 0h55.416C58.197 0 59 .806 59 1.8v16.4c0 .994-.801 1.8-1.792 1.8H1.792A1.797 1.797 0 0 1 0 18.2V1.8C0 .806.803 0 1.792 0Z" fill="#000"/><path d="M12.798 7.659h-2.405c-.047-.564-.258-.994-.633-1.29-.369-.3-.888-.45-1.558-.45-.596 0-1.06.118-1.392.356-.327.232-.49.559-.49.98 0 .38.158.654.474.823.306.169 1.081.406 2.326.712 1.313.327 2.223.657 2.729.989.933.612 1.4 1.463 1.4 2.555 0 1.197-.47 2.14-1.408 2.832-.828.606-1.949.91-3.362.91-1.571 0-2.792-.36-3.662-1.076-.87-.718-1.321-1.738-1.353-3.062h2.515c.037.644.203 1.121.499 1.432.464.496 1.163.744 2.096.744.633 0 1.134-.124 1.503-.372.416-.285.625-.673.625-1.163s-.293-.849-.878-1.076c-.322-.126-1.081-.356-2.278-.688-.75-.205-1.335-.4-1.756-.585-.422-.185-.76-.39-1.013-.617-.59-.528-.886-1.255-.886-2.183 0-1.113.462-1.994 1.384-2.642.786-.554 1.807-.831 3.062-.831 1.102 0 2.025.219 2.768.657 1.07.627 1.635 1.642 1.693 3.045ZM22.147 4.234v11.565h-2.31v-7.57h-2.721V6.552c.564-.016 1.023-.074 1.376-.174.359-.1.686-.264.981-.49.427-.328.715-.879.862-1.654h1.812ZM25.4069999999999964 12.896h2.183c.18.896.699 1.344 1.558 1.344.485 0 .878-.163 1.179-.49.306-.332.54-.847.704-1.543.105-.443.182-.946.23-1.51-.354.495-.718.849-1.092 1.06-.37.205-.82.308-1.353.308-.849 0-1.587-.248-2.215-.744A3.544 3.544 0 0 1 35.35 9.97a4.446 4.446 0 0 1-.364-1.804c0-1.302.446-2.357 1.337-3.164.764-.696 1.682-1.044 2.752-1.044.66 0 1.269.148 1.828.443a3.962 3.962 0 0 1 1.408 1.258c.67.965 1.004 2.32 1.004 4.066 0 1.613-.295 2.99-.886 4.129-.77 1.482-1.935 2.222-3.496 2.222-1.039 0-1.898-.287-2.579-.862-.675-.575-1.065-1.347-1.17-2.317Zm3.844-6.985c-.496 0-.915.203-1.258.609-.342.411-.514.933-.514 1.566 0 .512.124.965.372 1.36.337.544.812.815 1.424.815.553 0 .996-.221 1.329-.664.31-.417.466-.912.466-1.487 0-.607-.16-1.12-.482-1.543a1.606 1.606 0 0 0-1.337-.656Z" fill="#fff"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h59v20H0z"/></clipPath></defs></svg>
|
||||
<svg class="color-immutable" width="59" height="20" viewBox="0 0 59 20" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path d="M1.792 0h55.416C58.197 0 59 .806 59 1.8v16.4c0 .994-.801 1.8-1.792 1.8H1.792A1.797 1.797 0 0 1 0 18.2V1.8C0 .806.803 0 1.792 0Z" fill="#000"/><path d="M12.798 7.659h-2.405c-.047-.564-.258-.994-.633-1.29-.369-.3-.888-.45-1.558-.45-.596 0-1.06.118-1.392.356-.327.232-.49.559-.49.98 0 .38.158.654.474.823.306.169 1.081.406 2.326.712 1.313.327 2.223.657 2.729.989.933.612 1.4 1.463 1.4 2.555 0 1.197-.47 2.14-1.408 2.832-.828.606-1.949.91-3.362.91-1.571 0-2.792-.36-3.662-1.076-.87-.718-1.321-1.738-1.353-3.062h2.515c.037.644.203 1.121.499 1.432.464.496 1.163.744 2.096.744.633 0 1.134-.124 1.503-.372.416-.285.625-.673.625-1.163s-.293-.849-.878-1.076c-.322-.126-1.081-.356-2.278-.688-.75-.205-1.335-.4-1.756-.585-.422-.185-.76-.39-1.013-.617-.59-.528-.886-1.255-.886-2.183 0-1.113.462-1.994 1.384-2.642.786-.554 1.807-.831 3.062-.831 1.102 0 2.025.219 2.768.657 1.07.627 1.635 1.642 1.693 3.045ZM22.147 4.234v11.565h-2.31v-7.57h-2.721V6.552c.564-.016 1.023-.074 1.376-.174.359-.1.686-.264.981-.49.427-.328.715-.879.862-1.654h1.812ZM25.4069999999999964 12.896h2.183c.18.896.699 1.344 1.558 1.344.485 0 .878-.163 1.179-.49.306-.332.54-.847.704-1.543.105-.443.182-.946.23-1.51-.354.495-.718.849-1.092 1.06-.37.205-.82.308-1.353.308-.849 0-1.587-.248-2.215-.744A3.544 3.544 0 0 1 25.5735 9.97a4.446 4.446 0 0 1-.364-1.804c0-1.302.446-2.357 1.337-3.164.764-.696 1.682-1.044 2.752-1.044.66 0 1.269.148 1.828.443a3.962 3.962 0 0 1 1.408 1.258c.67.965 1.004 2.32 1.004 4.066 0 1.613-.295 2.99-.886 4.129-.77 1.482-1.935 2.222-3.496 2.222-1.039 0-1.898-.287-2.579-.862-.675-.575-1.065-1.347-1.17-2.317Zm3.844-6.985c-.496 0-.915.203-1.258.609-.342.411-.514.933-.514 1.566 0 .512.124.965.372 1.36.337.544.812.815 1.424.815.553 0 .996-.221 1.329-.664.31-.417.466-.912.466-1.487 0-.607-.16-1.12-.482-1.543a1.606 1.606 0 0 0-1.337-.656Z" fill="#fff"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h59v20H0z"/></clipPath></defs></svg>
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
@ -42,6 +42,16 @@ def convert_svg(sn_svg):
|
||||
x -= WIDTH
|
||||
path = path[:pos[0]+1] + str(x) + path[pos[0] + len(digit.group(1)):]
|
||||
|
||||
digits = list(re.finditer("A(.*? .*? .*? .*? .*? \d+(\.\d+)?)", path))[::-1]
|
||||
|
||||
for digit in digits:
|
||||
pos = digit.span()
|
||||
s, d = digit.group(1).rsplit(" ", 1)
|
||||
x = float(d)
|
||||
x -= WIDTH
|
||||
d = s + " " + str(x)
|
||||
path = path[:pos[0]+1] + d + path[pos[0] + len(digit.group(1)):]
|
||||
|
||||
path = S + "Z" + path
|
||||
sn_svg = sn_svg[:path_pos[0]] + path + sn_svg[path_pos[1]:]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user