diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2018-03-15 17:25:59 +1100 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2018-03-15 17:25:59 +1100 |
| commit | c245d27874b8742400f87247aac61c7979a3dfa6 (patch) | |
| tree | a6523a988e9a57578316e268e68422b85d15bf35 /pywal/colors.py | |
| parent | 8d7673156fc7d2bd9e6dfa177b0ddabadd5b815e (diff) | |
themes: Add support for terminal.sexy json
Diffstat (limited to 'pywal/colors.py')
| -rw-r--r-- | pywal/colors.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/pywal/colors.py b/pywal/colors.py index bff33c4..e7e75bd 100644 --- a/pywal/colors.py +++ b/pywal/colors.py @@ -132,12 +132,9 @@ def terminal_sexy_to_wal(data): data["colors"] = {} data["special"] = {} - for i in range(0, 16): - data["colors"]["color%s" % i] = data["color"][i if i < 9 else i - 8] + for i, color in enumerate(data["color"]): + data["colors"]["color%s" % i] = color - data["colors"]["color0"] = data["background"] - data["colors"]["color7"] = data["foreground"] - data["colors"]["color15"] = data["foreground"] data["special"]["foreground"] = data["foreground"] data["special"]["background"] = data["background"] data["special"]["cursor"] = data["colors"]["color1"] |
