mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 00:02:54 -04:00
Merge pull request #42445 from nextcloud/backport/42439/stable28
[stable28] fix(theming): Invert filter should be based on primary-element
This commit is contained in:
commit
fecb3ea41c
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue