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:
parent
a352dee1f1
commit
829d3fd094
@ -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() )
|
||||
|
Loading…
Reference in New Issue
Block a user