From 10bc5b6e2fa798bcdc9c76bc7ea02d37081f4e53 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sat, 5 Dec 2020 15:23:14 -0500 Subject: [PATCH] Tracker: Increase the readability threshhold to 50%. nephele is working a more comprehensive fix to this code, but for now, this seems to be sufficient for the time being. --- src/kits/tracker/PoseView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kits/tracker/PoseView.cpp b/src/kits/tracker/PoseView.cpp index 6a714ce21a..72daadd12b 100644 --- a/src/kits/tracker/PoseView.cpp +++ b/src/kits/tracker/PoseView.cpp @@ -9041,8 +9041,8 @@ BPoseView::DeskTextColor() const float readabilityThreshold = abs(textColor.red - viewColor.red) + abs(textColor.green - viewColor.green) + abs(textColor.blue - viewColor.blue); - if (readabilityThreshold > 120) { - // The readability threshold is highly subjective, but 120 (out of 768) + if (readabilityThreshold > 384) { + // The readability threshold is highly subjective, but 384 (out of 768) // seems to be generally suitable for most circumstances. return textColor; } else {