diff options
author | Joas Schilling <coding@schilljs.com> | 2023-11-29 11:27:57 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-11-29 16:38:41 +0100 |
commit | 9c0ba1bab97ecae25aa59388e8d9937f8ca06bbb (patch) | |
tree | 2c9f37e6343b69d98e727befe6388ed578880cf6 /apps/theming | |
parent | b213fc7c74e938358b2257e87ee5754b0d71ad4a (diff) | |
download | nextcloud-server-9c0ba1bab97ecae25aa59388e8d9937f8ca06bbb.tar.gz nextcloud-server-9c0ba1bab97ecae25aa59388e8d9937f8ca06bbb.zip |
fix(theming): Fix color inverted icons based on theming and dark mode
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/theming')
-rw-r--r-- | apps/theming/css/default.css | 1 | ||||
-rw-r--r-- | apps/theming/lib/Themes/CommonThemeTrait.php | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/apps/theming/css/default.css b/apps/theming/css/default.css index 3e36e03f894..190ec0fb9cf 100644 --- a/apps/theming/css/default.css +++ b/apps/theming/css/default.css @@ -68,6 +68,7 @@ --background-invert-if-bright: invert(100%); --background-image-invert-if-bright: no; --primary-invert-if-bright: no; + --primary-invert-if-dark: invert(100%); --color-primary: #00679e; --color-primary-default: #0082c9; --color-primary-text: #ffffff; diff --git a/apps/theming/lib/Themes/CommonThemeTrait.php b/apps/theming/lib/Themes/CommonThemeTrait.php index 6f2d31ff6b1..5a389c8533f 100644 --- a/apps/theming/lib/Themes/CommonThemeTrait.php +++ b/apps/theming/lib/Themes/CommonThemeTrait.php @@ -54,6 +54,7 @@ trait CommonThemeTrait { // 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%)', '--color-primary' => $this->primaryColor, '--color-primary-default' => $this->defaultPrimaryColor, |