mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-05-20 16:20:53 +02:00
general: Remove need for OrderedDict
This commit is contained in:
parent
c61960722d
commit
b142ea0814
@ -1,7 +1,6 @@
|
|||||||
"""
|
"""
|
||||||
Generate a colorscheme using imagemagick.
|
Generate a colorscheme using imagemagick.
|
||||||
"""
|
"""
|
||||||
import collections
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
@ -69,7 +68,7 @@ def sort_colors(img, colors):
|
|||||||
colors = {}
|
colors = {}
|
||||||
colors["wallpaper"] = img
|
colors["wallpaper"] = img
|
||||||
colors["special"] = {}
|
colors["special"] = {}
|
||||||
colors["colors"] = collections.OrderedDict()
|
colors["colors"] = {}
|
||||||
|
|
||||||
colors["special"]["background"] = raw_colors[0]
|
colors["special"]["background"] = raw_colors[0]
|
||||||
colors["special"]["foreground"] = raw_colors[15]
|
colors["special"]["foreground"] = raw_colors[15]
|
||||||
|
@ -42,8 +42,8 @@ def set_iterm_tab_color(color):
|
|||||||
def create_sequences(colors, vte):
|
def create_sequences(colors, vte):
|
||||||
"""Create the escape sequences."""
|
"""Create the escape sequences."""
|
||||||
# Colors 0-15.
|
# Colors 0-15.
|
||||||
sequences = [set_color(num, col) for num, col in
|
sequences = [set_color(index, colors["colors"]["color%s" % index])
|
||||||
enumerate(colors["colors"].values())]
|
for index in range(16)]
|
||||||
|
|
||||||
# Set a blank color that isn't affected by bold highlighting.
|
# Set a blank color that isn't affected by bold highlighting.
|
||||||
# Used in wal.vim's airline theme.
|
# Used in wal.vim's airline theme.
|
||||||
|
Loading…
Reference in New Issue
Block a user