Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.
fix(theme): honor env override over config
Samir Hossains702ac3b05640
diff --git a/src/tui/app/mod.rs b/src/tui/app/mod.rsindex 8c43910..f7dfad9 100644--- a/src/tui/app/mod.rs+++ b/src/tui/app/mod.rs@@ -47,7 +47,11 @@ impl App {state.default_player = config.default_player;let mut theme = crate::tui::theme::Theme::new();- if !state.active_theme_kind.is_empty() {+ if let Ok(theme_env) = std::env::var("MOVIEBOX_THEME") {+ let theme_kind = crate::tui::theme::ThemeKind::parse(&theme_env);+ state.active_theme_kind = theme_kind.as_str().to_string();+ theme = crate::tui::theme::Theme::from_kind(theme_kind);+ } else if !state.active_theme_kind.is_empty() {let theme_kind = crate::tui::theme::ThemeKind::parse(&state.active_theme_kind);state.active_theme_kind = theme_kind.as_str().to_string();theme = crate::tui::theme::Theme::from_kind(theme_kind);