Skip to content

Commit

Permalink
Merge pull request #45917 from nextcloud/fix/icons-themed
Browse files Browse the repository at this point in the history
fix: Adjust icon generation to bring back themed icons
  • Loading branch information
st3iny authored Jun 17, 2024
2 parents 642cffd + 50b9fb4 commit d0bdef3
Show file tree
Hide file tree
Showing 2 changed files with 196 additions and 196 deletions.
2 changes: 1 addition & 1 deletion core/src/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ const colorSvg = function(svg = '', color = '000') {
}

// add fill (fill is not present on black elements)
const fillRe = /<((circle|rect|path)((?!fill)[a-z0-9 =".\-#():;,])+)\/>/gmi
const fillRe = /<((circle|rect|path)((?!fill=)[a-z0-9 =".\-#():;,])+)\/>/gmi
svg = svg.replace(fillRe, '<$1 fill="#' + color + '"/>')

// replace any fill or stroke colors
Expand Down
Loading

0 comments on commit d0bdef3

Please sign in to comment.