From 457097ade4c8d92fbf5b597e214b43055553df21 Mon Sep 17 00:00:00 2001 From: Ryan Alexander <38785445+ryanalexander@users.noreply.github.com> Date: Tue, 17 Aug 2021 19:33:09 +1000 Subject: [PATCH] Lowered contrast threshold --- src/pages/settings/panes/Appearance.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/settings/panes/Appearance.tsx b/src/pages/settings/panes/Appearance.tsx index 7ad56cb1..1c237da8 100644 --- a/src/pages/settings/panes/Appearance.tsx +++ b/src/pages/settings/panes/Appearance.tsx @@ -461,5 +461,5 @@ function getContrastingColour(hex: string) { const g = parseInt(hex.substr(2, 2), 16); const b = parseInt(hex.substr(4, 2), 16); const cc = (r * 299 + g * 587 + b * 114) / 1000; - return cc >= 128 ? "black" : "white"; + return cc >= 75 ? "black" : "white"; }