eric6/WebBrowser/UrlBar/UrlBar.py

changeset 8205
4a0f1f896341
parent 8143
2c730d5fd177
child 8218
7c09585bd960
equal deleted inserted replaced
8204:fd477cded1c1 8205:4a0f1f896341
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)

eric ide

mercurial