Commit eecb99e7 authored by Volker Krause's avatar Volker Krause
Browse files

Highlight expired certificate signatures

parent 50917ee6
......@@ -83,6 +83,7 @@ ColumnLayout {
text: certificate.certificateExpiryDate.toLocaleString(Qt.locale(), Locale.ShortFormat)
Kirigami.FormData.label: i18n("Expires:")
visible: !isNaN(certificate.certificateExpiryDate.getTime())
color: certificate.certificateExpiryDate.getTime() < Date.now() ? Kirigami.Theme.negativeTextColor : Kirigami.Theme.textColor
}
Kirigami.Icon {
source: {
......
......@@ -101,6 +101,7 @@ ColumnLayout {
text: certificate.certificateExpiryDate.toLocaleString(Qt.locale(), Locale.ShortFormat)
Kirigami.FormData.label: i18n("Expires:")
visible: !isNaN(certificate.certificateExpiryDate.getTime())
color: certificate.certificateExpiryDate.getTime() < Date.now() ? Kirigami.Theme.negativeTextColor : Kirigami.Theme.textColor
}
Kirigami.Icon {
source: {
......
......@@ -107,6 +107,7 @@ ColumnLayout {
text: certificate.certificateExpiryDate.toLocaleString(Qt.locale(), Locale.ShortFormat)
Kirigami.FormData.label: i18n("Expires:")
visible: !isNaN(certificate.certificateExpiryDate.getTime())
color: certificate.certificateExpiryDate.getTime() < Date.now() ? Kirigami.Theme.negativeTextColor : Kirigami.Theme.textColor
}
Kirigami.Icon {
source: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment