Skip to content

Commit

Permalink
Always default to the simple theme
Browse files Browse the repository at this point in the history
Fixes #22
  • Loading branch information
Ekleog committed May 8, 2021
1 parent 87cf745 commit 08fe92a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,14 @@ fn run(
}

fn theme() -> Box<dyn dialoguer::theme::Theme> {
/*
if console::colors_enabled() {
Box::new(dialoguer::theme::ColorfulTheme::default()) as Box<dyn dialoguer::theme::Theme>
} else {
Box::new(dialoguer::theme::SimpleTheme)
}
*/
// TODO: the colorful theme is unfortunately hard to use without colors, and is also
// unintuitive even for people who see colors, as it's unclear whether boxes are checked or not
Box::new(dialoguer::theme::SimpleTheme)
}

0 comments on commit 08fe92a

Please sign in to comment.