eric6/Preferences/__init__.py

changeset 7959
44e15eda6506
parent 7955
567f2ec958c3
child 7962
4614e724b083
--- a/eric6/Preferences/__init__.py	Tue Jan 05 15:14:40 2021 +0100
+++ b/eric6/Preferences/__init__.py	Tue Jan 05 18:28:31 2021 +0100
@@ -237,6 +237,10 @@
         "NotificationTimeout": 5,       # time in seconds the notification
                                         # is shown
         "NotificationPosition": QPoint(10, 10),
+        "NotificationWarningForeground": "#606000",
+        "NotificationWarningBackground": "#ffffd0",
+        "NotificationCriticalForeground": "#600000",
+        "NotificationCriticalBackground": "#ffd0d0",
         "TextMimeTypes": [
             "application/bookmarks.xbel",
             "application/x-xbel",
@@ -1931,7 +1935,7 @@
         return pwConvert(
             prefClass.settings.value("UI/" + key, prefClass.uiDefaults[key]),
             encode=False)
-    elif key in ["LogStdErrColour"]:
+    elif key in ("LogStdErrColour",):
         col = prefClass.settings.value("UI/" + key)
         if col is not None:
             return QColor(col)
@@ -1995,7 +1999,7 @@
             for ba in value[name][2]:
                 profiles[name][2].append(bytes(ba.toBase64()).decode())
         prefClass.settings.setValue("UI/" + key, json.dumps(profiles))
-    elif key == "LogStdErrColour":
+    elif key in ("LogStdErrColour",):
         prefClass.settings.setValue("UI/" + key, value.name())
     elif key in ["ProxyPassword/Http", "ProxyPassword/Https",
                  "ProxyPassword/Ftp", ]:

eric ide

mercurial