--- a/eric6/WebBrowser/UrlBar/UrlBar.py Thu Apr 08 17:27:12 2021 +0200 +++ b/eric6/WebBrowser/UrlBar/UrlBar.py Thu Apr 08 18:27:47 2021 +0200 @@ -261,7 +261,7 @@ backgroundColor = Preferences.getWebBrowser( "SecureUrlColor") - if progress == 0 or progress == 100: + if progress in (0, 100): p.setBrush(QPalette.ColorRole.Base, backgroundColor) p.setBrush(QPalette.ColorRole.Text, foregroundColor) else: