1
0
mirror of https://github.com/pcvolkmer/cert-tools.git synced 2025-04-19 17:06:49 +00:00

feat: mark CA certificates in UI (#6)

This commit is contained in:
Paul-Christian Volkmer 2025-01-26 16:09:42 +01:00 committed by GitHub
parent 2e44201fb6
commit 1edfc58599
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -436,7 +436,27 @@ impl Ui {
result = result.push(
Container::new(
column![
row![
text(cert.name().to_string()).size(18),
text("").width(16),
if cert.is_ca() {
container(text("CA").color(color!(0x0088ff)))
.padding(4)
.style(|_| container::Style {
background: Some(Background::from(color!(
0x0088ff, 0.2
))),
border: Border {
width: 1.0,
radius: Radius::from(4),
color: color!(0x0088ff),
},
..container::Style::default()
})
} else {
container(text(""))
}
],
horizontal_rule(1),
row![text("Issuer: ").width(160), text(cert.issuer().to_string())],
row![