QScintilla/Editor.py

changeset 3095
72938a6d5047
parent 3087
fdbce259929f
child 3100
1c86bf655433
--- a/QScintilla/Editor.py	Sun Nov 17 13:28:39 2013 +0100
+++ b/QScintilla/Editor.py	Sun Nov 17 15:07:56 2013 +0100
@@ -6152,6 +6152,16 @@
         
         self.useMonospaced = on
     
+    def clearStyles(self):
+        """
+        Public method to set the styles according the selected Qt style
+        or the selected editor colours.
+        """
+        super().clearStyles()
+        if Preferences.getEditor("OverrideEditAreaColours"):
+            self.setColor(Preferences.getEditorColour("EditAreaForeground"))
+            self.setPaper(Preferences.getEditorColour("EditAreaBackground"))
+    
     #################################################################
     ## Drag and Drop Support
     #################################################################

eric ide

mercurial