aboutsummaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2017-04-25 00:20:12 +0200
committerJan-Christoph Borchardt <hey@jancborchardt.net>2017-04-25 00:22:57 +0200
commit88bc43182f3352fd5ddb23c01b9b7b3ae4b6b2fd (patch)
tree74095625de2653a9c22db3d3b3541931d715e658 /settings/js
parentf03e59530a6d766f177330f90d2feb1d6491e5e5 (diff)
downloadnextcloud-server-88bc43182f3352fd5ddb23c01b9b7b3ae4b6b2fd.tar.gz
nextcloud-server-88bc43182f3352fd5ddb23c01b9b7b3ae4b6b2fd.zip
Fix app icon being inverted for app store apps too
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/apps.js15
1 files changed, 11 insertions, 4 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index 03ae4e2e8c9..6da8c395ecb 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -183,7 +183,7 @@ OC.Settings.Apps = OC.Settings.Apps || {
app.firstExperimental = firstExperimental;
if (!app.preview) {
- app.preview = OC.imagePath('core', 'filetypes/image');
+ app.preview = OC.imagePath('core', 'places/default-app-icon');
app.previewAsIcon = true;
}
@@ -235,9 +235,16 @@ OC.Settings.Apps = OC.Settings.Apps || {
currentImage.src = app.preview;
currentImage.onload = function() {
- page.find('.app-image')
- .append(OC.Settings.Apps.imageUrl(app.preview, app.fromAppStore))
- .removeClass('icon-loading');
+ /* Trigger color inversion for placeholder image too */
+ if(app.previewAsIcon) {
+ page.find('.app-image')
+ .append(OC.Settings.Apps.imageUrl(app.preview, false))
+ .removeClass('icon-loading');
+ } else {
+ page.find('.app-image')
+ .append(OC.Settings.Apps.imageUrl(app.preview, app.fromAppStore))
+ .removeClass('icon-loading');
+ }
};
}