We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9948dcc + dc40dcb commit 51adff2Copy full SHA for 51adff2
apps/theming/lib/Util.php
@@ -82,6 +82,11 @@ public function isBrightColor(string $color): bool {
82
* @return string
83
*/
84
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
+
90
$luminance = $this->calculateLuminance($color);
91
92
if ($brightBackground !== false && $luminance > 0.8) {
0 commit comments