diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-08-03 06:10:36 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-08-03 06:10:36 +1000 |
| commit | 8a0b380eb548766e30c6e6d1818bbcbbef84c19a (patch) | |
| tree | a856f16cbe00b67960ccfc82d2d56260341fadd1 /pywal/colors.py | |
| parent | 1a5b4192a6bdcc1a7f0866640821c340642f2a7e (diff) | |
| parent | 161cfd8ec1a361b4b766cb95a733027d4989d612 (diff) | |
Merge branch 'master' of github.com:dylanaraps/wal.py
Diffstat (limited to 'pywal/colors.py')
| -rw-r--r-- | pywal/colors.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pywal/colors.py b/pywal/colors.py index 64707be..2483acd 100644 --- a/pywal/colors.py +++ b/pywal/colors.py @@ -61,18 +61,20 @@ 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) - colors = {"wallpaper": img} + # 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 |
