diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-05-21 17:30:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-21 17:30:28 +0200 |
commit | 51adff2755df38ca598a7d9ac63d2efd0c840502 (patch) | |
tree | 3380bbbe5d9c6bd06a8717cced1e9eb4be56b403 /apps | |
parent | 9948dcc76709eed401a31e03548bcda27304eed3 (diff) | |
parent | dc40dcb3693d8af0c175a627a3814d9a666fab41 (diff) | |
download | nextcloud-server-51adff2755df38ca598a7d9ac63d2efd0c840502.tar.gz nextcloud-server-51adff2755df38ca598a7d9ac63d2efd0c840502.zip |
Merge pull request #45422 from nextcloud/skjnldsv-patch-1
Diffstat (limited to 'apps')
-rw-r--r-- | apps/theming/lib/Util.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/theming/lib/Util.php b/apps/theming/lib/Util.php index 635c0026112..5a4dd115f7f 100644 --- a/apps/theming/lib/Util.php +++ b/apps/theming/lib/Util.php @@ -82,6 +82,11 @@ class Util { * @return string */ public function elementColor($color, ?bool $brightBackground = null) { + // Disable color luminance check if the feature is disabled. 27 ONLY! + if ($this->config->getSystemValueBool('27-disable-accessible-theming-color') === true) { + return $color; + } + $luminance = $this->calculateLuminance($color); if ($brightBackground !== false && $luminance > 0.8) { |