mirror of
https://github.com/notohh/rustlings.git
synced 2024-12-26 20:18:08 -05:00
Use a color for the message
This commit is contained in:
parent
7c46e7ac69
commit
d0fcd8ae8a
1 changed files with 5 additions and 3 deletions
|
@ -156,12 +156,14 @@ impl<'a> UiState<'a> {
|
|||
|
||||
let message = if self.message.is_empty() {
|
||||
// Help footer.
|
||||
"↓/j ↑/k home/g end/G │ filter <d>one/<p>ending │ <r>eset │ <c>ontinue at │ <q>uit"
|
||||
Span::raw(
|
||||
"↓/j ↑/k home/g end/G │ filter <d>one/<p>ending │ <r>eset │ <c>ontinue at │ <q>uit",
|
||||
)
|
||||
} else {
|
||||
&self.message
|
||||
self.message.as_str().blue()
|
||||
};
|
||||
frame.render_widget(
|
||||
Span::raw(message),
|
||||
message,
|
||||
Rect {
|
||||
x: 0,
|
||||
y: area.height - 1,
|
||||
|
|
Loading…
Reference in a new issue