From 010a1fa7c8e9390253359dfe96c6d966451e02e4 Mon Sep 17 00:00:00 2001 From: Swapnil Sarwe Date: Fri, 10 Mar 2023 20:49:38 +0530 Subject: [PATCH] icon updates with correct fill attributes --- config/generation.php | 6 ++++++ resources/svg/sc-github.svg | 2 +- resources/svg/sc-linkedin.svg | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/config/generation.php b/config/generation.php index eefd574..1d97ec3 100644 --- a/config/generation.php +++ b/config/generation.php @@ -10,6 +10,12 @@ $iconProcessor = new IconProcessor($tempFilepath, $iconSet); $iconProcessor ->optimize() + ->postOptimizationAsString(function ($svgLine) { + return str_replace([ + 'fill="#231F20"', + 'fill="#181616"', + ], 'fill="currentColor"', $svgLine); + }) ->save(filenameCallable: function ($filename){ return str_replace('ei-', '', $filename); }); diff --git a/resources/svg/sc-github.svg b/resources/svg/sc-github.svg index 6aead4f..6e156d1 100644 --- a/resources/svg/sc-github.svg +++ b/resources/svg/sc-github.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/resources/svg/sc-linkedin.svg b/resources/svg/sc-linkedin.svg index 9782f04..40f91b7 100644 --- a/resources/svg/sc-linkedin.svg +++ b/resources/svg/sc-linkedin.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file