QScintilla/Editor.py

branch
5_3_x
changeset 3093
a0cf4c26566f
parent 2970
e9f971b4b3c5
child 3153
50f68100e6ff
--- a/QScintilla/Editor.py	Sun Nov 17 12:12:43 2013 +0100
+++ b/QScintilla/Editor.py	Sun Nov 17 15:06:51 2013 +0100
@@ -5879,6 +5879,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