From c77dca8c68d55ccea5756e336f8b43f13ec1c6e7 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 28 Mar 2021 20:15:29 +0200 Subject: Fix build output to use currentColor --- scripts/build.sh | 4 ++-- src/icons/bring-forward.svg | 2 +- src/icons/bring-front.svg | 2 +- src/icons/coffee-pot.svg | 2 +- src/icons/coffee-to-go.svg | 4 ++-- src/icons/heart-filled.svg | 2 +- src/icons/send-back.svg | 2 +- src/icons/send-backward.svg | 2 +- src/icons/star-filled.svg | 2 +- src/icons/star-half-filled.svg | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 62822a3..63dbff2 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,13 +1,13 @@ #!/bin/bash handle () { - scour -i "$1" -o "output${1#"src/icons"}" \ + scour -i "$1" \ --enable-viewboxing \ --enable-id-stripping \ --enable-comment-stripping \ --remove-descriptive-elements \ --strip-xml-prolog \ - --shorten-ids + --shorten-ids | sed -z 's/\(fill\|stroke\)="#.\{3,6\}"/\1="currentColor"/g' > "output${1#"src/icons"}" } export -f handle diff --git a/src/icons/bring-forward.svg b/src/icons/bring-forward.svg index fd91bc0..6703a16 100644 --- a/src/icons/bring-forward.svg +++ b/src/icons/bring-forward.svg @@ -58,7 +58,7 @@ id="grid823" /> diff --git a/src/icons/heart-filled.svg b/src/icons/heart-filled.svg index d4c4490..61ffa03 100644 --- a/src/icons/heart-filled.svg +++ b/src/icons/heart-filled.svg @@ -59,7 +59,7 @@ diff --git a/src/icons/send-back.svg b/src/icons/send-back.svg index 3dbc0e5..37b9de0 100644 --- a/src/icons/send-back.svg +++ b/src/icons/send-back.svg @@ -71,7 +71,7 @@ d="m 1.5,0.7500004 h 3 c 0.4155,0 0.75,0.3345 0.75,0.75 V 4.5 c 0,0.4155 -0.3345,0.75 -0.75,0.75 h -3 C 1.0845,5.25 0.75,4.9155 0.75,4.5 V 1.5000004 c 0,-0.4155 0.3345,-0.75 0.75,-0.75 z" style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:markers stroke fill" />