Added downloads info box to context and increased network API refresh calls to every 15 seconds
This commit is contained in:
+4
-18
@@ -21,7 +21,7 @@ static HIGHLIGHT_SYMBOL: &str = "=> ";
|
||||
|
||||
pub fn ui<B: Backend>(f: &mut Frame<B>, app: &mut App) {
|
||||
let main_chunks = vertical_chunks_with_margin(
|
||||
vec![Constraint::Length(20), Constraint::Length(0)],
|
||||
vec![Constraint::Length(16), Constraint::Length(0)],
|
||||
f.size(),
|
||||
1,
|
||||
);
|
||||
@@ -89,23 +89,9 @@ pub fn draw_large_popup_over<B: Backend>(
|
||||
}
|
||||
|
||||
fn draw_context_row<B: Backend>(f: &mut Frame<'_, B>, app: &App, area: Rect) {
|
||||
let chunks = horizontal_chunks(
|
||||
vec![
|
||||
Constraint::Percentage(23),
|
||||
Constraint::Percentage(23),
|
||||
Constraint::Percentage(23),
|
||||
Constraint::Percentage(23),
|
||||
Constraint::Length(20),
|
||||
],
|
||||
area,
|
||||
);
|
||||
|
||||
radarr_ui::draw_stats(f, app, chunks[0]);
|
||||
f.render_widget(Block::default().borders(Borders::ALL), chunks[1]);
|
||||
f.render_widget(Block::default().borders(Borders::ALL), chunks[2]);
|
||||
f.render_widget(Block::default().borders(Borders::ALL), chunks[3]);
|
||||
|
||||
radarr_ui::draw_logo(f, chunks[4]);
|
||||
match app.get_current_route().clone() {
|
||||
Route::Radarr(_) => radarr_ui::draw_radarr_context_row(f, app, area),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn loading<B: Backend>(f: &mut Frame<'_, B>, block: Block<'_>, area: Rect, is_loading: bool) {
|
||||
|
||||
Reference in New Issue
Block a user