mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-01 02:11:58 +02:00
Use "#" in color scheme.
This commit is contained in:
parent
8d2c92e30c
commit
36ada6872c
2 changed files with 58 additions and 58 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue