diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2018-03-31 10:54:42 +1100 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2018-03-31 10:54:42 +1100 |
| commit | 32792a0b98baa6c920ebd8fba74a5fa196ae1fd5 (patch) | |
| tree | 83d8f1a727f8a64e18ef3cdaa573a9ce65ba4145 | |
| parent | 5d9a00535f965f3e50d7b3f9e3f20b3e2dc28d3a (diff) | |
backend: cleanup
| -rw-r--r-- | pywal/__main__.py | 3 | ||||
| -rw-r--r-- | pywal/colors.py | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/pywal/__main__.py b/pywal/__main__.py index 61dcc25..8a7d760 100644 --- a/pywal/__main__.py +++ b/pywal/__main__.py @@ -128,8 +128,7 @@ def process_args(args): if args.i: image_file = image.get(args.i) - colors_plain = colors.generate(img=image_file, light=args.l, - backend=args.backend) + colors_plain = colors.gen(image_file, args.l, args.backend) if args.f: colors_plain = colors.file(args.f) diff --git a/pywal/colors.py b/pywal/colors.py index 1dcf840..b0c6f49 100644 --- a/pywal/colors.py +++ b/pywal/colors.py @@ -24,7 +24,7 @@ def list_backends(): return "colorthief, colorz, wal" -def generate(img, cache_dir=CACHE_DIR, light=False, backend="wal"): +def gen(img, light=False, backend="wal", cache_dir=CACHE_DIR): """Generate a palette.""" # home_dylan_img_jpg_backend_1.2.2.json color_type = "light" if light else "dark" |
