diff options
author | Joas Schilling <coding@schilljs.com> | 2022-03-29 22:18:40 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-04-21 09:29:33 +0200 |
commit | b3cf312edcefec3fb26bad8637f3a0969504be87 (patch) | |
tree | 43397a079ea2b558e23cef722d6abbca11bc7cfb /lib | |
parent | 12ed5c9ff3e9dac25b43a1ad934a97a86037000b (diff) | |
download | nextcloud-server-b3cf312edcefec3fb26bad8637f3a0969504be87.tar.gz nextcloud-server-b3cf312edcefec3fb26bad8637f3a0969504be87.zip |
Start theming providers
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/TemplateLayout.php | 11 | ||||
-rw-r--r-- | lib/private/legacy/OC_Template.php | 2 |
2 files changed, 1 insertions, 12 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index 4e633bf8b06..a379f23a1ef 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -141,17 +141,6 @@ class TemplateLayout extends \OC_Template { $this->assign('userAvatarSet', true); $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); - } catch (\OCP\AutoloadNotAllowedException $e) { - $this->assign('themingInvertMenu', false); - } } elseif ($renderAs === TemplateResponse::RENDER_AS_ERROR) { parent::__construct('core', 'layout.guest', '', false); $this->assign('bodyid', 'body-login'); diff --git a/lib/private/legacy/OC_Template.php b/lib/private/legacy/OC_Template.php index 16ad7273cd2..b7a400d3269 100644 --- a/lib/private/legacy/OC_Template.php +++ b/lib/private/legacy/OC_Template.php @@ -105,7 +105,7 @@ class OC_Template extends \OC\Template\Base { // apps that started before the template initialization can load their own scripts/styles // so to make sure this scripts/styles here are loaded first we put all core scripts first // check lib/public/Util.php - OC_Util::addStyle('css-variables', null, true); + // OC_Util::addStyle('css-variables', null, true); OC_Util::addStyle('server', null, true); // include common nextcloud webpack bundle |