From 6ff449a0a42df4abff0a8f73ca25e91a3cc79a40 Mon Sep 17 00:00:00 2001 From: Elizabeth Danzberger Date: Thu, 2 May 2024 12:43:54 -0400 Subject: [PATCH] fix: app icon color Signed-off-by: Elizabeth Danzberger --- img/app.svg | 4 ++-- src/file-actions.js | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/img/app.svg b/img/app.svg index ea5d41a84d..858839619b 100644 --- a/img/app.svg +++ b/img/app.svg @@ -1,4 +1,4 @@ - - + + \ No newline at end of file diff --git a/src/file-actions.js b/src/file-actions.js index db1f3b737d..19e4033cfa 100644 --- a/src/file-actions.js +++ b/src/file-actions.js @@ -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',