summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@redhat.com>2019-02-22 15:40:52 +0100
committerCarlos Soriano <csoriano1618+gnome@gmail.com>2019-02-22 14:44:16 +0000
commite03376b9d84480bf9596fb551fa94d101e9dd4ce (patch)
tree1d6897a850ba57ad9da99aaaa9f3a75aea39d217 /eel
parent2ea9fee81a4461c297534d012b08fac7d58f69fa (diff)
downloadnautilus-e03376b9d84480bf9596fb551fa94d101e9dd4ce.tar.gz
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
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-graphic-effects.c4
1 files changed, 3 insertions, 1 deletions
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;