mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-22 19:29:14 +03:00
better style
This commit is contained in:
parent
198eb31f81
commit
73934ae753
10
src/app.rs
10
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(
|
||||
|
Loading…
Reference in New Issue
Block a user