working perfectly well, lets keep on going

This commit is contained in:
filipriec
2025-02-16 23:23:52 +01:00
parent cc5f7398d0
commit 70c2638873
3 changed files with 6 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ pub struct Theme {
pub bg: Color, pub bg: Color,
pub fg: Color, pub fg: Color,
pub accent: Color, pub accent: Color,
pub secondary: Color, // Add this field
pub highlight: Color, pub highlight: Color,
pub warning: Color, pub warning: Color,
pub border: Color, pub border: Color,
@@ -18,6 +19,7 @@ impl Theme {
bg: Color::Rgb(245, 245, 245), // Light gray bg: Color::Rgb(245, 245, 245), // Light gray
fg: Color::Rgb(64, 64, 64), // Dark gray fg: Color::Rgb(64, 64, 64), // Dark gray
accent: Color::Rgb(173, 216, 230), // Pastel blue accent: Color::Rgb(173, 216, 230), // Pastel blue
secondary: Color::Rgb(255, 165, 0), // Orange for secondary
highlight: Color::Rgb(152, 251, 152), // Pastel green highlight: Color::Rgb(152, 251, 152), // Pastel green
warning: Color::Rgb(255, 182, 193), // Pastel pink warning: Color::Rgb(255, 182, 193), // Pastel pink
border: Color::Rgb(220, 220, 220), // Light gray border border: Color::Rgb(220, 220, 220), // Light gray border
@@ -30,6 +32,7 @@ impl Theme {
bg: Color::Rgb(30, 30, 30), // Dark background bg: Color::Rgb(30, 30, 30), // Dark background
fg: Color::Rgb(255, 255, 255), // White text fg: Color::Rgb(255, 255, 255), // White text
accent: Color::Rgb(0, 191, 255), // Bright blue accent: Color::Rgb(0, 191, 255), // Bright blue
secondary: Color::Rgb(255, 215, 0), // Gold for secondary
highlight: Color::Rgb(50, 205, 50), // Bright green highlight: Color::Rgb(50, 205, 50), // Bright green
warning: Color::Rgb(255, 99, 71), // Bright red warning: Color::Rgb(255, 99, 71), // Bright red
border: Color::Rgb(100, 100, 100), // Medium gray border border: Color::Rgb(100, 100, 100), // Medium gray border
@@ -42,6 +45,7 @@ impl Theme {
bg: Color::Rgb(255, 255, 255), // White background bg: Color::Rgb(255, 255, 255), // White background
fg: Color::Rgb(0, 0, 0), // Black text fg: Color::Rgb(0, 0, 0), // Black text
accent: Color::Rgb(0, 0, 255), // Blue accent: Color::Rgb(0, 0, 255), // Blue
secondary: Color::Rgb(255, 140, 0), // Dark orange for secondary
highlight: Color::Rgb(0, 128, 0), // Green highlight: Color::Rgb(0, 128, 0), // Green
warning: Color::Rgb(255, 0, 0), // Red warning: Color::Rgb(255, 0, 0), // Red
border: Color::Rgb(0, 0, 0), // Black border border: Color::Rgb(0, 0, 0), // Black border

View File

@@ -11,7 +11,7 @@ pub fn render_command_line(f: &mut Frame, area: Rect, input: &str, active: bool,
let prompt = if active { let prompt = if active {
":" ":"
} else { } else {
"Press ':' for commands (w = save, q = quit)" ""
}; };
let style = if active { let style = if active {
Style::default().fg(theme.accent) Style::default().fg(theme.accent)

View File

@@ -17,7 +17,7 @@ pub fn render_status_line(f: &mut Frame, area: Rect, current_dir: &str, theme: &
Span::styled(current_dir, Style::default().fg(theme.fg)), Span::styled(current_dir, Style::default().fg(theme.fg)),
Span::styled( Span::styled(
program_info, program_info,
Style::default().fg(theme.accent).add_modifier(ratatui::style::Modifier::BOLD), Style::default().fg(theme.secondary).add_modifier(ratatui::style::Modifier::BOLD), // Use `secondary` color
), ),
]); ]);