Update background image to the one used on the website

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
This commit is contained in:
Jan-Christoph Borchardt 2017-08-29 15:18:51 +02:00
parent 8c917cbfe0
commit badbab81ea
8 changed files with 20030 additions and 6 deletions

View File

@ -183,7 +183,7 @@ class ThemingDefaults extends \OC_Defaults {
$cacheBusterCounter = $this->config->getAppValue('theming', 'cachebuster', '0');
if(!$backgroundLogo || !$backgroundExists) {
return $this->urlGenerator->imagePath('core','background.jpg') . '?v=' . $cacheBusterCounter;
return $this->urlGenerator->imagePath('core','background.png') . '?v=' . $cacheBusterCounter;
}
return $this->urlGenerator->linkToRoute('theming.Theming.getLoginBackground') . '?v=' . $cacheBusterCounter;

View File

@ -400,7 +400,7 @@ class ThemingDefaultsTest extends TestCase {
->willThrowException(new \Exception());
$this->urlGenerator->expects($this->once())
->method('imagePath')
->with('core', 'background.jpg')
->with('core', 'background.png')
->willReturn('core-background');
$this->assertEquals('core-background?v=0', $this->template->getBackground());
}

View File

@ -23,7 +23,7 @@ body {
color: #000;
text-align: center;
background-color: #0082c9;
background-image: url('../img/background.jpg?v=1');
background-image: url('../img/background.png?v=2');
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: cover;

View File

@ -90,7 +90,7 @@ body {
#body-login {
text-align: center;
background-color: $color-primary;
background-image: url('../img/background.jpg?v=1');
background-image: url('../img/background.png?v=2');
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: cover;

View File

@ -15,8 +15,8 @@ $color-success: #46ba61;
}
$image-logo: '../img/logo-icon.svg?v=1';
$image-login-background: '../img/background.jpg?v=1';
$image-login-background: '../img/background.png?v=2';
$color-loading: #969696;
$color-loading-dark: #bbbbbb;
$color-box-shadow: rgba(nc-lighten($color-main-text, 20%), 0.75);
$color-box-shadow: rgba(nc-lighten($color-main-text, 20%), 0.75);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

BIN
core/img/background.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

20024
core/img/background.svg Normal file

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 2.2 MiB