Preferences/__init__.py

changeset 1566
0cb791cc631a
parent 1509
c0b5e693b0eb
child 1588
dccffd13be8d
--- a/Preferences/__init__.py	Fri Jan 20 18:54:06 2012 +0100
+++ b/Preferences/__init__.py	Sat Jan 21 15:01:53 2012 +0100
@@ -22,7 +22,7 @@
 
 from PyQt4.QtCore import QDir, QPoint, QLocale, QSettings, QFileInfo, QCoreApplication, \
     QByteArray, QSize, QUrl, Qt, QLibraryInfo
-from PyQt4.QtGui import QColor, QFont, QInputDialog
+from PyQt4.QtGui import QColor, QFont, QInputDialog, QApplication, QPalette
 from PyQt4.QtNetwork import QNetworkRequest
 from PyQt4.QtWebKit import QWebSettings
 from PyQt4.Qsci import QsciScintilla
@@ -245,6 +245,7 @@
         "ClearBreaksOnClose": True,
         "StripTrailingWhitespace": False,
         "CommentColumn0": True,
+        "OverrideEditAreaColours": False,
         
         "EdgeMode": QsciScintilla.EdgeNone,
         "EdgeColumn": 80,
@@ -445,6 +446,10 @@
         "AnnotationsErrorBackground": QColor("#ffd0d0"),
         "WhitespaceForeground": QColor(Qt.darkGray),
         "WhitespaceBackground": QColor(Qt.white),
+        "EditAreaForeground": 
+            QApplication.palette().color(QPalette.Active, QPalette.Base),
+        "EditAreaBackground":
+            QApplication.palette().color(QPalette.Active, QPalette.Text),
     }
     
     editorOtherFontsDefaults = {

eric ide

mercurial