diff options
| author | Dylan Araps <[email protected]> | 2017-06-26 12:29:22 +1000 |
|---|---|---|
| committer | Dylan Araps <[email protected]> | 2017-06-26 12:29:22 +1000 |
| commit | a3db3419800a04b5b5b0043c7169019424b67f9b (patch) | |
| tree | 6a23a4743562a22081bc98fe798f1c2c4831f54d | |
| parent | General: Generalise functions. (diff) | |
| download | pywal-a3db3419800a04b5b5b0043c7169019424b67f9b.tar.xz pywal-a3db3419800a04b5b5b0043c7169019424b67f9b.zip | |
General: Reduce number of imports in gen_colors.
| -rwxr-xr-x | pywal/__main__.py | 1 | ||||
| -rw-r--r-- | pywal/gen_colors.py | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pywal/__main__.py b/pywal/__main__.py index 8c402d4..c78059a 100755 --- a/pywal/__main__.py +++ b/pywal/__main__.py @@ -84,6 +84,7 @@ def process_args(args): if args.i: image = gen_colors.get_image(args.i) s.ColorType.plain = gen_colors.get_colors(image) + s.ColorType.plain[8] = set_colors.set_grey(s.ColorType.plain) if not args.n: wallpaper.set_wallpaper(image) diff --git a/pywal/gen_colors.py b/pywal/gen_colors.py index 0898e2d..8ad3aa1 100644 --- a/pywal/gen_colors.py +++ b/pywal/gen_colors.py @@ -9,7 +9,6 @@ import shutil import subprocess from pywal import settings as s -from pywal import set_colors from pywal import util @@ -131,7 +130,7 @@ def sort_colors(colors): sorted_colors.append(colors[13]) sorted_colors.append(colors[14]) sorted_colors.append(colors[15]) - sorted_colors.append(set_colors.set_grey(colors)) + sorted_colors.append(colors[8]) sorted_colors.append(colors[9]) sorted_colors.append(colors[10]) sorted_colors.append(colors[11]) |