[python] Accept "grey" color

Change-Id: Ia9b70eb3b4205ae9571eb4269410c30cfbdd1214
This commit is contained in:
Hugo Saint-Vignes
2020-07-20 17:45:09 +02:00
committed by Émilie Feral
parent e27c668c40
commit 641186d89c

View File

@@ -202,9 +202,10 @@ KDColor MicroPython::Color::Parse(mp_obj_t input, Mode mode){
NamedColor("orange", Palette::Orange),
NamedColor("purple", Palette::Purple),
NamedColor("gray", Palette::GrayDark),
NamedColor("grey", Palette::GrayDark),
NamedColor("cyan", Palette::Cyan),
NamedColor("magenta", Palette::Magenta)
};
};
for (NamedColor p : pairs) {
if (strcmp(p.name(), color) == 0) {
return p.color();