From 33a0aea1fa5b12c817cc299b10f8a359d670c645 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Sun, 22 Nov 2026 03:31:51 -0700 Subject: there are now concepts of font lists and text lines a "line" is a list of spans much of the layout logic is moved into TextLine, but not yet all of it Change-Id: I2edba34cd9be5a50ac6dc646cd6e2ab2369fca13 Force-Push: yes --- src/module/battery.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/module/battery.rs') diff --git a/src/module/battery.rs b/src/module/battery.rs index 0b87b12..154016a 100644 --- a/src/module/battery.rs +++ b/src/module/battery.rs @@ -2,7 +2,6 @@ use crate::error::{ Error, Result }; use crate::facility::{ FacilityMap, FacilityType }; use crate::facility::envsys::EnvSys; use crate::module::{ CreatableModule, Module }; -use crate::property_list::{ Array, Value }; use std::time::Duration; @@ -69,14 +68,14 @@ impl Module for BatteryModule { let is_full = ratio >= self.full_threshold; if is_full && ! is_charging { - text.push_str("100%"); + text.push_str("\u{1F333}100"); } else { let percentage = (ratio * 100.0).round() as i32; if is_charging { - text.push_str(&format!("^{}%", percentage)); + text.push_str(&format!("\u{2668}{}%", percentage)); } else { - text.push_str(&format!("v{}%", percentage)); + text.push_str(&format!("\u{1f343}{}%", percentage)); } } } -- cgit 1.4.1