Skip to content

Commit

Permalink
icon updates with correct fill attributes (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnilsarwe authored Mar 10, 2023
1 parent c5293a6 commit 2ad7332
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions config/generation.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
$iconProcessor = new IconProcessor($tempFilepath, $iconSet);
$iconProcessor
->optimize()
->postOptimizationAsString(function ($svgLine){
return str_replace([
'fill="#010101"'
], 'fill="currentColor"', $svgLine);
})
->save();
}catch (InvalidFileExtensionException $e) {
print_r($e->getMessage());
Expand Down
2 changes: 1 addition & 1 deletion resources/svg/all-out.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/svg/arrow-downward.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/svg/art-track.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/svg/fiber-manual-record.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/svg/next-week.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/svg/strikethrough-s.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/svg/web-asset.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/svg/weekend.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2ad7332

Please sign in to comment.