summaryrefslogtreecommitdiffstats
path: root/apps/theming/tests/UtilTest.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-06-26 09:58:45 +0200
committerJoas Schilling <coding@schilljs.com>2020-06-26 09:58:45 +0200
commitbe5176076e08e73354ad44493b65d86aade2ad6e (patch)
treeaacce242f84b6a054674060d293effff105380df /apps/theming/tests/UtilTest.php
parented4afa55c1ccaef140ac310258ad837bf6af9557 (diff)
downloadnextcloud-server-be5176076e08e73354ad44493b65d86aade2ad6e.tar.gz
nextcloud-server-be5176076e08e73354ad44493b65d86aade2ad6e.zip
Precalculate the primary element color for dark mode too
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/theming/tests/UtilTest.php')
-rw-r--r--apps/theming/tests/UtilTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/theming/tests/UtilTest.php b/apps/theming/tests/UtilTest.php
index 6f7e195e468..10013e7d61c 100644
--- a/apps/theming/tests/UtilTest.php
+++ b/apps/theming/tests/UtilTest.php
@@ -106,6 +106,11 @@ class UtilTest extends TestCase {
$this->assertEquals('#000000', $elementColor);
}
+ public function testElementColorOnDarkBackground() {
+ $elementColor = $this->util->elementColor("#000000", false);
+ $this->assertEquals('#555555', $elementColor);
+ }
+
public function testElementColorOnBrightBackground() {
$elementColor = $this->util->elementColor('#ffffff');
$this->assertEquals('#aaaaaa', $elementColor);