Skip to content

Commit

Permalink
Merge pull request #79 from fmorroni/single_line-example-fix
Browse files Browse the repository at this point in the history
Add block border color to single_line example so it matches readme gif
  • Loading branch information
rhysd authored Aug 2, 2024
2 parents 60943f8 + 842df5e commit dea5b03
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/single_line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@ fn validate(textarea: &mut TextArea) -> bool {
textarea.set_block(
Block::default()
.borders(Borders::ALL)
.border_style(Color::LightRed)
.title(format!("ERROR: {}", err)),
);
false
} else {
textarea.set_style(Style::default().fg(Color::LightGreen));
textarea.set_block(Block::default().borders(Borders::ALL).title("OK"));
textarea.set_block(
Block::default()
.border_style(Color::LightGreen)
.borders(Borders::ALL)
.title("OK"),
);
true
}
}
Expand Down

0 comments on commit dea5b03

Please sign in to comment.