From 829c300b565459b51e20051339c3bc95ca3b1b85 Mon Sep 17 00:00:00 2001 From: Joe Ardent Date: Fri, 1 Aug 2025 14:59:26 -0700 Subject: [PATCH] better style for network info --- src/app/widgets.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/app/widgets.rs b/src/app/widgets.rs index a21b659..653985f 100644 --- a/src/app/widgets.rs +++ b/src/app/widgets.rs @@ -229,10 +229,11 @@ impl Widget for NetworkInfoWidget { where Self: Sized, { - let udp = "UDP socket".yellow(); + let udp = "UDP socket"; let udp = udp.to_line().left_aligned(); let uaddr = format!("{:?}", joecalsend::LISTENING_SOCKET_ADDR).yellow(); - let udp = Row::new(vec![udp, uaddr.to_line().right_aligned()]); + let udp = Row::new(vec![udp, uaddr.to_line().right_aligned()]) + .style(Style::new().fg(Color::LightYellow)); let mip = format!( "{:?}:{:?}", @@ -240,18 +241,20 @@ impl Widget for NetworkInfoWidget { joecalsend::DEFAULT_PORT ) .yellow(); - let multicast = "Multicast address".yellow(); + let multicast = "Multicast address"; let multicast = Row::new(vec![ multicast.to_line().left_aligned(), mip.to_line().right_aligned(), - ]); + ]) + .style(Style::new().fg(Color::LightYellow)); let haddr = format!("{:?}", joecalsend::LISTENING_SOCKET_ADDR).yellow(); - let http = "HTTP address".yellow(); + let http = "HTTP address"; let http = Row::new(vec![ http.to_line().left_aligned(), haddr.to_line().right_aligned(), - ]); + ]) + .style(Style::new().fg(Color::LightYellow)); let rows = vec![udp, multicast, http]; let widths = vec![Constraint::Percentage(50), Constraint::Percentage(50)];