Skip to content

Commit

Permalink
adjust file action icon color for NC 25
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
  • Loading branch information
Julien Veyssier authored and Raudius committed Jul 26, 2022
1 parent 4c49ca5 commit b65dc89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions css/filetypes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
6 changes: 3 additions & 3 deletions src/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit b65dc89

Please sign in to comment.