Skip to content

Commit fada2f6

Browse files
committed
ui: screens: system: shift text to the left
The system screen contains information like this: SoC: 30C Uplink: 1000MBit/s DUT: Down IP: 123.123.123.123 The IP line would overflow into the button legends that are about to be, added so shorten the "Uplink:" label to "UL:" and move everything left: SoC: 30C UL: 1000MBit/s DUT: Down IP: 123.123.123.123 Signed-off-by: Leonard Göhrs <[email protected]>
1 parent 3f0719e commit fada2f6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/ui/screens/system.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ impl ActivatableScreen for SystemScreen {
8383
ui.res.temperatures.soc_temperature.clone(),
8484
display,
8585
row_anchor(0),
86-
Box::new(|meas: &Measurement| format!("SoC: {:.0}C", meas.value)),
86+
Box::new(|meas: &Measurement| format!("SoC: {:.0}C", meas.value)),
8787
)
8888
});
8989

@@ -93,8 +93,8 @@ impl ActivatableScreen for SystemScreen {
9393
display,
9494
row_anchor(1),
9595
Box::new(|info: &LinkInfo| match info.carrier {
96-
true => format!("Uplink: {}MBit/s", info.speed),
97-
false => "Uplink: Down".to_string(),
96+
true => format!("UL: {}MBit/s", info.speed),
97+
false => "UL: Down".to_string(),
9898
}),
9999
)
100100
});
@@ -105,8 +105,8 @@ impl ActivatableScreen for SystemScreen {
105105
display,
106106
row_anchor(2),
107107
Box::new(|info: &LinkInfo| match info.carrier {
108-
true => format!("DUT: {}MBit/s", info.speed),
109-
false => "DUT: Down".to_string(),
108+
true => format!("DUT: {}MBit/s", info.speed),
109+
false => "DUT: Down".to_string(),
110110
}),
111111
)
112112
});
@@ -118,7 +118,7 @@ impl ActivatableScreen for SystemScreen {
118118
row_anchor(3),
119119
Box::new(|ips: &Vec<String>| {
120120
let ip = ips.first().map(|s| s.as_str()).unwrap_or("-");
121-
format!("IP: {}", ip)
121+
format!("IP: {}", ip)
122122
}),
123123
)
124124
});

0 commit comments

Comments
 (0)