-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sebastian Thiel
committed
Jun 4, 2019
1 parent
13dd5b2
commit c19df21
Showing
5 changed files
with
45 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use tui::{buffer::Buffer, layout::Rect, widgets::Block, widgets::Borders, widgets::Widget}; | ||
|
||
#[derive(Copy, Clone)] | ||
pub struct HelpPaneState; | ||
|
||
pub struct HelpPane { | ||
pub state: HelpPaneState, | ||
pub borders: Borders, | ||
} | ||
|
||
impl Widget for HelpPane { | ||
fn draw(&mut self, area: Rect, buf: &mut Buffer) { | ||
Block::default() | ||
.title("Help") | ||
.borders(self.borders) | ||
.draw(area, buf); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
mod entries; | ||
mod footer; | ||
mod help; | ||
mod list; | ||
mod main; | ||
|
||
pub use entries::*; | ||
pub use footer::*; | ||
pub use help::*; | ||
pub use list::*; | ||
pub use main::*; |