Skip to content

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

style(tui): optimize footer horizontal item spacing and tight vertical alignment

Samir Hossainsa769c88a4637
diff --git a/src/tui/app/mouse.rs b/src/tui/app/mouse.rs
index dcaa229..a39ba1e 100644
--- a/src/tui/app/mouse.rs
+++ b/src/tui/app/mouse.rs
@@ -376,7 +376,7 @@ impl App {
let ctrl_p = crate::tui::text::ctrl_key("P");
let mut buttons: Vec<(ModeBtn, u16)> = Vec::new();
- let sep = 3_u16;
+ let sep = 5_u16;
let is_streaming = !self.state.is_tv_mode && !self.state.is_addon_mode;
let b1_len = if is_streaming {
@@ -442,7 +442,7 @@ impl App {
}
let buttons: [(UtilBtn, u16); 2] = [(UtilBtn::Help, 8), (UtilBtn::Quit, 8)];
- let sep = 3_u16;
+ let sep = 5_u16;
let total_w: u16 = buttons.iter().map(|(_, w)| *w).sum::<u16>()
+ (buttons.len().saturating_sub(1) as u16) * sep;
diff --git a/src/tui/screens/home.rs b/src/tui/screens/home.rs
index b9b7f86..abcd7ce 100644
--- a/src/tui/screens/home.rs
+++ b/src/tui/screens/home.rs
@@ -398,7 +398,7 @@ pub fn draw(frame: &mut Frame, area: Rect, state: &mut AppState, theme: &Theme)
mode_spans.push(Span::styled("Streaming", theme.text_dim));
}
- mode_spans.push(Span::raw(" "));
+ mode_spans.push(Span::raw(" "));
if state.is_tv_mode {
mode_spans.push(Span::styled("[ ", theme.text_dim));
@@ -415,7 +415,7 @@ pub fn draw(frame: &mut Frame, area: Rect, state: &mut AppState, theme: &Theme)
}
if state.addons_enabled {
- mode_spans.push(Span::raw(" "));
+ mode_spans.push(Span::raw(" "));
if state.is_addon_mode {
mode_spans.push(Span::styled("[ ", theme.text_dim));
mode_spans.push(Span::styled(
@@ -441,7 +441,7 @@ pub fn draw(frame: &mut Frame, area: Rect, state: &mut AppState, theme: &Theme)
Span::styled("?", theme.shortcut),
Span::styled("] ", theme.text_dim),
Span::styled("Help", theme.text_dim),
- Span::raw(" "),
+ Span::raw(" "),
Span::styled("[", theme.text_dim),
Span::styled("q", theme.shortcut),
Span::styled("] ", theme.text_dim),