From d7226ad57dfbf9e8e2a6915d7d86e6a88e86e3d1 Mon Sep 17 00:00:00 2001 From: Carter Canedy Date: Wed, 2 Oct 2024 13:46:21 -0700 Subject: [PATCH] fix `RunningCommand` title formatting --- tui/src/running_command.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tui/src/running_command.rs b/tui/src/running_command.rs index 1c4f9d41..164bae30 100644 --- a/tui/src/running_command.rs +++ b/tui/src/running_command.rs @@ -52,16 +52,20 @@ impl FloatContent for RunningCommand { let (content, content_style) = if !self.is_finished() { (" Running command... ", Style::default().reversed()) } else if self.wait_command().success() { - (" Success ", Style::default().green().reversed()) + (" Success ", Style::default().bold().green().reversed()) } else { - (" Failed ", Style::default().red().reversed()) + (" Failed ", Style::default().bold().red().reversed()) }; Some(Line::from(content).style(content_style)) } fn bottom_title(&self) -> Option> { - Some(Line::from("Press Ctrl-C to KILL the command")) + Some(Line::from(if !self.is_finished() { + " Press [CTRL-c] to KILL the command " + } else { + " Press [Enter] to close this window " + })) } fn draw(&mut self, frame: &mut Frame, area: Rect) {