diff --git a/apps/theming/css/theming.scss b/apps/theming/css/theming.scss
index 9bfcfecbf4e19..acf4d6446f483 100644
--- a/apps/theming/css/theming.scss
+++ b/apps/theming/css/theming.scss
@@ -14,11 +14,6 @@
.searchbox input[type="search"] {
background: transparent url('../../../core/img/actions/search.svg') no-repeat 6px center;
}
- #appmenu li a img {
- -webkit-filter: invert(1);
- filter: invert(1);
- filter: progid:DXImageTransform.Microsoft.BasicImage(invert='1');
- }
#contactsmenu .icon-contacts {
background-image: url('../../../core/img/places/contacts-dark.svg');
}
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 50ed08761ae46..d54a6fe114ffa 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -66,8 +66,14 @@
class="active">
-
+
+
+
+
+
@@ -94,8 +100,8 @@ class="app-icon"/>
class="active">
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index f7bb23cd3de27..dcc0fd3ba67a8 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -105,6 +105,15 @@ public function __construct( $renderAs, $appId = '' ) {
$this->assign('userAvatarVersion', \OC::$server->getConfig()->getUserValue(\OC_User::getUser(), 'avatar', 'version', 0));
}
+ // check if app menu icons should be inverted
+ try {
+ /** @var \OCA\Theming\Util $util */
+ $util = \OC::$server->query(\OCA\Theming\Util::class);
+ $this->assign('themingInvertMenu', $util->invertTextColor(\OC::$server->getThemingDefaults()->getColorPrimary()));
+ } catch (\OCP\AppFramework\QueryException $e) {
+ $this->assign('themingInvertMenu', false);
+ }
+
} else if ($renderAs == 'error') {
parent::__construct('core', 'layout.guest', '', false);
$this->assign('bodyid', 'body-login');
diff --git a/settings/css/settings.css b/settings/css/settings.css
index 324582caeffcc..9922c52ce7655 100644
--- a/settings/css/settings.css
+++ b/settings/css/settings.css
@@ -1050,6 +1050,7 @@ form.section {
#apps-list.installed .app-image {
width: 44px;
+ height: auto;
text-align: right;
}
diff --git a/settings/js/apps.js b/settings/js/apps.js
index 278c307b1f307..818d119a0ae79 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -233,8 +233,7 @@ OC.Settings.Apps = OC.Settings.Apps || {
var page = $('#app-' + app.id);
- // image loading kung-fu (IE doesn't properly scale SVGs, so disable app icons)
- if (app.preview && !OC.Util.isIE()) {
+ if (app.preview) {
var currentImage = new Image();
currentImage.src = app.preview;
@@ -286,8 +285,10 @@ OC.Settings.Apps = OC.Settings.Apps || {
img = '';
} else {
+ var rnd = Math.floor((Math.random() * 100 )) + new Date().getSeconds() + new Date().getMilliseconds();
img = '';
+ img += '
';
- var a = $('').attr('href', entry.href);
- var filename = $('');
- var loading = $('