improved popup drawing

This commit is contained in:
Stephan Dilly 2020-04-12 01:46:30 +02:00
parent 952034beea
commit 445b732522

View File

@ -153,10 +153,7 @@ impl App {
self.current_commands.as_slice(),
);
self.commit.draw(f, f.size());
self.reset.draw(f, f.size());
self.help.draw(f, f.size());
self.msg.draw(f, f.size());
self.draw_popups(f);
}
///
@ -419,6 +416,15 @@ impl App {
None
}
fn draw_popups<B: Backend>(&self, f: &mut Frame<B>) {
let size = f.size();
self.commit.draw(f, size);
self.reset.draw(f, size);
self.help.draw(f, size);
self.msg.draw(f, size);
}
fn draw_commands<B: Backend>(
f: &mut Frame<B>,
r: Rect,