Skip to content

Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.

chore(tui): unify /theme command and remove /themes alias

Samir Hossains5e5f343edd7c
diff --git a/README.md b/README.md
index ea403a7..e8fa61a 100644
--- a/README.md
+++ b/README.md
@@ -206,7 +206,7 @@ moviebox-tui
| `/list` | Show IPTV channels |
| `/config` | Configure IPTV playlists |
| `/github` | Open the project repository |
-| `/theme`, `/themes` | Open the theme picker |
+| `/theme` | Open the theme picker |
| `/update` | Check for a newer release |
| `/toggle-update` | Enable or disable automatic update checks |
| `/clear-cache` | Remove cached application data |
diff --git a/src/tui/app/requests.rs b/src/tui/app/requests.rs
index 22b9965..ad190ef 100644
--- a/src/tui/app/requests.rs
+++ b/src/tui/app/requests.rs
@@ -19,7 +19,6 @@ impl App {
"/toggle-update",
"/github",
"/theme",
- "/themes",
"/enable-bdix",
"/disable-bdix",
];
diff --git a/src/tui/app/search.rs b/src/tui/app/search.rs
index c8847e2..4c86776 100644
--- a/src/tui/app/search.rs
+++ b/src/tui/app/search.rs
@@ -169,7 +169,7 @@ impl App {
self.action_sender.send(Action::CheckForUpdates).ok();
return Some(true);
}
- if lower_query == "/theme" || lower_query == "/themes" {
+ if lower_query == "/theme" {
self.state.search_query.clear();
self.state.input_mode = InputMode::Normal;
self.action_sender.send(Action::ToggleThemePopup).ok();
diff --git a/src/tui/screens/help.rs b/src/tui/screens/help.rs
index 76bc07d..603d661 100644
--- a/src/tui/screens/help.rs
+++ b/src/tui/screens/help.rs
@@ -157,7 +157,7 @@ pub fn draw(frame: &mut Frame, area: Rect, state: &AppState, theme: &Theme) {
Span::styled("Disable BDIX FTP", theme.text),
]),
Line::from(vec![
- Span::styled(" /theme,/themes ", theme.header),
+ Span::styled(" /theme ", theme.header),
Span::styled("Change UI Theme", theme.text),
]),
]);