24 lines
458 B
Rust
24 lines
458 B
Rust
|
|
use ratatui::style::{Color, Modifier, Style};
|
||
|
|
|
||
|
|
pub const ACCENT: Color = Color::Cyan;
|
||
|
|
pub const DIM: Color = Color::DarkGray;
|
||
|
|
|
||
|
|
pub fn accent() -> Style {
|
||
|
|
Style::new().fg(ACCENT)
|
||
|
|
}
|
||
|
|
|
||
|
|
pub fn dim() -> Style {
|
||
|
|
Style::new().fg(DIM)
|
||
|
|
}
|
||
|
|
|
||
|
|
pub fn tab_active() -> Style {
|
||
|
|
Style::new()
|
||
|
|
.fg(Color::Black)
|
||
|
|
.bg(ACCENT)
|
||
|
|
.add_modifier(Modifier::BOLD)
|
||
|
|
}
|
||
|
|
|
||
|
|
pub fn header() -> Style {
|
||
|
|
Style::new().fg(ACCENT).add_modifier(Modifier::BOLD)
|
||
|
|
}
|