feat: set background = backgroundColor via occ

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2023-06-03 16:06:29 +02:00
parent 2188505837
commit 8759e307f2
No known key found for this signature in database
GPG key ID: 36E3664E099D0614

View file

@ -111,6 +111,11 @@ class UpdateConfig extends Command {
return 0;
}
if ($key === 'background' && $value === 'backgroundColor') {
$this->themingDefaults->undo($key);
$key = $key . 'Mime';
}
if (in_array($key, ImageManager::SUPPORTED_IMAGE_KEYS, true)) {
if (strpos($value, '/') !== 0) {
$output->writeln('<error>The image file needs to be provided as an absolute path: ' . $value . '.</error>');