diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-01-03 09:17:14 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-01-03 14:42:07 +0100 |
commit | 8a226811dc86547ca5f79ffa35965c0f72e8fbb4 (patch) | |
tree | 80790a3013c6295a53fa5be49870b8dfbb303273 /lib/private/TemplateLayout.php | |
parent | ee0653d68b117ac586841465840e629a7c1a487f (diff) | |
download | nextcloud-server-8a226811dc86547ca5f79ffa35965c0f72e8fbb4.tar.gz nextcloud-server-8a226811dc86547ca5f79ffa35965c0f72e8fbb4.zip |
Invert app icons on IE11 as well
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/TemplateLayout.php')
-rw-r--r-- | lib/private/TemplateLayout.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index 264c10f5f1b..a8c4bbb0d16 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -108,6 +108,15 @@ class TemplateLayout extends \OC_Template { $this->assign('userAvatarVersion', $this->config->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'); |