--- a/eric7/EricWidgets/EricTextEditSearchWidget.py Sun Dec 26 17:40:02 2021 +0100 +++ b/eric7/EricWidgets/EricTextEditSearchWidget.py Sun Dec 26 17:40:29 2021 +0100 @@ -58,6 +58,8 @@ self.__texteditType = EricTextEditType.UNKNOWN self.__findBackwards = False + # TODO: change to use style sheets + # get style sheet or create one from palette self.__defaultBaseColor = ( self.findtextCombo.lineEdit().palette().color( QPalette.ColorRole.Base) @@ -460,6 +462,7 @@ """ le = self.findtextCombo.lineEdit() p = le.palette() + # TODO: change to use style sheets if error: p.setBrush(QPalette.ColorRole.Base, QBrush(QColor("#FF6666"))) p.setBrush(QPalette.ColorRole.Text, QBrush(QColor("#000000")))