diff -r 8cb0dabf852f -r ee1aadab1215 src/eric7/Preferences/ConfigurationPages/EditorStylesPage.py --- a/src/eric7/Preferences/ConfigurationPages/EditorStylesPage.py Sat Nov 11 10:13:29 2023 +0100 +++ b/src/eric7/Preferences/ConfigurationPages/EditorStylesPage.py Sat Nov 11 12:44:51 2023 +0100 @@ -610,9 +610,7 @@ self.editorColours[fgColorStr] if isBackground else color, color if isBackground else self.editorColours[bgColorStr], ) - self.editorColours[ - bgColorStr if isBackground else fgColorStr - ] = color + self.editorColours[bgColorStr if isBackground else fgColorStr] = color @pyqtSlot() def on_annotationsWarningFgButton_clicked(self):