Now uses the correct selection colours.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2007-10-25 14:53:25 +00:00
parent 1f57c2895e
commit 768f35ecc6

View File

@@ -28,6 +28,7 @@
#include "wx/module.h" #include "wx/module.h"
#endif #endif
#include "wx/settings.h"
#include "wx/filename.h" #include "wx/filename.h"
#include "wx/clipbrd.h" #include "wx/clipbrd.h"
#include "wx/wfstream.h" #include "wx/wfstream.h"
@@ -4327,9 +4328,12 @@ bool wxRichTextPlainText::DrawTabbedString(wxDC& dc, const wxTextAttrEx& attr, c
if (selected) if (selected)
{ {
dc.SetBrush(*wxBLACK_BRUSH); wxColour highlightColour(wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT));
dc.SetPen(*wxBLACK_PEN); wxColour highlightTextColour(wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT));
dc.SetTextForeground(*wxWHITE);
dc.SetBrush(wxBrush(highlightColour));
dc.SetPen(wxPen(highlightColour));
dc.SetTextForeground(highlightTextColour);
dc.SetBackgroundMode(wxTRANSPARENT); dc.SetBackgroundMode(wxTRANSPARENT);
} }
else else