Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2016-10-12 17:45:07 +0300
committerJulius Härtl <jus@bitgrid.net>2017-05-08 11:16:29 +0300
commit4199a569127699cc893416bf47ece5a8d28a18a3 (patch)
tree1a31e0b2d6e753fcda28a4038ce2b3ae7d9f5c5a /apps/theming/lib/ThemingDefaults.php
parent4d7a96bc85b9a114daf9fb027a483daf26905b25 (diff)
Theming app: Add plain background color option
Signed-off-by: Julius Haertl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming/lib/ThemingDefaults.php')
-rw-r--r--apps/theming/lib/ThemingDefaults.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php
index 39547af4916..9509fc11077 100644
--- a/apps/theming/lib/ThemingDefaults.php
+++ b/apps/theming/lib/ThemingDefaults.php
@@ -190,6 +190,7 @@ class ThemingDefaults extends \OC_Defaults {
$variables['image-logo'] = "'".$this->urlGenerator->getAbsoluteURL($this->getLogo())."'";
$variables['image-login-background'] = "'".$this->urlGenerator->getAbsoluteURL($this->getBackground())."'";
+ $variables['image-login-plain'] = 'false';
if ($this->config->getAppValue('theming', 'color', null) !== null) {
if ($this->util->invertTextColor($this->getColorPrimary())) {
@@ -200,6 +201,10 @@ class ThemingDefaults extends \OC_Defaults {
$variables['color-primary'] = $this->getColorPrimary();
$variables['color-primary-text'] = $colorPrimaryText;
}
+
+ if ($this->config->getAppValue('theming', 'backgroundMime', null) === 'backgroundColor') {
+ $variables['image-login-plain'] = 'true';
+ }
$cache->set('getScssVariables', $variables);
return $variables;
}