--- a/src/eric7/WebBrowser/UrlBar/SslLabel.py Wed Jul 13 11:16:20 2022 +0200 +++ b/src/eric7/WebBrowser/UrlBar/SslLabel.py Wed Jul 13 14:55:47 2022 +0200 @@ -16,23 +16,24 @@ """ Class implementing the label to show some SSL info (if available). """ + okStyle = "QLabel { color : white; background-color : green; }" nokStyle = "QLabel { color : white; background-color : red; }" - + def __init__(self, parent=None): """ Constructor - + @param parent reference to the parent widget (QWidget) """ super().__init__(parent) - + self.setFocusPolicy(Qt.FocusPolicy.NoFocus) - + def setValidity(self, valid): """ Public method to set the validity indication. - + @param valid flag indicating the certificate validity (boolean) """ if valid: