diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2018-06-21 13:46:45 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2018-06-21 13:46:45 +1000 |
| commit | f29164baf95e50d8938d465f7197633d60186b21 (patch) | |
| tree | c74f925271a6970c8aeb82fa8abcd1ed22db2c70 /pywal | |
| parent | bbd1bd3558430341a9c76b63a302b587e9e1c648 (diff) | |
args: -c now exits, colors: simplified colorz
Diffstat (limited to 'pywal')
| -rw-r--r-- | pywal/__main__.py | 9 | ||||
| -rw-r--r-- | pywal/backends/colorz.py | 4 |
2 files changed, 6 insertions, 7 deletions
diff --git a/pywal/__main__.py b/pywal/__main__.py index c195b5d..dd95ee5 100644 --- a/pywal/__main__.py +++ b/pywal/__main__.py @@ -116,6 +116,11 @@ def parse_args_exit(parser): reload.colors() sys.exit(0) + if args.c: + scheme_dir = os.path.join(CACHE_DIR, "schemes") + shutil.rmtree(scheme_dir, ignore_errors=True) + sys.exit(0) + if not args.i and \ not args.theme and \ not args.R and \ @@ -141,10 +146,6 @@ def parse_args(parser): logging.getLogger().disabled = True sys.stdout = sys.stderr = open(os.devnull, "w") - if args.c: - scheme_dir = os.path.join(CACHE_DIR, "schemes") - shutil.rmtree(scheme_dir, ignore_errors=True) - if args.a: util.Color.alpha_num = args.a diff --git a/pywal/backends/colorz.py b/pywal/backends/colorz.py index 431e249..83afc5a 100644 --- a/pywal/backends/colorz.py +++ b/pywal/backends/colorz.py @@ -24,9 +24,7 @@ def gen_colors(img): def adjust(cols, light): """Create palette.""" - bg = util.blend_color("#555555", cols[1]) - - raw_colors = [bg, *cols, "#FFFFFF", + raw_colors = [cols[0], *cols, "#FFFFFF", "#333333", *cols, "#FFFFFF"] return colors.generic_adjust(raw_colors, light) |
