eric7/Preferences/__init__.py

branch
eric7
changeset 8842
80ce644a6067
parent 8837
6b4b2acc5324
child 8843
586ee2c4553a
--- a/eric7/Preferences/__init__.py	Sun Dec 19 17:58:43 2021 +0100
+++ b/eric7/Preferences/__init__.py	Sun Dec 19 19:38:18 2021 +0100
@@ -1401,7 +1401,7 @@
         "OpenInOverwriteMode": True,
         "OpenReadOnly": False,
         "HighlightChanges": True,
-        "HighlightingBackGround": QColor(0xff, 0xff, 0x99, 0xff),
+        "HighlightingBackGround": QColor("#ffff99"),
         "HighlightingForeGround": QColor(Qt.GlobalColor.black),
         "SelectionBackGround": QColor("#308cc6"),
         "SelectionForeGround": QColor(Qt.GlobalColor.white),
@@ -1869,10 +1869,11 @@
         "ASTViewerErrorColor", "DisViewerErrorColor",
         "DisViewerCurrentColor", "DisViewerLabeledColor",
     ):
-        if value.alpha() < 255:
-            val = "#{0:8x}".format(value.rgba())
-        else:
-            val = value.name()
+        val = (
+            "#{0:8x}".format(value.rgba())
+            if value.alpha() < 255 else
+            value.name()
+        )
         Prefs.settings.setValue("Python/" + key, val)
     else:
         Prefs.settings.setValue("Python/" + key, value)
@@ -3405,7 +3406,8 @@
     @param value the colour to be set
     """
     val = ("#{0:8x}".format(value.rgba())
-           if value.alpha() < 255 else value.name())
+           if value.alpha() < 255 else
+           value.name())
     Prefs.settings.setValue("Diff/" + key, val)
 
 

eric ide

mercurial