move logo to them file.

This commit is contained in:
jasonwitty 2025-10-26 02:30:46 -07:00
parent 0603746d7c
commit c9bde52cb1
2 changed files with 30 additions and 24 deletions

View File

@ -390,30 +390,9 @@ impl ModalManager {
} }
fn render_about(&self, f: &mut Frame, area: Rect) { fn render_about(&self, f: &mut Frame, area: Rect) {
const ASCII_ART: &str = r#"
//get ASCII art from a constant stored in theme.rs
use super::theme::ASCII_ART;
"#;
let version = env!("CARGO_PKG_VERSION"); let version = env!("CARGO_PKG_VERSION");

View File

@ -49,7 +49,7 @@ pub const ICON_COUNTDOWN_LABEL: &str = "⏰ Next auto retry: ";
pub const BTN_RETRY_TEXT: &str = " 🔄 Retry "; pub const BTN_RETRY_TEXT: &str = " 🔄 Retry ";
pub const BTN_EXIT_TEXT: &str = " ❌ Exit "; pub const BTN_EXIT_TEXT: &str = " ❌ Exit ";
// Large multi-line warning icon // warning icon
pub const LARGE_ERROR_ICON: &[&str] = &[ pub const LARGE_ERROR_ICON: &[&str] = &[
" /\\ ", " /\\ ",
" / \\ ", " / \\ ",
@ -60,3 +60,30 @@ pub const LARGE_ERROR_ICON: &[&str] = &[
" / !! \\ ", " / !! \\ ",
" /______________\\ ", " /______________\\ ",
]; ];
//about logo
pub const ASCII_ART: &str = r#"
"#;