]> git.saurik.com Git - wxWidgets.git/commitdiff
Use the system settings for the selection colours
authorRobin Dunn <robin@alldunn.com>
Wed, 17 Jan 2007 23:03:46 +0000 (23:03 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 17 Jan 2007 23:03:46 +0000 (23:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/py/editwindow.py

index 26c419c696d483ef0a5fd01251db65d0dd789050..324abb255efbc1d4c56376475b39e20530add8cd 100644 (file)
@@ -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)