From 3e47020738f9f6a45a1d3d59936e5250f1c117cc Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 17 Jan 2007 23:03:46 +0000 Subject: [PATCH] Use the system settings for the selection colours git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/py/editwindow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wxPython/wx/py/editwindow.py b/wxPython/wx/py/editwindow.py index 26c419c696..324abb255e 100644 --- a/wxPython/wx/py/editwindow.py +++ b/wxPython/wx/py/editwindow.py @@ -143,7 +143,9 @@ class EditWindow(stc.StyledTextCtrl): faces) self.StyleClearAll() - + self.SetSelForeground(True, wx.SystemSettings.GetColour(wx.SYS_COLOUR_HIGHLIGHTTEXT)) + self.SetSelBackground(True, wx.SystemSettings.GetColour(wx.SYS_COLOUR_HIGHLIGHT)) + # Built in styles self.StyleSetSpec(stc.STC_STYLE_LINENUMBER, "back:#C0C0C0,face:%(mono)s,size:%(lnsize)d" % FACES)