Skip to content

Commit

Permalink
fix: incorrect icon fill colors (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter authored Aug 8, 2024
1 parent 3c7ce23 commit c5d5127
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions icons/frappe/folder_tauri.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions icons/frappe/folder_tauri_open.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions icons/macchiato/folder_tauri.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions icons/macchiato/folder_tauri_open.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions icons/mocha/folder_tauri.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions icons/mocha/folder_tauri_open.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 scripts/icons/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ try {
const svg = new SVG(readFileSync(resolve(originPath, i), 'utf8'))
parseColors(svg, {
callback(attr, color) {
if (attr === 'stroke') {
if ((attr === 'stroke' || attr === 'fill') && color !== 'none') {
const newColorName = palettes[origin].find(v => v[1] === color.toLowerCase())?.[0]
const newColor = palettes[dest].find(v => v[0] === newColorName)?.[1]
if (!newColor)
Expand Down

0 comments on commit c5d5127

Please sign in to comment.