]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(theming): Invert filter should be based on primary-element 42439/head
authorFerdinand Thiessen <opensource@fthiessen.de>
Fri, 22 Dec 2023 00:37:01 +0000 (01:37 +0100)
committerFerdinand Thiessen <opensource@fthiessen.de>
Fri, 22 Dec 2023 00:37:01 +0000 (01:37 +0100)
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
apps/theming/lib/Themes/CommonThemeTrait.php

index ef5ce2c4c7848452cba7803622524bcfdde41a56..42ee6212cee8450f9a6ee26ffe435334f643bb2e 100644 (file)
@@ -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,