add battery-ui #6

Merged
LuckyTurtleDev merged 6 commits from battery-ui into main 2024-07-06 20:45:06 +00:00
Showing only changes of commit 49d565e73b - Show all commits

View file

@ -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));
});
}