Allow to invert when on bright

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/33480/head
Joas Schilling 2022-08-08 12:56:31 +07:00
parent fe2f8b5d18
commit 05d034a6da
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
3 changed files with 3 additions and 0 deletions

@ -58,4 +58,5 @@
--breakpoint-mobile: 1024px;
--primary-invert-if-bright: no;
--background-invert-if-dark: no;
--background-invert-if-bright: invert(100%);
}

@ -91,6 +91,7 @@ class DarkTheme extends DefaultTheme implements ITheme {
'--color-border-dark' => $this->util->lighten($colorMainBackground, 14),
'--background-invert-if-dark' => 'invert(100%)',
'--background-invert-if-bright' => 'no',
]);
}
}

@ -188,6 +188,7 @@ class DefaultTheme implements ITheme {
// other theme with media queries
'--primary-invert-if-bright' => $this->util->invertTextColor($this->primaryColor) ? 'invert(100%)' : 'no',
'--background-invert-if-dark' => 'no',
'--background-invert-if-bright' => 'invert(100%)',
];
// Register image variables only if custom-defined