[nautilus/prelight: 4/4] eel-graphic-effects: Make hover light less intense



commit e03376b9d84480bf9596fb551fa94d101e9dd4ce
Author: Carlos Soriano <csoriano redhat com>
Date:   Fri Feb 22 15:40:52 2019 +0100

    eel-graphic-effects: Make hover light less intense
    
    With the new icons most of the area was white.
    
    Fixes: https://gitlab.gnome.org/GNOME/nautilus/issues/827

 eel/eel-graphic-effects.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/eel/eel-graphic-effects.c b/eel/eel-graphic-effects.c
index 4204e8825..1a57bc768 100644
--- a/eel/eel-graphic-effects.c
+++ b/eel/eel-graphic-effects.c
@@ -49,11 +49,13 @@ create_new_pixbuf (GdkPixbuf *src)
 
 /* utility routine to bump the level of a color component with pinning */
 
+const int HOVER_COMPONENT_ADDITION = 15;
+
 static guchar
 lighten_component (guchar cur_value)
 {
     int new_value = cur_value;
-    new_value += 24 + (new_value >> 3);
+    new_value = cur_value + HOVER_COMPONENT_ADDITION;
     if (new_value > 255)
     {
         new_value = 255;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]