mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-10 14:44:18 +00:00
other: removes the percent sign from battery widget labels (#1244)
This commit is contained in:
parent
beef65a460
commit
f21ffde068
1 changed files with 2 additions and 2 deletions
|
@ -185,7 +185,7 @@ impl Painter {
|
|||
|
||||
let mut battery_rows = Vec::with_capacity(4);
|
||||
battery_rows.push(Row::new([
|
||||
Cell::from("Charge %").style(self.colours.text_style),
|
||||
Cell::from("Charge").style(self.colours.text_style),
|
||||
Cell::from(bars).style(if charge_percentage < 10.0 {
|
||||
self.colours.low_battery_colour
|
||||
} else if charge_percentage < 50.0 {
|
||||
|
@ -234,7 +234,7 @@ impl Painter {
|
|||
}
|
||||
|
||||
battery_rows.push(
|
||||
Row::new(["Health %", &battery_details.health]).style(self.colours.text_style),
|
||||
Row::new(["Health", &battery_details.health]).style(self.colours.text_style),
|
||||
);
|
||||
|
||||
let header = if app_state.converted_data.battery_data.len() > 1 {
|
||||
|
|
Loading…
Reference in a new issue