mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-06-25 12:01:48 +02:00
export: Fix error in import.
This commit is contained in:
parent
930b67096a
commit
008bd40f89
@ -133,7 +133,9 @@ def process_args(args):
|
||||
if not args.n:
|
||||
wallpaper.change(colors_plain["wallpaper"])
|
||||
|
||||
colors_plain["font"] = args.fn or "None"
|
||||
if args.fn:
|
||||
colors_plain["font"] = args.fn
|
||||
|
||||
export.every(colors_plain)
|
||||
|
||||
if not args.e:
|
||||
|
@ -20,7 +20,7 @@ def flatten_colors(colors):
|
||||
"""Prepare colors to be exported.
|
||||
Flatten dicts and convert colors to util.Color()"""
|
||||
all_colors = {"wallpaper": colors["wallpaper"],
|
||||
"font": colors["font"],
|
||||
"font": colors.get("font", "None"),
|
||||
**colors["special"],
|
||||
**colors["colors"]}
|
||||
return {k: util.Color(v) for k, v in all_colors.items()}
|
||||
|
Loading…
x
Reference in New Issue
Block a user