meow
This commit is contained in:
parent
b5dd2df0d3
commit
7424aba439
14 changed files with 1092 additions and 1110 deletions
28
src/tui/settings.rs
Normal file
28
src/tui/settings.rs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
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 {
|
||||
#[instrument(skip(terminal))]
|
||||
pub fn show_settings(
|
||||
terminal: &mut Terminal<CrosstermBackend<Stdout>>,
|
||||
) -> Result<(), Box<dyn std::error::Error>> {
|
||||
// Render settings UI here
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue