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:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2022-08-19 15:35:00 +0300
committerJohn Molakvoæ <skjnldsv@protonmail.com>2022-08-19 15:35:00 +0300
commit5e550829c539c4ff13ffef4ca2ece18200faa2ec (patch)
tree54c303eee4d0e3a519c64907086aaf9fd88cd5bd
parent145c3be5a7a3431c09a87a5a0d5760cf1332072e (diff)
Fix theming tests
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
-rw-r--r--apps/theming/css/default.css3
-rw-r--r--apps/theming/tests/Themes/DefaultThemeTest.php7
2 files changed, 10 insertions, 0 deletions
diff --git a/apps/theming/css/default.css b/apps/theming/css/default.css
index fb541b7aca9..41a1167a4a5 100644
--- a/apps/theming/css/default.css
+++ b/apps/theming/css/default.css
@@ -2,6 +2,8 @@
--color-main-background: #ffffff;
--color-main-background-rgb: 255,255,255;
--color-main-background-translucent: rgba(var(--color-main-background-rgb), .97);
+ --color-main-background-blur: rgba(var(--color-main-background-rgb), .8);
+ --filter-background-blur: blur(25px);
--gradient-main-background: var(--color-main-background) 0%, var(--color-main-background-translucent) 85%, transparent 100%;
--color-background-hover: #f5f5f5;
--color-background-dark: #ededed;
@@ -59,4 +61,5 @@
--primary-invert-if-bright: no;
--background-invert-if-dark: no;
--background-invert-if-bright: invert(100%);
+ --image-main-background: url('/core/img/app-background.jpg');
}
diff --git a/apps/theming/tests/Themes/DefaultThemeTest.php b/apps/theming/tests/Themes/DefaultThemeTest.php
index 160efdba142..84430360897 100644
--- a/apps/theming/tests/Themes/DefaultThemeTest.php
+++ b/apps/theming/tests/Themes/DefaultThemeTest.php
@@ -75,6 +75,13 @@ class DefaultThemeTest extends TestCase {
return vsprintf($text, $parameters);
});
+ $this->urlGenerator
+ ->expects($this->any())
+ ->method('imagePath')
+ ->willReturnCallback(function ($app = 'core', $filename = '') {
+ return "/$app/img/$filename";
+ });
+
$this->defaultTheme = new DefaultTheme(
$util,
$this->themingDefaults,