Fixed outline
This commit is contained in:
+7
-2
@@ -5,7 +5,7 @@ use pulse_ui::{
|
||||
layout::{LayoutItem, layout},
|
||||
state::{Refresh, State},
|
||||
unit::Size,
|
||||
widget::spaced::SpacedRows,
|
||||
widget::{outline::Outline, spaced::SpacedRows},
|
||||
};
|
||||
|
||||
pub struct PulseTradeApp {
|
||||
@@ -24,10 +24,15 @@ impl App for PulseTradeApp {
|
||||
}
|
||||
|
||||
async fn layout(&self) -> pulse_ui::layout::LayoutItem {
|
||||
layout(vec![LayoutItem::Widget(Size::Flex(1))])
|
||||
layout(vec![LayoutItem::Frame {
|
||||
padding: 1,
|
||||
item: Box::new(LayoutItem::Widget(Size::Flex(1))),
|
||||
}])
|
||||
}
|
||||
|
||||
async fn render(&mut self, layout: pulse_ui::layout::Allocation) {
|
||||
// layout.draw_frame(0, Outline);
|
||||
|
||||
layout.draw(
|
||||
0,
|
||||
SpacedRows(vec![
|
||||
|
||||
Reference in New Issue
Block a user