diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-04-28 10:42:49 +0300 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-04-28 19:11:30 +0300 |
commit | 7c5bb555e72dc2ebe285d46776dba735a4005a3f (patch) | |
tree | 5c978f0bd8ec8b8c72263cffad5ab2214c3e7bc9 /apps/theming | |
parent | a50b4caafdad17ac7d70651d896893cd3ec014d7 (diff) |
Fix logo colour on bright primary colour
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/theming')
-rw-r--r-- | apps/theming/lib/Themes/DefaultTheme.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/theming/lib/Themes/DefaultTheme.php b/apps/theming/lib/Themes/DefaultTheme.php index b13e481907a..9c3dcf56faf 100644 --- a/apps/theming/lib/Themes/DefaultTheme.php +++ b/apps/theming/lib/Themes/DefaultTheme.php @@ -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; } |