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:
parent
2e44201fb6
commit
1edfc58599
@ -436,7 +436,27 @@ impl Ui {
|
|||||||
result = result.push(
|
result = result.push(
|
||||||
Container::new(
|
Container::new(
|
||||||
column![
|
column![
|
||||||
|
row![
|
||||||
text(cert.name().to_string()).size(18),
|
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),
|
horizontal_rule(1),
|
||||||
row![text("Issuer: ").width(160), text(cert.issuer().to_string())],
|
row![text("Issuer: ").width(160), text(cert.issuer().to_string())],
|
||||||
row![
|
row![
|
||||||
|
Loading…
x
Reference in New Issue
Block a user