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:
@@ -9041,8 +9041,8 @@ BPoseView::DeskTextColor() const
|
|||||||
float readabilityThreshold = abs(textColor.red - viewColor.red)
|
float readabilityThreshold = abs(textColor.red - viewColor.red)
|
||||||
+ abs(textColor.green - viewColor.green)
|
+ abs(textColor.green - viewColor.green)
|
||||||
+ abs(textColor.blue - viewColor.blue);
|
+ abs(textColor.blue - viewColor.blue);
|
||||||
if (readabilityThreshold > 120) {
|
if (readabilityThreshold > 384) {
|
||||||
// The readability threshold is highly subjective, but 120 (out of 768)
|
// The readability threshold is highly subjective, but 384 (out of 768)
|
||||||
// seems to be generally suitable for most circumstances.
|
// seems to be generally suitable for most circumstances.
|
||||||
return textColor;
|
return textColor;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user