add "silver" and "gold" color words

This commit is contained in:
GenevensiS
2025-06-13 00:35:33 +02:00
parent 337f463b9a
commit 66fe43c499
+4
View File
@@ -62,6 +62,10 @@ optional<Color> parse_color(const String& v) {
return nullopt; return nullopt;
} else if (v == _("transparent")) { } else if (v == _("transparent")) {
return Color(0,0,0,0); return Color(0,0,0,0);
} else if (v == _("silver")) {
return Color(200,200,200);
} else if (v == _("gold")) {
return Color(200,180,0);
} else { } else {
// Try to find a named color // Try to find a named color
wxColour c = wxTheColourDatabase->Find(v); wxColour c = wxTheColourDatabase->Find(v);