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