mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-01-09 23:48:35 +01:00
misc: cleanup
This commit is contained in:
parent
534768a791
commit
ae1c31305f
@ -131,15 +131,15 @@ def get(img, cache_dir=CACHE_DIR,
|
||||
def terminal_sexy_to_wal(data):
|
||||
"""Convert terminal.sexy json schema to wal."""
|
||||
data["colors"] = {}
|
||||
data["special"] = {}
|
||||
data["special"] = {
|
||||
"foreground": data["foreground"],
|
||||
"background": data["background"],
|
||||
"cursor": data["color"][9]
|
||||
}
|
||||
|
||||
for i, color in enumerate(data["color"]):
|
||||
data["colors"]["color%s" % i] = color
|
||||
|
||||
data["special"]["foreground"] = data["foreground"]
|
||||
data["special"]["background"] = data["background"]
|
||||
data["special"]["cursor"] = data["colors"]["color1"]
|
||||
|
||||
return data
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user