diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-07-01 19:45:53 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-07-01 19:45:53 +1000 |
| commit | 0425f1d8aa0de1f499d6e93b731f193994f59902 (patch) | |
| tree | 324d35a53ecc798b9facaf91578e4610400dcd31 /pywal/util.py | |
| parent | 0f6b48523ca188f9085b6d3295345c53b75aed20 (diff) | |
util: Fix set_grey type mismatch.
Diffstat (limited to 'pywal/util.py')
| -rw-r--r-- | pywal/util.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/pywal/util.py b/pywal/util.py index 97fe03d..8bfd676 100644 --- a/pywal/util.py +++ b/pywal/util.py @@ -25,17 +25,17 @@ class Color(object): def set_grey(colors): """Set a grey color based on brightness of color0.""" return { - 0: "#666666", - 1: "#666666", - 2: "#757575", - 3: "#999999", - 4: "#999999", - 5: "#8a8a8a", - 6: "#a1a1a1", - 7: "#a1a1a1", - 8: "#a1a1a1", - 9: "#a1a1a1", - }.get(int(colors[0][1]), colors[7]) + "0": "#666666", + "1": "#666666", + "2": "#757575", + "3": "#999999", + "4": "#999999", + "5": "#8a8a8a", + "6": "#a1a1a1", + "7": "#a1a1a1", + "8": "#a1a1a1", + "9": "#a1a1a1", + }.get(colors[0][1], colors[7]) def read_file(input_file): |
