Tweak when to use black/white for icon labels on Desktop

I've felt for a long time that the Desktop's background colour had to
be much too dark for the icon labels to switch from black to white.
I came to the new values by trial and hope nobody hates those now...
This commit is contained in:
Humdinger 2017-04-22 16:57:47 +02:00
parent b5aaac027e
commit 54a37ee40f

View File

@ -9017,9 +9017,9 @@ rgb_color
BPoseView::DeskTextColor() const
{
rgb_color color = ViewColor();
float thresh = color.red + (color.green * 1.5f) + (color.blue * 0.50f);
float thresh = color.red + (color.green * 1.25f) + (color.blue * 0.45f);
if (thresh >= 300) {
if (thresh >= 360) {
color.red = 0;
color.green = 0;
color.blue = 0;