Skip to content

Commit 4489f28

Browse files
committed
address review
Signed-off-by: szaimen <szaimen@e.mail.de>
1 parent cd51058 commit 4489f28

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

apps/theming/lib/Themes/DefaultTheme.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ public function getCSSVariables(): array {
203203
'--background-invert-if-bright' => 'invert(100%)',
204204

205205
'--image-main-background' => "url('" . $this->urlGenerator->imagePath('core', 'app-background.jpg') . "')",
206+
207+
'--logo-invert-if-default' => ($hasCustomLogoHeader && $this->util->invertTextColor($this->primaryColor)) ? 'no' : 'invert(100%)',
206208
];
207209

208210
// Primary variables

core/css/header.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
left: 12px;
173173
top: 1px;
174174
bottom: 1px;
175-
filter: var(--primary-invert-if-bright);
175+
filter: var(--logo-invert-if-default);
176176
}
177177

178178
.header-appname-container {

0 commit comments

Comments
 (0)