diff options
author | Joas Schilling <coding@schilljs.com> | 2023-01-25 10:41:19 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-01-30 09:12:49 +0100 |
commit | a192641808fb5943d1524d18986cc4167b27a24b (patch) | |
tree | 23ae4c61e4290ca443e33c0af47a54b05d23c5dd /lib/public | |
parent | 97e6fe4b4682f0dfe0d96851494a792ec1934d89 (diff) | |
download | nextcloud-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.php | 24 |
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(); + } } |