diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-26 09:58:45 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-06-26 09:58:45 +0200 |
commit | be5176076e08e73354ad44493b65d86aade2ad6e (patch) | |
tree | aacce242f84b6a054674060d293effff105380df /apps/theming/tests/UtilTest.php | |
parent | ed4afa55c1ccaef140ac310258ad837bf6af9557 (diff) | |
download | nextcloud-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.php | 5 |
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); |