On accepte les couleurs ne respectant pas la casse

darcs-hash:20060418162942-72cb0-73694f245c60b1208647408bf213dcf48b752161.gz
This commit is contained in:
salles 2006-04-18 18:29:42 +02:00
parent 5c0f67eb7a
commit dcc91445ab

View file

@ -96,7 +96,7 @@ class Parser:
for anArg in argList:
anArg = anArg.strip(u' ')
if anArg.find(u'color=')!=-1:
theColor = anArg.split(u'=')[1]
theColor = anArg.split(u'=')[1].lower()
if theColor == 'random':
theColor = self.getRandomColor()
settings['color'] = theColor