зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-03 22:35:50 +03:00
chore: add block border color so example matches readme gif
Этот коммит содержится в:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user