diff options
author | Rupert Rutledge <eosis2 [at] gmail.com> | 2020-04-26 19:36:02 +0100 |
---|---|---|
committer | Rupert Rutledge <eosis2 [at] gmail.com> | 2020-04-26 19:36:02 +0100 |
commit | 8a2469f4ec340cb6104db6ef488438649f0c1d27 (patch) | |
tree | d383e1d5530da3521813f2a916782caf7c7b59da /src/display/ui.rs | |
parent | 5cb0c7690a098c40400f7d3ca18db789eadaeb5f (diff) |
Split Header rendering into different sections
- Rename Bandwidth to HeaderDetails to indicate the added information
it now contains.
- Split the rendering function for the header into its constituent
parts
Diffstat (limited to 'src/display/ui.rs')
-rw-r--r-- | src/display/ui.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display/ui.rs b/src/display/ui.rs index cd87786..21ae49d 100644 --- a/src/display/ui.rs +++ b/src/display/ui.rs @@ -3,7 +3,7 @@ use ::std::collections::HashMap; use ::tui::backend::Backend; use ::tui::Terminal; -use crate::display::components::{HelpText, Layout, Table, TotalBandwidth}; +use crate::display::components::{HelpText, Layout, Table, HeaderDetails}; use crate::display::UIState; use crate::network::{display_connection_string, display_ip_or_host, LocalSocket, Utilization}; @@ -85,7 +85,7 @@ where self.terminal .draw(|mut frame| { let size = frame.size(); - let total_bandwidth = TotalBandwidth { + let total_bandwidth = HeaderDetails { state: &state, elapsed_time, paused, |