Skip to content

Commit

Permalink
Merge pull request #42439 from nextcloud/fix/invert-on-primary-element
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Dec 22, 2023
2 parents be46ca3 + 3d8e2ec commit 81ed6d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/theming/lib/Themes/CommonThemeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ protected function generatePrimaryVariables(string $colorMainBackground, string
// ⚠️ 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,
Expand Down

0 comments on commit 81ed6d6

Please sign in to comment.