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() {
// 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,