diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-08-02 19:37:55 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-08-02 19:37:55 +1000 |
| commit | 93c4bcd96ba22d6ca4c759418ae841ea446c5ee7 (patch) | |
| tree | 42e67ae8d207aac60868f69b7912cf505203a604 /pywal/colors.py | |
| parent | 29d7c93779d6bc60422934277fdb0811ee9489ea (diff) | |
colors: Create comment color based on bg.
Diffstat (limited to 'pywal/colors.py')
| -rw-r--r-- | pywal/colors.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pywal/colors.py b/pywal/colors.py index 64707be..56ab095 100644 --- a/pywal/colors.py +++ b/pywal/colors.py @@ -61,18 +61,21 @@ def sort_colors(img, colors): if raw_colors[0][1] not in ["0", "1", "2"]: 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) + colors = {"wallpaper": img} colors_special = {} + colors_hex = {} + colors_special.update({"background": raw_colors[0]}) colors_special.update({"foreground": raw_colors[15]}) colors_special.update({"cursor": raw_colors[15]}) - colors_hex = {} for index, color in enumerate(raw_colors): colors_hex.update({f"color{index}": color}) - colors_hex["color8"] = util.set_grey(raw_colors) colors["special"] = colors_special colors["colors"] = colors_hex |
