On Mac, when selection is drawn in grey (i.e. unfocused), text color needs to be black.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier
2006-11-09 20:15:18 +00:00
parent 464b15e17d
commit d6d8b17280

View File

@@ -720,6 +720,11 @@ public:
{
return m_hasFocus ? m_highlightBrush : m_highlightUnfocusedBrush;
}
bool HasFocus() const
{
return m_hasFocus;
}
//protected:
// the array of all line objects for a non virtual list control (for the
@@ -1381,7 +1386,12 @@ bool wxListLineData::SetAttributes(wxDC *dc,
wxColour colText;
if ( highlighted )
#ifdef __WXMAC__
colText = *wxWHITE;
{
if (m_owner->HasFocus())
colText = *wxWHITE;
else
colText = *wxBLACK;
}
#else
colText = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT);
#endif