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) |