Restore wxGrid cursor visibility under non-Mac platforms

The changes of 3c28244806 (Improve wxGrid appearance in dark mode under
macOS, 2020-08-07) resulted in using white highlight colour over white
background under at least MSW and probably elsewhere, making the grid
cursor invisible by default.

Fix this by using wxSYS_COLOUR_WINDOWTEXT which must contrast with
wxSYS_COLOUR_WINDOW used for the background colour.
This commit is contained in:
Vadim Zeitlin 2021-05-22 16:06:10 +01:00
parent a352dee1f1
commit 829d3fd094

View File

@ -3012,7 +3012,7 @@ void wxGrid::Init()
m_gridLinesEnabled = true;
m_gridLinesClipHorz =
m_gridLinesClipVert = true;
m_cellHighlightColour = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT);
m_cellHighlightColour = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT);
m_cellHighlightPenWidth = 2;
m_cellHighlightROPenWidth = 1;
if ( wxSystemSettings::GetAppearance().IsDark() )