diff -r 27f636beebad -r 2c730d5fd177 eric6/Preferences/ConfigurationPages/DiffColoursPage.py --- a/eric6/Preferences/ConfigurationPages/DiffColoursPage.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/Preferences/ConfigurationPages/DiffColoursPage.py Tue Mar 02 17:17:09 2021 +0100 @@ -138,8 +138,9 @@ """ colorKey = button.property("colorKey") - colour = QColorDialog.getColor(self.__coloursDict[colorKey][0], self, - "", QColorDialog.ShowAlphaChannel) + colour = QColorDialog.getColor( + self.__coloursDict[colorKey][0], self, "", + QColorDialog.ColorDialogOption.ShowAlphaChannel) if colour.isValid(): self.__coloursDict[colorKey][0] = colour self.__updateSampleBackgroundColour(colorKey) @@ -155,7 +156,7 @@ colour = self.__coloursDict[colourKey][0] for sample in self.__allSamples: pl = sample.palette() - pl.setColor(QPalette.Text, colour) + pl.setColor(QPalette.ColorRole.Text, colour) sample.setPalette(pl) sample.repaint() @@ -170,7 +171,7 @@ if sample: colour = self.__coloursDict[colourKey][0] pl = sample.palette() - pl.setColor(QPalette.Base, colour) + pl.setColor(QPalette.ColorRole.Base, colour) sample.setPalette(pl) sample.repaint()