From 1029f09366bff06d41b23c7e9b001aad29e49aba Mon Sep 17 00:00:00 2001 From: dessant Date: Mon, 22 Feb 2016 09:51:07 +0200 Subject: [PATCH] append alpha for 3 digit hex colors, fix #4021 --- kivy/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kivy/parser.py b/kivy/parser.py index 4f2ef127e..4f0069370 100644 --- a/kivy/parser.py +++ b/kivy/parser.py @@ -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