Define all stock colours using their fixed RGB values

For some reason, names were used for cyan and light grey, even though
all the other ones used RGB values since refactoring the stock objects
to be created on demand in f516d98637.

Use RGB values for these two as well now.

Closes #18530.
This commit is contained in:
Vadim Zeitlin 2019-10-15 23:13:04 +02:00
parent ad7fb7f4aa
commit 29be54d76e

View File

@ -544,7 +544,7 @@ const wxColour* wxStockGDI::GetColour(Item item)
colour = new wxColour(0, 0, 255);
break;
case COLOUR_CYAN:
colour = new wxColour(wxT("CYAN"));
colour = new wxColour(0, 255, 255);
break;
case COLOUR_GREEN:
colour = new wxColour(0, 255, 0);
@ -553,7 +553,7 @@ const wxColour* wxStockGDI::GetColour(Item item)
colour = new wxColour(255, 255, 0);
break;
case COLOUR_LIGHTGREY:
colour = new wxColour(wxT("LIGHT GREY"));
colour = new wxColour(192, 192, 192);
break;
case COLOUR_RED:
colour = new wxColour(255, 0, 0);