]> source.dussan.org Git - nextcloud-server.git/commitdiff
Set serverBackground if it is a custom background or default hub 21058/head
authorGretaD <gretadoci@gmail.com>
Wed, 20 May 2020 15:32:05 +0000 (17:32 +0200)
committerGretaD <gretadoci@gmail.com>
Mon, 8 Jun 2020 09:23:34 +0000 (11:23 +0200)
Signed-off-by: GretaD <gretadoci@gmail.com>
apps/theming/lib/Capabilities.php

index f3ae5e1b71545bab772c331690d4bbcd543a74a9..56a331482bbe486dd179b0dade20c50fe5eb4fb2 100644 (file)
@@ -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()),