mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Merge pull request #45422 from nextcloud/skjnldsv-patch-1
This commit is contained in:
commit
51adff2755
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue