Display stuff

This commit is contained in:
2026-07-14 22:53:27 +02:00
parent b8162ebe3c
commit 7be4040267
4 changed files with 31 additions and 12 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
use std::any::Any;
use pulse_ui::{
App, get_screen,
App,
layout::{LayoutItem, layout},
state::{Refresh, State},
unit::Size,
@@ -37,7 +37,7 @@ impl App for PulseTradeApp {
}
async fn render(&mut self, layout: pulse_ui::layout::Allocation) {
layout.draw(1, format!("{:?}", *self.count.lock().await).as_str());
layout.draw(1, format!("{}", self.count.display().await).as_str());
layout.draw_frame(1, Outline);
layout.draw_frame(2, Outline);
}