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)