diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-12-22 10:02:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-22 10:02:17 +0100 |
commit | fecb3ea41cd9fe2e7f12fdb4b9b9a24845de281a (patch) | |
tree | db9c696b59fd64c5fee460ac000ea44d6172ee7d | |
parent | 39993a60791f5e60ec5b748382aca8a503a1cfd4 (diff) | |
parent | 1300467f93a88dda157979c8335c82d9943981d1 (diff) | |
download | nextcloud-server-fecb3ea41cd9fe2e7f12fdb4b9b9a24845de281a.tar.gz nextcloud-server-fecb3ea41cd9fe2e7f12fdb4b9b9a24845de281a.zip |
Merge pull request #42445 from nextcloud/backport/42439/stable28
[stable28] fix(theming): Invert filter should be based on primary-element
-rw-r--r-- | apps/theming/lib/Themes/CommonThemeTrait.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/theming/lib/Themes/CommonThemeTrait.php b/apps/theming/lib/Themes/CommonThemeTrait.php index 85172f1e9bc..db92d400b32 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, |