Fix "fill" for batt_info color hexadecimal output
This commit is contained in:
parent
d663a1f105
commit
b863af7a7c
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ impl BattInfo {
|
||||||
} else {
|
} else {
|
||||||
(255.0f32 * percentage * 2.0f32) as u8
|
(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));
|
object.update_as_generic(output_string, Some(color));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue