Use a color for the message

This commit is contained in:
mo8it 2024-04-08 03:21:13 +02:00
parent 7c46e7ac69
commit d0fcd8ae8a

View file

@ -156,12 +156,14 @@ impl<'a> UiState<'a> {
let message = if self.message.is_empty() { let message = if self.message.is_empty() {
// Help footer. // 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 { } else {
&self.message self.message.as_str().blue()
}; };
frame.render_widget( frame.render_widget(
Span::raw(message), message,
Rect { Rect {
x: 0, x: 0,
y: area.height - 1, y: area.height - 1,