Use "#" in color scheme.

This commit is contained in:
Sergey Vartanov 2020-09-27 01:34:20 +03:00
parent 8d2c92e30c
commit 36ada6872c
2 changed files with 58 additions and 58 deletions

View file

@ -72,9 +72,9 @@ class Scheme:
:return: 6-digit color specification with "#"
"""
if color in self.colors:
return Color("#" + self.colors[color])
return Color(self.colors[color])
if color.lower() in self.colors:
return Color("#" + self.colors[color.lower()])
return Color(self.colors[color.lower()])
try:
return Color(color)
except ValueError: