summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2014-03-03 12:43:22 +0100
committerVincent Petry <pvince81@owncloud.com>2014-03-03 16:50:05 +0100
commitb3c5aaa1cac4edc07cc895fbc2772fa31bf97684 (patch)
treed688bd39791358b803b1b8133effe6bb0d38ac62 /lib
parentea62d23cb33879e8e267f9feed937c4c3e1f81ba (diff)
downloadnextcloud-server-b3c5aaa1cac4edc07cc895fbc2772fa31bf97684.tar.gz
nextcloud-server-b3c5aaa1cac4edc07cc895fbc2772fa31bf97684.zip
make mail notification header color themable
Diffstat (limited to 'lib')
-rw-r--r--lib/private/defaults.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/private/defaults.php b/lib/private/defaults.php
index f9e7ce54206..a087e437069 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();
@@ -178,4 +180,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;
+ }
+ }
+
}