Skip to content

Commit

Permalink
'[skin]' fix parseGradient color validation
Browse files Browse the repository at this point in the history
  • Loading branch information
jbleyel authored and fairbird committed Feb 12, 2024
1 parent 45e6750 commit 62fb017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/skin.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def parseFont(value, scale=((1, 1), (1, 1))):

def parseGradient(value):
def validColor(value):
if value[0] == "#" and 7 < len(value) < 10:
if value[0] == "#" and len(value) in (9, 7):
isColor = True
elif value in colors:
isColor = True
Expand Down

0 comments on commit 62fb017

Please sign in to comment.