Sharpen up layout

This commit is contained in:
Kenny Levinsen
2019-08-07 00:10:20 +02:00
parent 37fcb7390b
commit ea2fd4b701
7 changed files with 27 additions and 27 deletions
+4 -4
View File
@@ -213,17 +213,17 @@ impl ModuleImpl for UpowerBattery {
"battery",
)?;
draw_bar(
&mut buf.subdimensions((128, 0, 432, 24))?,
&mut buf.subdimensions((128, 0, 464, 24))?,
&bar_color,
432,
464,
24,
(inner.capacity as f32) / 100.0,
)?;
draw_box(
&mut buf.subdimensions((128, 0, 432, 24))?,
&mut buf.subdimensions((128, 0, 464, 24))?,
&bar_color,
(432, 24),
(464, 24),
)?;
Ok(vec![buf.get_signed_bounds()])
}