diff options
author | Joas Schilling <coding@schilljs.com> | 2023-11-29 11:27:57 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-11-30 09:14:09 +0100 |
commit | 217753d5f37034c9900002a6528b1c82803bdf25 (patch) | |
tree | 3d5b6b35ffb4a40ee0d66072066a2536974ddd90 /apps/theming/lib | |
parent | a1434af01e787ede6231b895d0d6056654b41342 (diff) | |
download | nextcloud-server-217753d5f37034c9900002a6528b1c82803bdf25.tar.gz nextcloud-server-217753d5f37034c9900002a6528b1c82803bdf25.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/lib')
-rw-r--r-- | apps/theming/lib/Themes/CommonThemeTrait.php | 1 |
1 files changed, 1 insertions, 0 deletions
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, |