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-05-20 10:06:29 +0300
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-06-01 10:00:24 +0300
commit3d9e84fd3ab947697286fb5bfef25a0145117887 (patch)
treee15552f32eb99ac2de5db5e39361709ca603521e /lib/private
parent75df236ed0f60410d4e1793eba5d3bdc9076b2b5 (diff)
Properly calculate primary element based on background luminancebackport/32510/stable22
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/legacy/OC_Defaults.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/OC_Defaults.php b/lib/private/legacy/OC_Defaults.php
index fa90dff2edf..2674a088e11 100644
--- a/lib/private/legacy/OC_Defaults.php
+++ b/lib/private/legacy/OC_Defaults.php
@@ -297,9 +297,9 @@ class OC_Defaults {
/**
* @return array scss variables to overwrite
*/
- public function getScssVariables() {
+ public function getScssVariables(bool $brightBackground = true) {
if ($this->themeExist('getScssVariables')) {
- return $this->theme->getScssVariables();
+ return $this->theme->getScssVariables($brightBackground);
}
return [];
}