delete the --image-background-size variable

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2022-12-01 19:39:41 +01:00 committed by Simon L. (Rebase PR Action)
parent e36e92bace
commit 9597036b72

View file

@ -103,13 +103,6 @@ trait CommonThemeTrait {
foreach (ImageManager::SUPPORTED_IMAGE_KEYS as $image) {
if ($this->imageManager->hasImage($image)) {
$imageUrl = $this->imageManager->getImageUrl($image);
if ($image === 'background') {
// If background deleted is set, ignoring variable
if ($backgroundDeleted) {
continue;
}
$variables['--image-background-size'] = 'cover';
}
// --image-background is overridden by user theming
$variables["--image-$image"] = "url('" . $imageUrl . "')";
}