Skip to content

Commit

Permalink
fix: make TUI shutting down dialog yellow
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Goulden committed Oct 27, 2019
1 parent 5cba5c9 commit 55cc911
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/tui/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ impl UI {
// Configure a callback (shutdown, for the first test)
let controller_tx_clone = grin_ui.controller_tx.clone();
grin_ui.cursive.add_global_callback('q', move |c| {
let content = StyledString::styled("Shutting down...", Color::Light(BaseColor::Yellow));
c.add_layer(CircularFocus::wrap_tab(Dialog::around(TextView::new(
"Shutting down...",
content,
))));
controller_tx_clone
.send(ControllerMessage::Shutdown)
Expand Down

0 comments on commit 55cc911

Please sign in to comment.