--- a/QScintilla/Shell.py Sat Sep 29 19:59:18 2012 +0200 +++ b/QScintilla/Shell.py Sun Sep 30 13:27:28 2012 +0200 @@ -15,7 +15,7 @@ QPalette, QFont, QWidget, QHBoxLayout, QVBoxLayout, QShortcut from PyQt4.Qsci import QsciScintilla -from E5Gui.E5Application import e5App +from E5Gui.E5Application import e5App, E5Application from E5Gui import E5MessageBox from . import Lexers @@ -377,7 +377,7 @@ Preferences.getEditorColour("SelectionBackground")) else: self.setSelectionBackgroundColor( - QApplication.palette().color(QPalette.Highlight)) + E5Application.palette().color(QPalette.Highlight)) if Preferences.getEditor("ColourizeSelText"): self.resetSelectionForegroundColor() elif Preferences.getEditor("CustomSelectionColours"): @@ -385,7 +385,7 @@ Preferences.getEditorColour("SelectionForeground")) else: self.setSelectionForegroundColor( - QApplication.palette().color(QPalette.HighlightedText)) + E5Application.palette().color(QPalette.HighlightedText)) self.setSelectionToEol(Preferences.getEditor("ExtendSelectionToEol")) self.setCaretForegroundColor( Preferences.getEditorColour("CaretForeground"))