Draws the pop up showing success
(&mut self, message: &str)
| 207 | |
| 208 | /// Draws the pop up showing success |
| 209 | fn draw_success_dialog(&mut self, message: &str) { |
| 210 | let content = vec![ |
| 211 | Line::from(Span::styled(message, Style::default().fg(Color::White))), |
| 212 | Line::from(""), |
| 213 | Line::from(vec![ |
| 214 | Span::styled("Press ", styles::HELP), |
| 215 | Span::styled("Enter", styles::KEY_HIGHLIGHT.add_modifier(Modifier::BOLD)), |
| 216 | Span::styled(" to continue", styles::HELP), |
| 217 | ]), |
| 218 | ]; |
| 219 | |
| 220 | self.draw_dialog("Success", &content, Color::Green); |
| 221 | } |
| 222 | |
| 223 | /// Draws the command input area |
| 224 | fn draw_command_input(&mut self) { |