Switch (back) to our own Color type instead of using wxColour.

The reason is that wxColour's default constructor creates an invalid color (what is that even?). It is nicer to just have default be transparent.
This commit is contained in:
Twan van Laarhoven
2020-04-26 21:41:35 +02:00
parent 8698144ac4
commit af7e8c9d39
13 changed files with 101 additions and 46 deletions
+3 -3
View File
@@ -341,11 +341,11 @@ public:
}
}
Color toColor() const override {
Color c = parse_color(value);
if (!c.Ok()) {
optional<Color> c = parse_color(value);
if (!c.has_value()) {
throw ScriptErrorConversion(value, typeName(), _TYPE_("color"));
}
return c;
return *c;
}
wxDateTime toDateTime() const override {
wxDateTime date;