http://article.gmane.org/gmane.comp.ide ... ser/188165
I can't say whether it's right or not, but here's what the color parser in the engine code (in uidc.cpp) does:
Code: Select all
check for a number
if that fails,
check against the colornames
return boolean for the colornames check
else
check for a second number (g value)
if only one number
dissect the first number into rgb components
else (we have r&b values) <g>
get a third number (g value)
if only two numbers, return False
parse the rgb values into a color variable
return True
Should this be "fixed" by returning false if there's a fourth number in the line? Is there a reason to stop at three - do we need a fourth number entry in color specifications in the future for something? Do we need it now?