aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming
diff options
context:
space:
mode:
authorDaniel <mail@danielkesselberg.de>2023-06-06 15:55:31 +0200
committerGitHub <noreply@github.com>2023-06-06 15:55:31 +0200
commitfd7d0e2fd2d8e6ed52b41cd782f98a473de21b01 (patch)
tree7071a9edaf484dc02e505d77c04b72c0bccda300 /apps/theming
parentb05c5e72621317148c1f2612622421b45bb4a66b (diff)
parent8759e307f28684120be6077e4e0ec41100799062 (diff)
downloadnextcloud-server-fd7d0e2fd2d8e6ed52b41cd782f98a473de21b01.tar.gz
nextcloud-server-fd7d0e2fd2d8e6ed52b41cd782f98a473de21b01.zip
Merge pull request #38631 from nextcloud/theming-set-background-color-via-occ
feat: set background = backgroundColor via occ
Diffstat (limited to 'apps/theming')
-rw-r--r--apps/theming/lib/Command/UpdateConfig.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/theming/lib/Command/UpdateConfig.php b/apps/theming/lib/Command/UpdateConfig.php
index aebb6b9be15..de180db6ce9 100644
--- a/apps/theming/lib/Command/UpdateConfig.php
+++ b/apps/theming/lib/Command/UpdateConfig.php
@@ -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 (!str_starts_with($value, '/')) {
$output->writeln('<error>The image file needs to be provided as an absolute path: ' . $value . '.</error>');