mirror of
https://github.com/nextcloud/richdocuments.git
synced 2025-12-17 21:12:14 +01:00
adjust file action icon color for NC 25
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
This commit is contained in:
parent
4c49ca500c
commit
b65dc89a46
2 changed files with 4 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue