mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Fix logo colour on bright primary colour
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
This commit is contained in:
parent
a50b4caafd
commit
7c5bb555e7
2 changed files with 8 additions and 6 deletions
|
|
@ -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…
Reference in a new issue