From 29be54d76ed88d58a32950720e2ac46b58028372 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 15 Oct 2019 23:13:04 +0200 Subject: [PATCH] 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 f516d986371b7643efda569d64ae19e75d221411. Use RGB values for these two as well now. Closes #18530. --- src/common/gdicmn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/gdicmn.cpp b/src/common/gdicmn.cpp index 0b2d514408..11e93ad0cb 100644 --- a/src/common/gdicmn.cpp +++ b/src/common/gdicmn.cpp @@ -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);