diff options
Diffstat (limited to 'lib/private/legacy/defaults.php')
-rw-r--r-- | lib/private/legacy/defaults.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/private/legacy/defaults.php b/lib/private/legacy/defaults.php index ea41d80076e..9fd9b621a14 100644 --- a/lib/private/legacy/defaults.php +++ b/lib/private/legacy/defaults.php @@ -46,7 +46,7 @@ class OC_Defaults { private $defaultDocVersion; private $defaultSlogan; private $defaultLogoClaim; - private $defaultMailHeaderColor; + private $defaultColorPrimary; function __construct() { $this->l = \OC::$server->getL10N('lib'); @@ -63,7 +63,7 @@ class OC_Defaults { $this->defaultDocVersion = '11'; // used to generate doc links $this->defaultSlogan = $this->l->t('a safe home for all your data'); $this->defaultLogoClaim = ''; - $this->defaultMailHeaderColor = '#0082c9'; /* header color of mail notifications */ + $this->defaultColorPrimary = '#0082c9'; $themePath = OC::$SERVERROOT . '/themes/' . OC_Util::getTheme() . '/defaults.php'; if (file_exists($themePath)) { @@ -272,15 +272,18 @@ class OC_Defaults { } /** - * Returns mail header color + * Returns primary color * @return string */ - public function getMailHeaderColor() { + public function getColorPrimary() { + + if ($this->themeExist('getColorPrimary')) { + return $this->theme->getColorPrimary(); + } if ($this->themeExist('getMailHeaderColor')) { return $this->theme->getMailHeaderColor(); - } else { - return $this->defaultMailHeaderColor; } + return $this->defaultColorPrimary; } public function shouldReplaceIcons() { |