feat(theme): add palette system and per-element theming

This commit is contained in:
objz committed 2026-01-24 19:18:09 +01:00
1 parent ecc2b2bb23
commit 80210364d5
40 files changed
+2900 -1120

No files matched your search

+3 -3
View File
@@ -1,18 +1,18 @@
use crate::tui::theme::THEME;
use crossterm::event::KeyEvent;
use ratatui::{
style::Style,
text::{Line, Span},
};
use crate::tui::theme::THEME;
pub mod account;
pub mod content;
pub mod content_list;
pub mod details;
pub mod logs_viewer;
pub mod screenshots_grid;
pub mod popups;
pub mod profiles;
pub mod screenshots_grid;
pub mod search;
pub mod status;
@@ -24,7 +24,7 @@ pub fn styled_title(title: &str, highlight: bool) -> Line<'_> {
let first = chars.next().unwrap_or_default().to_string();
let rest: String = chars.collect();
Line::from(vec![
Span::styled(first, Style::default().fg(THEME.colors.accent)),
Span::styled(first, Style::default().fg(THEME.general.accent)),
Span::raw(rest),
])
}