use crate::ui::*;
use lazy_static::lazy_static;
use rand::seq::SliceRandom;
use ratatui::style::Color;
#[derive(Clone)]
pub struct ColoredMessage {
pub text: String,
pub color: Color,
}
lazy_static! {
static ref WAITING_MESSAGES: Vec<ColoredMessage> = vec![
ColoredMessage {
text: "๐ฎ Consulting the cosmic commit oracle...".to_string(),
color: NEBULA_PURPLE
},
ColoredMessage {
text: "๐ Aligning the celestial code spheres...".to_string(),
color: CELESTIAL_BLUE
},
ColoredMessage {
text: "๐ป Channeling the spirit of clean commits...".to_string(),
color: AURORA_GREEN
},
ColoredMessage {
text: "๐ Launching commit ideas into the coding cosmos...".to_string(),
color: METEOR_RED
},
ColoredMessage {
text: "๐ Exploring the galaxy of potential messages...".to_string(),
color: PLASMA_CYAN
},
ColoredMessage {
text: "๐ญ Peering into the commit-verse for inspiration...".to_string(),
color: SOLAR_YELLOW
},
ColoredMessage {
text: "๐ง Casting a spell for the perfect commit message...".to_string(),
color: GALAXY_PINK
},
ColoredMessage {
text: "โจ Harnessing the power of a thousand code stars...".to_string(),
color: STARLIGHT
},
ColoredMessage {
text: "๐ช Orbiting the planet of precise git descriptions...".to_string(),
color: CELESTIAL_BLUE
},
ColoredMessage {
text: "๐จ Weaving a tapestry of colorful commit prose...".to_string(),
color: PLASMA_CYAN
},
ColoredMessage {
text: "๐ Igniting the fireworks of code brilliance...".to_string(),
color: COMET_ORANGE
},
ColoredMessage {
text: "๐ง Syncing with the collective coding consciousness...".to_string(),
color: AURORA_GREEN
},
ColoredMessage {
text: "๐ Aligning the moon phases for optimal commit clarity...".to_string(),
color: STARLIGHT
},
ColoredMessage {
text: "๐ฌ Analyzing code particles at the quantum level...".to_string(),
color: NEBULA_PURPLE
},
ColoredMessage {
text: "๐งฌ Decoding the DNA of your changes...".to_string(),
color: GALAXY_PINK
},
ColoredMessage {
text: "๐บ Summoning the ancient spirits of version control...".to_string(),
color: METEOR_RED
},
ColoredMessage {
text: "๐ก Tuning into the frequency of flawless commits...".to_string(),
color: CELESTIAL_BLUE
},
ColoredMessage {
text: "๐ Charging the commit crystals with cosmic energy...".to_string(),
color: PLASMA_CYAN
},
ColoredMessage {
text: "๐ Translating your changes into universal code...".to_string(),
color: AURORA_GREEN
},
ColoredMessage {
text: "๐งช Distilling the essence of your modifications...".to_string(),
color: SOLAR_YELLOW
},
ColoredMessage {
text: "๐ธ๏ธ Unraveling the threads of your code tapestry...".to_string(),
color: NEBULA_PURPLE
},
ColoredMessage {
text: "๐ฆ Consulting the all-knowing git guardians...".to_string(),
color: CELESTIAL_BLUE
},
ColoredMessage {
text: "๐ต Harmonizing with the rhythms of the coding universe...".to_string(),
color: GALAXY_PINK
},
ColoredMessage {
text: "๐ Diving into the depths of the code ocean...".to_string(),
color: PLASMA_CYAN
},
ColoredMessage {
text: "๐ง Seeking wisdom from the repository sages...".to_string(),
color: AURORA_GREEN
},
ColoredMessage {
text: "๐งญ Calibrating the commit compass for true north...".to_string(),
color: SOLAR_YELLOW
},
ColoredMessage {
text: "๐ Unlocking the secrets of the commit constellations...".to_string(),
color: NEBULA_PURPLE
},
ColoredMessage {
text: "โญ Gathering stardust for your stellar commit...".to_string(),
color: STARLIGHT
},
ColoredMessage {
text: "๐ Focusing the lens of the code telescope...".to_string(),
color: CELESTIAL_BLUE
},
ColoredMessage {
text: "๐ Riding the waves of inspiration through the code cosmos...".to_string(),
color: PLASMA_CYAN
},
];
static ref USER_MESSAGES: Vec<ColoredMessage> = vec![
ColoredMessage {
text: "๐ Launching commit rocket".to_string(),
color: METEOR_RED
},
ColoredMessage {
text: "๐ Illuminating code cosmos".to_string(),
color: STARLIGHT
},
ColoredMessage {
text: "๐ญ Observing code constellations".to_string(),
color: CELESTIAL_BLUE
},
ColoredMessage {
text: "๐งโโ๏ธ Weaving code enchantments".to_string(),
color: GALAXY_PINK
},
ColoredMessage {
text: "โ๏ธ Splitting code atoms".to_string(),
color: PLASMA_CYAN
},
ColoredMessage {
text: "๐ Painting commit rainbows".to_string(),
color: AURORA_GREEN
},
ColoredMessage {
text: "๐ Unlocking git portals".to_string(),
color: SOLAR_YELLOW
},
ColoredMessage {
text: "๐ญ Staging code drama".to_string(),
color: COMET_ORANGE
},
ColoredMessage {
text: "๐ Expanding code universe".to_string(),
color: NEBULA_PURPLE
},
ColoredMessage {
text: "๐น Aiming commit arrows".to_string(),
color: METEOR_RED
},
ColoredMessage {
text: "๐จ Brushing commit strokes".to_string(),
color: PLASMA_CYAN
},
ColoredMessage {
text: "๐ฑ Growing code forests".to_string(),
color: AURORA_GREEN
},
ColoredMessage {
text: "๐งฉ Assembling code puzzle".to_string(),
color: GALAXY_PINK
},
ColoredMessage {
text: "๐ถ Orchestrating commit symphony".to_string(),
color: CELESTIAL_BLUE
},
ColoredMessage {
text: "โ๏ธ Balancing code forces".to_string(),
color: SOLAR_YELLOW
},
];
}
pub fn get_waiting_message() -> ColoredMessage {
WAITING_MESSAGES
.choose(&mut rand::thread_rng())
.unwrap()
.clone()
}
pub fn get_user_message() -> ColoredMessage {
USER_MESSAGES
.choose(&mut rand::thread_rng())
.unwrap()
.clone()
}