Selaa lähdekoodia

Update background image to the one used on the website

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
tags/v13.0.0beta1
Jan-Christoph Borchardt 6 vuotta sitten
vanhempi
commit
badbab81ea

+ 1
- 1
apps/theming/lib/ThemingDefaults.php Näytä tiedosto

@@ -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;

+ 1
- 1
apps/theming/tests/ThemingDefaultsTest.php Näytä tiedosto

@@ -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());
}

+ 1
- 1
core/css/guest.css Näytä tiedosto

@@ -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;

+ 1
- 1
core/css/styles.scss Näytä tiedosto

@@ -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;

+ 2
- 2
core/css/variables.scss Näytä tiedosto

@@ -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);

BIN
core/img/background.jpg Näytä tiedosto


BIN
core/img/background.png Näytä tiedosto


+ 20024
- 0
core/img/background.svg
File diff suppressed because it is too large
Näytä tiedosto


Loading…
Peruuta
Tallenna