259 "InsecureUrlColor") |
259 "InsecureUrlColor") |
260 else: |
260 else: |
261 backgroundColor = Preferences.getWebBrowser( |
261 backgroundColor = Preferences.getWebBrowser( |
262 "SecureUrlColor") |
262 "SecureUrlColor") |
263 |
263 |
264 if progress == 0 or progress == 100: |
264 if progress in (0, 100): |
265 p.setBrush(QPalette.ColorRole.Base, backgroundColor) |
265 p.setBrush(QPalette.ColorRole.Base, backgroundColor) |
266 p.setBrush(QPalette.ColorRole.Text, foregroundColor) |
266 p.setBrush(QPalette.ColorRole.Text, foregroundColor) |
267 else: |
267 else: |
268 highlight = QApplication.palette().color( |
268 highlight = QApplication.palette().color( |
269 QPalette.ColorRole.Highlight) |
269 QPalette.ColorRole.Highlight) |