MCPcopy Create free account
hub / github.com/Autoparallel/learner / draw_success_dialog

Method draw_success_dialog

crates/learnerd/src/tui/ui.rs:209–221  ·  view source on GitHub ↗

Draws the pop up showing success

(&mut self, message: &str)

Source from the content-addressed store, hash-verified

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) {

Callers 1

drawMethod · 0.80

Calls 1

draw_dialogMethod · 0.80

Tested by

no test coverage detected