From b65dc89a46b99cd6f40635b201f4f5a3eedbdf09 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Thu, 14 Jul 2022 12:38:26 +0200 Subject: [PATCH] adjust file action icon color for NC 25 Signed-off-by: Julien Veyssier --- css/filetypes.scss | 5 +---- src/viewer.js | 6 +++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/css/filetypes.scss b/css/filetypes.scss index 19048dd007..d811549b0f 100644 --- a/css/filetypes.scss +++ b/css/filetypes.scss @@ -16,8 +16,5 @@ .icon-richdocuments { background-image: url(../img/app-dark.svg); -} - -body.dark .icon-richdocuments { - background-image: url(../img/app.svg); + filter: var(--background-invert-if-dark); } diff --git a/src/viewer.js b/src/viewer.js index c7df776364..344608159d 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -41,9 +41,9 @@ if (OCA.Viewer) { // TODO: Viewer.openWith introduced with https://github.com/nextcloud/viewer/pull/1273 // This check can be replaced with `if(OCA.Viewer)` once NC 24 is EOL. if (OCA.Viewer.openWith) { - const supportedMimes = OC.getCapabilities().richdocuments.mimetypes.concat(OC.getCapabilities().richdocuments.mimetypesNoDefaultOpen) - const actionName = 'Edit with ' + OC.getCapabilities().richdocuments.productName - const actionDisplayName = t('richdocuments', 'Edit with {productName}', { productName: OC.getCapabilities().richdocuments.productName }, undefined, { escape: false }) + const supportedMimes = getCapabilities().richdocuments.mimetypesNoDefaultOpen + const actionName = 'Edit with ' + getCapabilities().richdocuments.productName + const actionDisplayName = t('richdocuments', 'Edit with {productName}', { productName: getCapabilities().richdocuments.productName }, undefined, { escape: false }) for (const mime of supportedMimes) { const action = {