mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-02-03 03:50:30 +01:00
backend: cleanup
This commit is contained in:
parent
5d9a00535f
commit
32792a0b98
@ -128,8 +128,7 @@ def process_args(args):
|
|||||||
|
|
||||||
if args.i:
|
if args.i:
|
||||||
image_file = image.get(args.i)
|
image_file = image.get(args.i)
|
||||||
colors_plain = colors.generate(img=image_file, light=args.l,
|
colors_plain = colors.gen(image_file, args.l, args.backend)
|
||||||
backend=args.backend)
|
|
||||||
|
|
||||||
if args.f:
|
if args.f:
|
||||||
colors_plain = colors.file(args.f)
|
colors_plain = colors.file(args.f)
|
||||||
|
@ -24,7 +24,7 @@ def list_backends():
|
|||||||
return "colorthief, colorz, wal"
|
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."""
|
"""Generate a palette."""
|
||||||
# home_dylan_img_jpg_backend_1.2.2.json
|
# home_dylan_img_jpg_backend_1.2.2.json
|
||||||
color_type = "light" if light else "dark"
|
color_type = "light" if light else "dark"
|
||||||
|
Loading…
Reference in New Issue
Block a user