From 2e44201fb68c7d1c9570edf837079dc2ae71c00c Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Sun, 26 Jan 2025 16:09:24 +0100 Subject: [PATCH] feat: show crate version in UI (#5) --- ui/src/main.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/src/main.rs b/ui/src/main.rs index 71dfb4e..3668949 100644 --- a/ui/src/main.rs +++ b/ui/src/main.rs @@ -101,7 +101,7 @@ impl Ui { } fn title(&self) -> String { - "CertTools".into() + "Cert Tools".into() } fn update(&mut self, message: Message) -> Task { @@ -683,7 +683,11 @@ impl Ui { UiMode::Output => column![output], }, horizontal_rule(1), - text(&self.status) + row![ + text(&self.status), + horizontal_space(), + text(format!("Version {}", env!("CARGO_PKG_VERSION"))).style(|_| text::Style { color: Some(color!(0x888888)) }), + ] ] .padding(4) .spacing(2)