|
1 | | -use egui::Ui; |
| 1 | +use egui::{RichText, Ui}; |
2 | 2 |
|
3 | 3 | pub fn about_view(ui: &mut Ui) { |
4 | | - ui.label("📂 About This App"); |
| 4 | + let version = env!("CARGO_PKG_VERSION"); |
| 5 | + |
| 6 | + ui.heading(RichText::new("📂 About This App").size(20.0).strong()); |
| 7 | + ui.label(RichText::new(format!("Version: {}", version)).monospace().small()); |
5 | 8 | ui.separator(); |
6 | | - ui.label("🔐 Text Encryption/Decryption Tool"); |
7 | | - ui.label("This application allows you to securely encrypt and decrypt text using simple cipher methods:"); |
8 | | - ui.label("• Caesar Cipher – A basic letter-shifting algorithm."); |
9 | | - ui.label("• XOR Cipher – Applies bitwise XOR using a repeating key."); |
10 | | - ui.add_space(8.0); |
11 | | - ui.label("🛠 Features:"); |
12 | | - ui.label("• Select encryption method"); |
13 | | - ui.label("• Enter a custom key"); |
14 | | - ui.label("• Encrypt or decrypt text with a single click"); |
15 | | - ui.label("• View input/output in real-time"); |
16 | | - ui.add_space(8.0); |
17 | | - ui.label("📦 Built with Rust and egui."); |
18 | | - ui.label("💡 Created as a simple demonstration of interactive GUI and cipher logic."); |
| 9 | + ui.add_space(10.0); |
| 10 | + |
| 11 | + ui.group(|ui| { |
| 12 | + ui.vertical(|ui| { |
| 13 | + ui.label(RichText::new("🔐 Purpose").strong()); |
| 14 | + ui.label("This application allows you to securely encrypt and decrypt text using simple cipher methods:"); |
| 15 | + ui.add_space(4.0); |
| 16 | + ui.label("• Caesar Cipher – A basic letter-shifting algorithm."); |
| 17 | + ui.label("• XOR Cipher – Applies bitwise XOR using a repeating key."); |
| 18 | + |
| 19 | + ui.add_space(10.0); |
| 20 | + ui.label(RichText::new("🛠 Features").strong()); |
| 21 | + ui.label("• Select encryption method"); |
| 22 | + ui.label("• Enter a custom key"); |
| 23 | + ui.label("• Encrypt or decrypt text with a single click"); |
| 24 | + ui.label("• View input/output in real-time"); |
| 25 | + |
| 26 | + ui.add_space(10.0); |
| 27 | + ui.label(RichText::new("💻 Technology").strong()); |
| 28 | + ui.label("• Built with Rust and egui"); |
| 29 | + ui.label("• Created as a simple demonstration of interactive GUI and cipher logic"); |
| 30 | + }); |
| 31 | + }); |
19 | 32 | } |
0 commit comments