Skip to content

Commit 51adff2

Browse files
authored
Merge pull request #45422 from nextcloud/skjnldsv-patch-1
2 parents 9948dcc + dc40dcb commit 51adff2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/theming/lib/Util.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ public function isBrightColor(string $color): bool {
8282
* @return string
8383
*/
8484
public function elementColor($color, ?bool $brightBackground = null) {
85+
// Disable color luminance check if the feature is disabled. 27 ONLY!
86+
if ($this->config->getSystemValueBool('27-disable-accessible-theming-color') === true) {
87+
return $color;
88+
}
89+
8590
$luminance = $this->calculateLuminance($color);
8691

8792
if ($brightBackground !== false && $luminance > 0.8) {

0 commit comments

Comments
 (0)