Fix logo colour on bright primary colour

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
pull/32204/head
John Molakvoæ 4 years ago
parent a50b4caafd
commit 7c5bb555e7
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
  1. 6
      apps/theming/lib/Themes/DefaultTheme.php
  2. 8
      core/css/header.scss

@ -89,6 +89,8 @@ class DefaultTheme implements ITheme {
$colorBoxShadow = $this->util->darken($colorMainBackground, 70);
$colorBoxShadowRGB = join(',', $this->util->hexToRGB($colorBoxShadow));
$hasCustomLogoHeader = $this->imageManager->hasImage('logo') || $this->imageManager->hasImage('logoheader');
$variables = [
'--color-main-background' => $colorMainBackground,
'--color-main-background-rgb' => $colorMainBackgroundRGB,
@ -194,6 +196,10 @@ class DefaultTheme implements ITheme {
}
}
if ($hasCustomLogoHeader) {
$variables["--image-logoheader-custom"] = true;
}
return $variables;
}

@ -182,12 +182,8 @@
left: 12px;
top: 1px;
bottom: 1px;
img {
opacity: 0;
max-width: 100%;
max-height: 200px;
}
// Invert custom logo if primary too bright
filter: var(--image-logoheader-custom, var(--primary-invert-if-bright))
}
.header-appname-container {

Loading…
Cancel
Save