mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-27 10:15:07 +03:00
improved popup drawing
This commit is contained in:
parent
952034beea
commit
445b732522
14
src/app.rs
14
src/app.rs
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user