add battery-ui #6
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
use comfy::egui::Pos2;
|
||||
use comfy::egui::Rect;
|
||||
use comfy::EngineContext;
|
||||
use comfy::egui;
|
||||
use comfy::GREEN;
|
||||
use comfy::RED;
|
||||
use crate::State;
|
||||
|
||||
|
@ -8,6 +11,7 @@ pub fn draw(state: &State, engine: &EngineContext) {
|
|||
.anchor(egui::Align2::RIGHT_BOTTOM, egui::vec2(0.0, 0.0))
|
||||
.show(egui(), |ui| {
|
||||
let painter = ui.painter();
|
||||
painter.rect(Rect{min: Pos2::new(0.0, 0.0), max: Pos2::new(32.0, 32.0)}, 0.0, RED, (4.0, GREEN));
|
||||
|
||||
});
|
||||
}
|
Loading…
Reference in a new issue