aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-12-22 01:37:01 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2023-12-22 01:37:01 +0100
commit3d8e2ec9b079faae611bc08941d3908b7b51f149 (patch)
tree80dc1cbf385b1ab85e6673cab394f22dc3aabaa0 /apps
parentbe46ca3658189913c46f4c9cfb3bff407948236f (diff)
downloadnextcloud-server-3d8e2ec9b079faae611bc08941d3908b7b51f149.tar.gz
nextcloud-server-3d8e2ec9b079faae611bc08941d3908b7b51f149.zip
fix(theming): Invert filter should be based on primary-element
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/theming/lib/Themes/CommonThemeTrait.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/theming/lib/Themes/CommonThemeTrait.php b/apps/theming/lib/Themes/CommonThemeTrait.php
index ef5ce2c4c78..42ee6212cee 100644
--- a/apps/theming/lib/Themes/CommonThemeTrait.php
+++ b/apps/theming/lib/Themes/CommonThemeTrait.php
@@ -54,8 +54,8 @@ trait CommonThemeTrait {
// ⚠️ Using 'no' as a value to make sure we specify an
// invalid one with no fallback. 'unset' could here fallback to some
// other theme with media queries
- '--primary-invert-if-bright' => $this->util->invertTextColor($this->primaryColor) ? 'invert(100%)' : 'no',
- '--primary-invert-if-dark' => $this->util->invertTextColor($this->primaryColor) ? 'no' : 'invert(100%)',
+ '--primary-invert-if-bright' => $this->util->invertTextColor($colorPrimaryElement) ? 'invert(100%)' : 'no',
+ '--primary-invert-if-dark' => $this->util->invertTextColor($colorPrimaryElement) ? 'no' : 'invert(100%)',
'--color-primary' => $this->primaryColor,
'--color-primary-default' => $this->defaultPrimaryColor,