diff options
| author | Dylan Araps <[email protected]> | 2018-03-15 17:25:59 +1100 |
|---|---|---|
| committer | Dylan Araps <[email protected]> | 2018-03-15 17:25:59 +1100 |
| commit | c245d27874b8742400f87247aac61c7979a3dfa6 (patch) | |
| tree | a6523a988e9a57578316e268e68422b85d15bf35 | |
| parent | Merge branch 'themes' of github.com:dylanaraps/pywal into themes (diff) | |
| download | pywal-c245d27874b8742400f87247aac61c7979a3dfa6.tar.xz pywal-c245d27874b8742400f87247aac61c7979a3dfa6.zip | |
themes: Add support for terminal.sexy json
| -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"] |