about summary refs log tree commit diff
path: root/src/module
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@irenes.space>2026-11-22 03:31:51 -0700
committerIrene Knapp <ireneista@irenes.space>2026-11-22 21:40:21 -0700
commit33a0aea1fa5b12c817cc299b10f8a359d670c645 (patch)
tree1f29b867d49a6158edc679c3cc1521a77f1175d7 /src/module
parentefa17e7eb566d81ce821bde459e900d7398a9977 (diff)
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
Diffstat (limited to 'src/module')
-rw-r--r--src/module/battery.rs7
1 files changed, 3 insertions, 4 deletions
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));
         }
       }
     }