more on commands

This commit is contained in:
Stephan Dilly 2020-03-18 01:08:12 +01:00
parent 73934ae753
commit 3d9241ebdc

View file

@ -147,6 +147,7 @@ impl App {
// commands // commands
{ {
let splitter = Text::Styled(Cow::from(" "), Style::default().bg(Color::Black));
let t1 = Text::Styled( let t1 = Text::Styled(
Cow::from("Commit [c]"), Cow::from("Commit [c]"),
Style::default() Style::default()
@ -157,12 +158,15 @@ impl App {
}) })
.bg(Color::Blue), .bg(Color::Blue),
); );
let splitter = Text::Styled(Cow::from(" "), Style::default().bg(Color::Black));
let t2 = Text::Styled( let t2 = Text::Styled(
Cow::from("Help [h]"), Cow::from("Help [h]"),
Style::default().fg(Color::White).bg(Color::Blue), Style::default().fg(Color::White).bg(Color::Blue),
); );
Paragraph::new(vec![t1, splitter, t2].iter()) let t3 = Text::Styled(
Cow::from("Quit [q]"),
Style::default().fg(Color::White).bg(Color::Blue),
);
Paragraph::new(vec![t1, splitter.clone(), t2, splitter.clone(), t3].iter())
.alignment(Alignment::Left) .alignment(Alignment::Left)
.render(f, chunks_main[2]); .render(f, chunks_main[2]);
} }