eric7/Preferences/__init__.py

branch
eric7
changeset 8875
67c3ea933787
parent 8864
4a0f7105dbd8
child 8881
54e42bc2437a
--- a/eric7/Preferences/__init__.py	Tue Dec 28 19:10:38 2021 +0100
+++ b/eric7/Preferences/__init__.py	Wed Dec 29 16:38:32 2021 +0100
@@ -1402,12 +1402,6 @@
         "OpenInOverwriteMode": True,
         "OpenReadOnly": False,
         "HighlightChanges": True,
-        "HighlightingBackGround": QColor("#ffff99"),
-        "HighlightingForeGround": QColor(Qt.GlobalColor.black),
-        "SelectionBackGround": QColor("#308cc6"),
-        "SelectionForeGround": QColor(Qt.GlobalColor.white),
-        "AddressAreaBackGround": QColor("#efedec"),
-        "AddressAreaForeGround": QColor(Qt.GlobalColor.black),
         "RecentNumber": 9,
     }
     if Globals.isWindowsPlatform():
@@ -3345,11 +3339,6 @@
                  "OpenReadOnly", "HighlightChanges"]:
         return toBool(Prefs.settings.value(
             "HexEditor/" + key, Prefs.hexEditorDefaults[key]))
-    elif key in ["HighlightingBackGround", "HighlightingForeGround",
-                 "SelectionBackGround", "SelectionForeGround",
-                 "AddressAreaBackGround", "AddressAreaForeGround"]:
-        return QColor(Prefs.settings.value(
-            "HexEditor/" + key, Prefs.hexEditorDefaults[key]))
     elif key in ["Font"]:
         f = QFont()
         f.fromString(Prefs.settings.value(
@@ -3367,15 +3356,7 @@
     @param key the key of the setting to be set
     @param value the value to be set
     """
-    if key in ["HighlightingBackGround", "HighlightingForeGround",
-               "SelectionBackGround", "SelectionForeGround",
-               "AddressAreaBackGround", "AddressAreaForeGround"]:
-        if value.alpha() < 255:
-            val = "#{0:8x}".format(value.rgba())
-        else:
-            val = value.name()
-        Prefs.settings.setValue("HexEditor/" + key, val)
-    elif key in ["Font"]:
+    if key in ["Font"]:
         Prefs.settings.setValue("HexEditor/" + key, value.toString())
     else:
         Prefs.settings.setValue("HexEditor/" + key, value)

eric ide

mercurial