diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 2756aae706..78ab725250 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -4330,10 +4330,10 @@ void wxGrid::Init() } else { - m_labelBackgroundColour = wxColour( wxT("WHITE") ); + m_labelBackgroundColour = *wxWHITE; } - m_labelTextColour = wxColour( wxT("BLACK") ); + m_labelTextColour = *wxBLACK; // init attr cache m_attrCache.row = -1; diff --git a/src/generic/statusbr.cpp b/src/generic/statusbr.cpp index 512db25f6d..b08f2f3337 100644 --- a/src/generic/statusbr.cpp +++ b/src/generic/statusbr.cpp @@ -358,17 +358,13 @@ void wxStatusBarGeneric::InitColours() m_hilightPen = wxPen(hilightColour, 1, wxSOLID); #elif defined(__WXPM__) m_mediumShadowPen = wxPen(wxColour(127, 127, 127), 1, wxSOLID); - m_hilightPen = wxPen(_T("WHITE"), 1, wxSOLID); + m_hilightPen = *wxWHITE_PEN; - wxColour vColour; - - vColour.Set(wxString(_T("LIGHT GREY"))); - SetBackgroundColour(vColour); - vColour.Set(wxString(_T("BLACK"))); - SetForegroundColour(vColour); + SetBackgroundColour(*wxLIGHT_GREY); + SetForegroundColour(*wxBLACK); #else - m_mediumShadowPen = wxPen(_T("GREY"), 1, wxSOLID); - m_hilightPen = wxPen(_T("WHITE"), 1, wxSOLID); + m_mediumShadowPen = *wxGREY_PEN; + m_hilightPen = *wxWHITE_PEN; #endif }