2025-09-30 23:48:53 +02:00
|
|
|
use std::io::Stdout;
|
|
|
|
|
use tracing::instrument;
|
|
|
|
|
use tui::{Terminal, backend::CrosstermBackend};
|
|
|
|
|
|
|
|
|
|
pub struct Settings {
|
|
|
|
|
pub theme: Theme,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub struct Theme;
|
|
|
|
|
|
|
|
|
|
impl Theme {
|
|
|
|
|
pub fn primary_color(&self) -> tui::style::Color {
|
|
|
|
|
tui::style::Color::Cyan
|
|
|
|
|
}
|
|
|
|
|
pub fn secondary_color(&self) -> tui::style::Color {
|
|
|
|
|
tui::style::Color::White
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl Settings {
|
2025-10-01 06:58:04 +02:00
|
|
|
#[instrument(skip(_terminal))]
|
2025-09-30 23:48:53 +02:00
|
|
|
pub fn show_settings(
|
2025-10-01 06:58:04 +02:00
|
|
|
_terminal: &mut Terminal<CrosstermBackend<Stdout>>,
|
2025-09-30 23:48:53 +02:00
|
|
|
) -> Result<(), Box<dyn std::error::Error>> {
|
|
|
|
|
// Render settings UI here
|
|
|
|
|
Ok(())
|
|
|
|
|
}
|
|
|
|
|
}
|