mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
add "silver" and "gold" color words
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user