Skip to content

Commit ba3f533

Browse files
committed
First first run wizzard
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
1 parent 9475cc0 commit ba3f533

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

apps/theming/lib/Themes/DefaultTheme.php

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -193,17 +193,16 @@ public function getCSSVariables(): array {
193193
// Register image variables only if custom-defined
194194
$backgroundDeleted = $this->config->getAppValue('theming', 'backgroundMime', '') === 'backgroundColor';
195195
foreach(['logo', 'logoheader', 'favicon', 'background'] as $image) {
196-
if ($this->imageManager->hasImage($image)) {
197-
// If primary as background has been request, let's not define the background image
198-
if ($image === 'background' && $backgroundDeleted) {
199-
$variables["--image-background-plain"] = 'true';
200-
continue;
201-
} else if ($image === 'background') {
202-
$variables['--image-background-size'] = 'cover';
203-
}
204-
$variables["--image-$image"] = "url('".$this->imageManager->getImageUrl($image)."')";
196+
// If primary as background has been request, let's not define the background image
197+
if ($image === 'background' && $backgroundDeleted) {
198+
$variables["--image-background-plain"] = 'true';
199+
continue;
200+
} else if ($image === 'background') {
201+
$variables['--image-background-size'] = 'cover';
205202
}
203+
$variables["--image-$image"] = "url('".$this->imageManager->getImageUrl($image)."')";
206204
}
205+
$variables["--image-login-background"] = $variables["--image-background"];
207206

208207
if ($hasCustomLogoHeader) {
209208
$variables["--image-logoheader-custom"] = 'true';

0 commit comments

Comments
 (0)