Fix parsing; fix code style.

This commit is contained in:
Sergey Vartanov 2020-09-10 00:39:45 +03:00
parent 9b10f29d39
commit 7bfbf32697
9 changed files with 204 additions and 151 deletions

View file

@ -72,6 +72,8 @@ class Scheme:
"""
if color in self.colors:
return "#" + self.colors[color]
if color.lower() in self.colors:
return "#" + self.colors[color.lower()]
if color.startswith("#"):
return color