Compare commits
No commits in common. "f9b77a02fe3bdc6affeb084fb5abddd27fba9504" and "a7cfe419b440d271266c85ae6a2e0050c0d4b67a" have entirely different histories.
f9b77a02fe
...
a7cfe419b4
1 changed files with 11 additions and 12 deletions
|
@ -166,7 +166,7 @@ fn uploads(
|
|||
let files = files.join(", ");
|
||||
let files = Line::from(files).centered();
|
||||
let size = Line::from(format!("{size}")).centered();
|
||||
rows.push(Row::new([src, size, files]).yellow());
|
||||
rows.push(Row::new([src, size, files]));
|
||||
}
|
||||
|
||||
if state.selected().is_none() && !rows.is_empty() {
|
||||
|
@ -229,30 +229,29 @@ impl Widget for NetworkInfoWidget {
|
|||
where
|
||||
Self: Sized,
|
||||
{
|
||||
let udp = "UDP socket";
|
||||
let udp = "UDP socket".yellow();
|
||||
let udp = udp.to_line().left_aligned();
|
||||
let uaddr = format!("{:?}", joecalsend::LISTENING_SOCKET_ADDR);
|
||||
let udp = Row::new(vec![udp, uaddr.to_line().right_aligned()]).yellow();
|
||||
let uaddr = format!("{:?}", joecalsend::LISTENING_SOCKET_ADDR).yellow();
|
||||
let udp = Row::new(vec![udp, uaddr.to_line().right_aligned()]);
|
||||
|
||||
let mip = format!(
|
||||
"{:?}:{:?}",
|
||||
joecalsend::MULTICAST_IP,
|
||||
joecalsend::DEFAULT_PORT
|
||||
);
|
||||
let multicast = "Multicast address";
|
||||
)
|
||||
.yellow();
|
||||
let multicast = "Multicast address".yellow();
|
||||
let multicast = Row::new(vec![
|
||||
multicast.to_line().left_aligned(),
|
||||
mip.to_line().right_aligned(),
|
||||
])
|
||||
.yellow();
|
||||
]);
|
||||
|
||||
let haddr = format!("{:?}", joecalsend::LISTENING_SOCKET_ADDR);
|
||||
let http = "HTTP address";
|
||||
let haddr = format!("{:?}", joecalsend::LISTENING_SOCKET_ADDR).yellow();
|
||||
let http = "HTTP address".yellow();
|
||||
let http = Row::new(vec![
|
||||
http.to_line().left_aligned(),
|
||||
haddr.to_line().right_aligned(),
|
||||
])
|
||||
.yellow();
|
||||
]);
|
||||
|
||||
let rows = vec![udp, multicast, http];
|
||||
let widths = vec![Constraint::Percentage(50), Constraint::Percentage(50)];
|
||||
|
|
Loading…
Reference in a new issue