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 /apps/theming/lib | |
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 'apps/theming/lib')
-rw-r--r-- | apps/theming/lib/ThemingDefaults.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php index afec58dc3a3..6cb204d1b1b 100644 --- a/apps/theming/lib/ThemingDefaults.php +++ b/apps/theming/lib/ThemingDefaults.php @@ -497,6 +497,15 @@ class ThemingDefaults extends \OC_Defaults { } /** + * Color of text in the header and primary buttons + * + * @return string + */ + public function getDefaultTextColorPrimary() { + return $this->util->invertTextColor($this->getDefaultColorPrimary()) ? '#000000' : '#ffffff'; + } + + /** * Has the admin disabled user customization */ public function isUserThemingDisabled(): bool { |