mirror of https://github.com/kivy/kivy.git
append alpha for 3 digit hex colors, fix #4021
This commit is contained in:
parent
509f53f5d7
commit
1029f09366
|
@ -87,7 +87,7 @@ def parse_color(text):
|
|||
for i in range(0, len(res), 2)]
|
||||
except ValueError:
|
||||
return color_error('ColorParser: Invalid color for %r' % text)
|
||||
if lres == 6:
|
||||
if lres == 6 or lres == 3:
|
||||
value.append(1.)
|
||||
return value
|
||||
|
||||
|
|
Loading…
Reference in New Issue