eric7/WebBrowser/SearchWidget.py

branch
eric7
changeset 8859
64252c7bfb87
parent 8858
a70a980e7d4f
child 8881
54e42bc2437a
equal deleted inserted replaced
8858:a70a980e7d4f 8859:64252c7bfb87
220 Private slot to change the findtext combo background to indicate 220 Private slot to change the findtext combo background to indicate
221 errors. 221 errors.
222 222
223 @param error flag indicating an error condition (boolean) 223 @param error flag indicating an error condition (boolean)
224 """ 224 """
225 if error: 225 styleSheet = (
226 styleSheet = "color: #000000; background-color: #ff6666" 226 "color: #000000; background-color: #ff6666"
227 else: 227 if error else
228 styleSheet = ( 228 f"color: {self.__defaultTextColor};"
229 f"color: {self.__defaultTextColor};" 229 f" background-color: {self.__defaultBaseColor}"
230 f" background-color: {self.__defaultBaseColor}" 230 )
231 )
232 self.findtextCombo.setStyleSheet(styleSheet) 231 self.findtextCombo.setStyleSheet(styleSheet)

eric ide

mercurial