diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-03-03 12:43:22 +0100 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-03-03 12:43:22 +0100 |
commit | b8d0fc94949e6e28b9fcb603deec9759e55cb6a3 (patch) | |
tree | 041fb28d4deb7f7b232227a3eb3ef883cf732f0d /lib/private/defaults.php | |
parent | eac9eebfdb3f7e3770ee70f35d3528a7fa31d153 (diff) | |
download | nextcloud-server-b8d0fc94949e6e28b9fcb603deec9759e55cb6a3.tar.gz nextcloud-server-b8d0fc94949e6e28b9fcb603deec9759e55cb6a3.zip |
make mail notification header color themable
Diffstat (limited to 'lib/private/defaults.php')
-rw-r--r-- | lib/private/defaults.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/private/defaults.php b/lib/private/defaults.php index 59630cda5c0..79be211b82f 100644 --- a/lib/private/defaults.php +++ b/lib/private/defaults.php @@ -21,6 +21,7 @@ class OC_Defaults { private $defaultDocBaseUrl; private $defaultSlogan; private $defaultLogoClaim; + private $defaultMailHeaderColor; function __construct() { $this->l = OC_L10N::get('core'); @@ -33,6 +34,7 @@ class OC_Defaults { $this->defaultDocBaseUrl = "http://doc.owncloud.org"; $this->defaultSlogan = $this->l->t("web services under your control"); $this->defaultLogoClaim = ""; + $this->defaultMailHeaderColor = "#1d2d44"; /* header color of mail notifications */ if (class_exists("OC_Theme")) { $this->theme = new OC_Theme(); @@ -181,4 +183,16 @@ class OC_Defaults { return $this->getDocBaseUrl() . '/server/6.0/go.php?to=' . $key; } + /** + * Returns mail header color + * @return mail header color + */ + public function getMailHeaderColor() { + if ($this->themeExist('getMailHeaderColor')) { + return $this->theme->getMailHeaderColor(); + } else { + return $this->defaultMailHeaderColor; + } + } + } |