Sharpen up layout
This commit is contained in:
+4
-4
@@ -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()])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user