diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-12-28 18:26:31 +1100 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-12-28 18:26:31 +1100 |
| commit | b79c724e4ee60bd97b1bad979aec0053deed1312 (patch) | |
| tree | 0c8c6aa9e3d354da0b1dad6c7940de0c5e9f4078 | |
| parent | 293e2c5bfcc53d6ec6b81da22d2f770f3766486e (diff) | |
colors: Improve contrast and brightness.
| -rw-r--r-- | pywal/colors.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pywal/colors.py b/pywal/colors.py index 6b42747..796e2de 100644 --- a/pywal/colors.py +++ b/pywal/colors.py @@ -63,14 +63,14 @@ def sort_colors(img, colors): we will later save in json format.""" raw_colors = colors[:1] + colors[8:] + colors[8:-1] - # Darken the background color if it's too light. - # The value can be a letter or an int so we treat the - # entire test as strings. + # Darken the background color slightly. if raw_colors[0][1] != "0": raw_colors[0] = util.darken_color(raw_colors[0], 0.25) - # Create a comment color from the background. - raw_colors[8] = util.lighten_color(raw_colors[0], 0.40) + # Manually adjust colors. + raw_colors[7] = util.lighten_color(raw_colors[7], 0.25) + raw_colors[8] = util.darken_color(raw_colors[7], 0.30) + raw_colors[15] = util.lighten_color(raw_colors[15], 0.25) colors = {} colors["wallpaper"] = img |
