aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-11-29 11:27:57 +0100
committerJoas Schilling <coding@schilljs.com>2023-11-30 09:14:09 +0100
commit217753d5f37034c9900002a6528b1c82803bdf25 (patch)
tree3d5b6b35ffb4a40ee0d66072066a2536974ddd90 /apps/theming/lib
parenta1434af01e787ede6231b895d0d6056654b41342 (diff)
downloadnextcloud-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.php1
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,