summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-05-21 17:30:28 +0200
committerGitHub <noreply@github.com>2024-05-21 17:30:28 +0200
commit51adff2755df38ca598a7d9ac63d2efd0c840502 (patch)
tree3380bbbe5d9c6bd06a8717cced1e9eb4be56b403 /apps
parent9948dcc76709eed401a31e03548bcda27304eed3 (diff)
parentdc40dcb3693d8af0c175a627a3814d9a666fab41 (diff)
downloadnextcloud-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.php5
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) {