[haiku-commits] haiku: hrev51115 - src/kits/tracker

  • From: humdingerb@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 22 Apr 2017 17:02:33 +0200 (CEST)

hrev51115 adds 1 changeset to branch 'master'
old head: b5aaac027ef4d5aed27ef82efdef6bafdbb76a66
new head: 54a37ee40f27aa8b8ae29609f0f6bd8c14361280
overview: 
http://cgit.haiku-os.org/haiku/log/?qt=range&q=54a37ee40f27+%5Eb5aaac027ef4

----------------------------------------------------------------------------

54a37ee40f27: 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...

                                        [ Humdinger <humdingerb@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev51115
Commit:      54a37ee40f27aa8b8ae29609f0f6bd8c14361280
URL:         http://cgit.haiku-os.org/haiku/commit/?id=54a37ee40f27
Author:      Humdinger <humdingerb@xxxxxxxxx>
Date:        Sat Apr 22 14:57:47 2017 UTC

----------------------------------------------------------------------------

1 file changed, 2 insertions(+), 2 deletions(-)
src/kits/tracker/PoseView.cpp | 4 ++--

----------------------------------------------------------------------------

diff --git a/src/kits/tracker/PoseView.cpp b/src/kits/tracker/PoseView.cpp
index b8ba49d..5c06174 100644
--- a/src/kits/tracker/PoseView.cpp
+++ b/src/kits/tracker/PoseView.cpp
@@ -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;


Other related posts:

  • » [haiku-commits] haiku: hrev51115 - src/kits/tracker - humdingerb