From 8cb4503b9361c2b9747fc1bfc8dc5696376111dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Thu, 29 Apr 2021 15:10:50 +0100 Subject: [PATCH] fix(ui): bump the threshold for marking label as dark --- ui/src/Components/Labels/Utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/Components/Labels/Utils.ts b/ui/src/Components/Labels/Utils.ts index 107e37c1a..a5f2f3fe6 100644 --- a/ui/src/Components/Labels/Utils.ts +++ b/ui/src/Components/Labels/Utils.ts @@ -8,7 +8,7 @@ import { StaticLabels } from "Common/Query"; import { AlertStateT } from "Models/APITypes"; import { AlertStore } from "Stores/AlertStore"; -const isBackgroundDark = (brightness: number) => brightness <= 125; +const isBackgroundDark = (brightness: number) => brightness <= 130; export interface ClassAndStyleT { style: { [key: string]: string | number };