summaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/Controller
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2016-10-12 16:45:07 +0200
committerJulius Härtl <jus@bitgrid.net>2017-05-08 10:16:29 +0200
commit4199a569127699cc893416bf47ece5a8d28a18a3 (patch)
tree1a31e0b2d6e753fcda28a4038ce2b3ae7d9f5c5a /apps/theming/lib/Controller
parent4d7a96bc85b9a114daf9fb027a483daf26905b25 (diff)
downloadnextcloud-server-4199a569127699cc893416bf47ece5a8d28a18a3.tar.gz
nextcloud-server-4199a569127699cc893416bf47ece5a8d28a18a3.zip
Theming app: Add plain background color option
Signed-off-by: Julius Haertl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming/lib/Controller')
-rw-r--r--apps/theming/lib/Controller/ThemingController.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/theming/lib/Controller/ThemingController.php b/apps/theming/lib/Controller/ThemingController.php
index faaff1f2174..1b3420f3cb7 100644
--- a/apps/theming/lib/Controller/ThemingController.php
+++ b/apps/theming/lib/Controller/ThemingController.php
@@ -185,6 +185,20 @@ class ThemingController extends Controller {
* @return DataResponse
*/
public function updateLogo() {
+ $backgroundColor = $this->request->getParam('backgroundColor');
+ if($backgroundColor) {
+ $this->themingDefaults->set('backgroundMime', 'backgroundColor');
+ return new DataResponse(
+ [
+ 'data' =>
+ [
+ 'name' => 'backgroundColor',
+ 'message' => $this->l10n->t('Saved')
+ ],
+ 'status' => 'success'
+ ]
+ );
+ }
$newLogo = $this->request->getUploadedFile('uploadlogo');
$newBackgroundLogo = $this->request->getUploadedFile('upload-login-background');
if (empty($newLogo) && empty($newBackgroundLogo)) {