Distinguish PGP signed and encrypted in message viewer

This commit is contained in:
the-djmaze 2022-01-26 15:00:03 +01:00
parent 5ed4498e4f
commit 3aca446e8d
2 changed files with 26 additions and 20 deletions

View file

@ -430,28 +430,34 @@ html.rl-no-preview-pane {
}
*/
}
}
.b-openpgp-control {
.b-openpgp-encrypted {
color: #18F;
}
.b-openpgp-signed {
color: #FA0;
}
color: #FA0;
cursor: pointer;
display: block;
opacity: 0.5;
margin: 15px;
.b-openpgp-control {
&:hover {
opacity: 1;
}
cursor: pointer;
display: block;
opacity: 0.5;
margin: 15px;
&.success {
color: green;
opacity: 1;
}
&:hover {
opacity: 1;
}
&.error {
color: red;
opacity: 1;
}
&.success {
color: green;
opacity: 1;
}
&.error {
color: red;
opacity: 1;
}
}

View file

@ -320,12 +320,12 @@
</div>
</div>
<div class="b-openpgp-control" data-bind="visible: pgpEncrypted, click: pgpDecrypt">
<div class="b-openpgp-control b-openpgp-encrypted" data-bind="visible: pgpEncrypted, click: pgpDecrypt">
<i class="fontastic">🔒</i>
<span data-i18n="MESSAGE/PGP_ENCRYPTED_MESSAGE_DESC"></span>
</div>
<div class="b-openpgp-control" data-bind="visible: pgpSigned, click: pgpVerify">
<i class="fontastic">🔒</i>
<div class="b-openpgp-control b-openpgp-signed" data-bind="visible: pgpSigned, click: pgpVerify">
<i class="fontastic">✍️</i>
<span data-i18n="MESSAGE/PGP_SIGNED_MESSAGE_DESC"></span>
</div>