Skip to content

Commit

Permalink
fix: app icon color
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <[email protected]>
  • Loading branch information
elzody committed May 2, 2024
1 parent cc83948 commit 6ff449a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions img/app.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/file-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ const richdocuments = getCapabilities().richdocuments

const openPdf = new FileAction({
id: 'office-open-pdf',
iconSvgInline: () => appIcon,

iconSvgInline: () => {
// Make sure the icon is the correct color
return appIcon.replaceAll(/#(fff|0{6})/g, 'currentColor')
},

displayName: () => {
return t('richdocuments',
Expand Down

0 comments on commit 6ff449a

Please sign in to comment.