aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Defaults.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Defaults.php')
-rw-r--r--lib/public/Defaults.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/public/Defaults.php b/lib/public/Defaults.php
index cb04d62df0d..a295db120ad 100644
--- a/lib/public/Defaults.php
+++ b/lib/public/Defaults.php
@@ -206,6 +206,18 @@ class Defaults {
}
/**
+ * Return the default color primary
+ * @return string
+ * @since 25.0.4
+ */
+ public function getDefaultColorPrimary(): string {
+ if (method_exists($this->defaults, 'getDefaultColorPrimary')) {
+ return $this->defaults->getDefaultColorPrimary();
+ }
+ return $this->defaults->getColorPrimary();
+ }
+
+ /**
* @param string $key
* @return string URL to doc with key
* @since 12.0.0
@@ -231,4 +243,16 @@ class Defaults {
public function getTextColorPrimary(): string {
return $this->defaults->getTextColorPrimary();
}
+
+ /**
+ * Returns primary color
+ * @return string
+ * @since 25.0.4
+ */
+ public function getDefaultTextColorPrimary(): string {
+ if (method_exists($this->defaults, 'getDefaultTextColorPrimary')) {
+ return $this->defaults->getDefaultTextColorPrimary();
+ }
+ return $this->defaults->getTextColorPrimary();
+ }
}