From 73934ae75344000389632e09f9258e3d24aedeab Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Wed, 18 Mar 2020 01:06:04 +0100 Subject: [PATCH] better style --- src/app.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/app.rs b/src/app.rs index a90893f7..2877f984 100644 --- a/src/app.rs +++ b/src/app.rs @@ -121,11 +121,11 @@ impl App { match e.line_type { DiffLineType::Delete => Text::Styled( content.into(), - Style::default().fg(Color::White).bg(Color::Red), + Style::default().fg(Color::Red).bg(Color::Black), ), DiffLineType::Add => Text::Styled( content.into(), - Style::default().fg(Color::White).bg(Color::Green), + Style::default().fg(Color::Green).bg(Color::Black), ), DiffLineType::Header => Text::Styled( content.into(), @@ -143,7 +143,6 @@ impl App { .block(Block::default().title("Diff [d]").borders(Borders::ALL)) .alignment(Alignment::Left) .scroll(self.offset) - .wrap(true) .render(f, chunks[1]); // commands @@ -172,7 +171,10 @@ impl App { let txt = if self.commit_msg.len() > 0 { [Text::Raw(Cow::from(self.commit_msg.clone()))] } else { - [Text::Raw(Cow::from("type commit message.."))] + [Text::Styled( + Cow::from("type commit message.."), + Style::default().fg(Color::DarkGray), + )] }; Clear::new(