summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-01-03 09:17:14 +0100
committerJulius Härtl <jus@bitgrid.net>2018-01-03 15:22:54 +0100
commita3b6f05722e95007736c9246fe60ae7abe54823e (patch)
tree6f5ed56617918debdc5a22049fe3153ae9879b22 /lib
parentf9490505ad71f45154d61eeb52bf4c44700d2e63 (diff)
downloadnextcloud-server-a3b6f05722e95007736c9246fe60ae7abe54823e.tar.gz
nextcloud-server-a3b6f05722e95007736c9246fe60ae7abe54823e.zip
Invert app icons on IE11 as well
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/TemplateLayout.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index f7bb23cd3de..dcc0fd3ba67 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -105,6 +105,15 @@ class TemplateLayout extends \OC_Template {
$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');