aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-01-25 10:41:19 +0100
committerJoas Schilling <coding@schilljs.com>2023-01-30 09:12:49 +0100
commita192641808fb5943d1524d18986cc4167b27a24b (patch)
tree23ae4c61e4290ca443e33c0af47a54b05d23c5dd /lib/public
parent97e6fe4b4682f0dfe0d96851494a792ec1934d89 (diff)
downloadnextcloud-server-a192641808fb5943d1524d18986cc4167b27a24b.tar.gz
nextcloud-server-a192641808fb5943d1524d18986cc4167b27a24b.zip
Use the default color and matching text color for the federation invite
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public')
-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();
+ }
}