summaryrefslogtreecommitdiffstats
path: root/apps/theming/lib
diff options
context:
space:
mode:
authorGretaD <gretadoci@gmail.com>2020-05-20 17:32:05 +0200
committerGretaD <gretadoci@gmail.com>2020-06-08 11:23:34 +0200
commitc31c995ff0415f2cff34b98d0959742cd5637c68 (patch)
treee4589a1370eb04ed717b022ffcdc4605ed0877a5 /apps/theming/lib
parent2a845285be9267eb4d4832c8c146b318135e11c6 (diff)
downloadnextcloud-server-c31c995ff0415f2cff34b98d0959742cd5637c68.tar.gz
nextcloud-server-c31c995ff0415f2cff34b98d0959742cd5637c68.zip
Set serverBackground if it is a custom background or default hub
Signed-off-by: GretaD <gretadoci@gmail.com>
Diffstat (limited to 'apps/theming/lib')
-rw-r--r--apps/theming/lib/Capabilities.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/theming/lib/Capabilities.php b/apps/theming/lib/Capabilities.php
index f3ae5e1b715..56a331482bb 100644
--- a/apps/theming/lib/Capabilities.php
+++ b/apps/theming/lib/Capabilities.php
@@ -79,10 +79,10 @@ class Capabilities implements IPublicCapability {
'color-text' => $this->theming->getTextColorPrimary(),
'color-element' => $this->util->elementColor($color),
'logo' => $this->url->getAbsoluteURL($this->theming->getLogo()),
- 'background' => $backgroundLogo === 'backgroundColor' ?
+ 'background' => $backgroundLogo === 'backgroundColor' || ($backgroundLogo === false && $this->theming->getColorPrimary() !== '#0082c9') ?
$this->theming->getColorPrimary() :
$this->url->getAbsoluteURL($this->theming->getBackground()),
- 'background-plain' => $backgroundLogo === 'backgroundColor',
+ 'background-plain' => $backgroundLogo === 'backgroundColor' || ($backgroundLogo === false && $this->theming->getColorPrimary() !== '#0082c9'),
'background-default' => !$this->util->isBackgroundThemed(),
'logoheader' => $this->url->getAbsoluteURL($this->theming->getLogo()),
'favicon' => $this->url->getAbsoluteURL($this->theming->getLogo()),