battery percentage sign ("%") in watch

This commit is contained in:
Aleksander
2026-01-03 19:02:39 +01:00
parent 80a9903217
commit 6d7386f73d

View File

@@ -164,7 +164,7 @@ fn battery_on_tick(
&& let Some(soc) = device.soc && let Some(soc) = device.soc
{ {
let soc = (soc * 100.).min(99.) as u32; let soc = (soc * 100.).min(99.) as u32;
let text = soc.to_string(); let text = format!("{soc}%");
let color = if device.charging { let color = if device.charging {
state.charging_color state.charging_color
} else if soc < state.low_threshold { } else if soc < state.low_threshold {