--- 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 #################################################################