diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-12-08 12:16:05 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-12-11 14:33:54 +0100 |
commit | cce4c285dbfd6957f50112b234b3545ebcceac54 (patch) | |
tree | 2c4644b6b9ffb46b74547305323307f33c0e8eec /lib/private/legacy/defaults.php | |
parent | ef2b0969dd022ed900d01a7567c52635773d6509 (diff) | |
download | nextcloud-server-cce4c285dbfd6957f50112b234b3545ebcceac54.tar.gz nextcloud-server-cce4c285dbfd6957f50112b234b3545ebcceac54.zip |
Fix email buttons for white theme
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/legacy/defaults.php')
-rw-r--r-- | lib/private/legacy/defaults.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/legacy/defaults.php b/lib/private/legacy/defaults.php index 8b5cef3643e..494c65ef226 100644 --- a/lib/private/legacy/defaults.php +++ b/lib/private/legacy/defaults.php @@ -50,6 +50,7 @@ class OC_Defaults { private $defaultDocVersion; private $defaultSlogan; private $defaultColorPrimary; + private $defaultTextColorPrimary; public function __construct() { $this->l = \OC::$server->getL10N('lib'); @@ -66,6 +67,7 @@ class OC_Defaults { $this->defaultDocVersion = '12'; // used to generate doc links $this->defaultSlogan = $this->l->t('a safe home for all your data'); $this->defaultColorPrimary = '#0082c9'; + $this->defaultTextColorPrimary = '#ffffff'; $themePath = OC::$SERVERROOT . '/themes/' . OC_Util::getTheme() . '/defaults.php'; if (file_exists($themePath)) { @@ -318,4 +320,11 @@ class OC_Defaults { } return $logo . '?v=' . hash('sha1', implode('.', \OCP\Util::getVersion())); } + + public function getTextColorPrimary() { + if ($this->themeExist('getTextColorPrimary')) { + return $this->theme->getTextColorPrimary(); + } + return $this->defaultTextColorPrimary; + } } |