Now uses the correct selection colours.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49430 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2007-10-25 14:53:07 +00:00
parent caad01090a
commit 0ec6da0248

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"
@@ -4258,9 +4259,12 @@ bool wxRichTextPlainText::DrawTabbedString(wxDC& dc, const wxTextAttr& attr, con
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