From b863af7a7cd8d6e089268fbb15feccd2769e9234 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Tue, 26 Jul 2022 22:22:26 +0900 Subject: [PATCH] Fix "fill" for batt_info color hexadecimal output --- src/builtin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtin.rs b/src/builtin.rs index aa1796d..c7f0919 100644 --- a/src/builtin.rs +++ b/src/builtin.rs @@ -107,7 +107,7 @@ impl BattInfo { } else { (255.0f32 * percentage * 2.0f32) as u8 }; - let color: String = format!("#{:x}{:x}00ff", red, green); + let color: String = format!("#{:02x}{:02x}00ff", red, green); object.update_as_generic(output_string, Some(color)); -- 2.49.0