mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Allow to invert when on bright
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
fe2f8b5d18
commit
05d034a6da
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue