aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/Capabilities.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/theming/lib/Capabilities.php')
-rw-r--r--apps/theming/lib/Capabilities.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/theming/lib/Capabilities.php b/apps/theming/lib/Capabilities.php
index eec2b5187ea..7131607e016 100644
--- a/apps/theming/lib/Capabilities.php
+++ b/apps/theming/lib/Capabilities.php
@@ -101,7 +101,8 @@ class Capabilities implements IPublicCapability {
$colorText = $this->util->invertTextColor($color) ? '#000000' : '#ffffff';
$backgroundLogo = $this->config->getAppValue('theming', 'backgroundMime', '');
- $backgroundColor = $this->theming->getDefaultColorBackground();
+ $backgroundColor = $this->theming->getColorBackground();
+ $backgroundText = $this->theming->getTextColorBackground();
$backgroundPlain = $backgroundLogo === 'backgroundColor' || ($backgroundLogo === '' && $backgroundColor !== BackgroundService::DEFAULT_COLOR);
$background = $backgroundPlain ? $backgroundColor : $this->url->getAbsoluteURL($this->theming->getBackground());
@@ -114,8 +115,6 @@ class Capabilities implements IPublicCapability {
*/
$color = $this->theming->getColorPrimary();
$colorText = $this->theming->getTextColorPrimary();
- $backgroundColor = $this->theming->getColorBackground();
- $backgroundText = $this->theming->getTextColorBackground();
$backgroundImage = $this->config->getUserValue($user->getUID(), Application::APP_ID, 'background_image', BackgroundService::BACKGROUND_DEFAULT);
if ($backgroundImage === BackgroundService::BACKGROUND_CUSTOM) {