summaryrefslogtreecommitdiff
path: root/pywal
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-08-10 09:35:33 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-08-10 09:35:33 +1000
commitb142ea0814ea1846451769b05a061e988f57a769 (patch)
tree185bee513bf9afde50b9e614085e53e0b688b404 /pywal
parentc61960722d28373a4668814d996a248819e220c0 (diff)
general: Remove need for OrderedDict
Diffstat (limited to 'pywal')
-rw-r--r--pywal/colors.py3
-rw-r--r--pywal/sequences.py4
2 files changed, 3 insertions, 4 deletions
diff --git a/pywal/colors.py b/pywal/colors.py
index cb1df05..e20c27d 100644
--- a/pywal/colors.py
+++ b/pywal/colors.py
@@ -1,7 +1,6 @@
"""
Generate a colorscheme using imagemagick.
"""
-import collections
import os
import re
import shutil
@@ -69,7 +68,7 @@ def sort_colors(img, colors):
colors = {}
colors["wallpaper"] = img
colors["special"] = {}
- colors["colors"] = collections.OrderedDict()
+ colors["colors"] = {}
colors["special"]["background"] = raw_colors[0]
colors["special"]["foreground"] = raw_colors[15]
diff --git a/pywal/sequences.py b/pywal/sequences.py
index 4844837..67c3efd 100644
--- a/pywal/sequences.py
+++ b/pywal/sequences.py
@@ -42,8 +42,8 @@ def set_iterm_tab_color(color):
def create_sequences(colors, vte):
"""Create the escape sequences."""
# Colors 0-15.
- sequences = [set_color(num, col) for num, col in
- enumerate(colors["colors"].values())]
+ sequences = [set_color(index, colors["colors"]["color%s" % index])
+ for index in range(16)]
# Set a blank color that isn't affected by bold highlighting.
# Used in wal.vim's airline theme.