diff options
| author | Dylan Araps <[email protected]> | 2017-07-28 12:19:40 +1000 |
|---|---|---|
| committer | Dylan Araps <[email protected]> | 2017-07-28 12:19:40 +1000 |
| commit | 182479b795e0430cc7b30cabc862465468952cc2 (patch) | |
| tree | 51f543cfaecd8f93cf74db6e36b32c666bf1a70f | |
| parent | colors: Darken bg if contrast is too low. (diff) | |
| download | pywal-182479b795e0430cc7b30cabc862465468952cc2.tar.xz pywal-182479b795e0430cc7b30cabc862465468952cc2.zip | |
colors: Don't overdarken
| -rw-r--r-- | pywal/colors.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pywal/colors.py b/pywal/colors.py index b2c390e..7e2dbb0 100644 --- a/pywal/colors.py +++ b/pywal/colors.py @@ -55,10 +55,7 @@ def sort_colors(img, colors): raw_colors = colors[:1] + colors[9:] + colors[8:] # Darken the background color if it's too light. - if int(raw_colors[0][1]) in [3, 4]: - raw_colors[0] = util.darken_color(raw_colors[0], 0.50) - - elif int(raw_colors[0][1]) >= 5: + if int(raw_colors[0][1]) >= 3: raw_colors[0] = util.darken_color(raw_colors[0], 0.25) colors = {"wallpaper": img} |