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.
This commit is contained in:
Augustin Cavalier 2020-12-05 15:23:14 -05:00
parent e46d640063
commit 10bc5b6e2f

View File

@ -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 {