Merge pull request #21058 from nextcloud/bug/set_serverBackground_custom_default
Set serverBackground if it is a custom background or default hub
This commit is contained in:
commit
d67f627eba
|
@ -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()),
|
||||
|
|
Loading…
Reference in New Issue