Skip to content

Commit

Permalink
Default colorfultheme is for stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
pksunkara committed Apr 28, 2020
1 parent b016ffb commit 1a219fe
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 18 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.6.1

### Bugfixes

* `theme::ColorfulTheme` default styles are for stderr

## 0.6.0

### Breaking
Expand Down
36 changes: 18 additions & 18 deletions src/theme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,24 +313,24 @@ pub struct ColorfulTheme {
impl Default for ColorfulTheme {
fn default() -> ColorfulTheme {
ColorfulTheme {
defaults_style: Style::new().cyan(),
prompt_style: Style::new().bold(),
prompt_prefix: style("?".to_string()).yellow(),
prompt_suffix: style("›".to_string()).black().bright(),
success_prefix: style("✔".to_string()).green(),
success_suffix: style("·".to_string()).black().bright(),
error_prefix: style("✘".to_string()).red(),
error_style: Style::new().red(),
hint_style: Style::new().black().bright(),
values_style: Style::new().green(),
active_item_style: Style::new().cyan(),
inactive_item_style: Style::new(),
active_item_prefix: style("❯".to_string()).green(),
inactive_item_prefix: style(" ".to_string()),
checked_item_prefix: style("✔".to_string()).green(),
unchecked_item_prefix: style("✔".to_string()).black(),
picked_item_prefix: style("❯".to_string()).green(),
unpicked_item_prefix: style(" ".to_string()),
defaults_style: Style::new().for_stderr().cyan(),
prompt_style: Style::new().for_stderr().bold(),
prompt_prefix: style("?".to_string()).for_stderr().yellow(),
prompt_suffix: style("›".to_string()).for_stderr().black().bright(),
success_prefix: style("✔".to_string()).for_stderr().green(),
success_suffix: style("·".to_string()).for_stderr().black().bright(),
error_prefix: style("✘".to_string()).for_stderr().red(),
error_style: Style::new().for_stderr().red(),
hint_style: Style::new().for_stderr().black().bright(),
values_style: Style::new().for_stderr().green(),
active_item_style: Style::new().for_stderr().cyan(),
inactive_item_style: Style::new().for_stderr(),
active_item_prefix: style("❯".to_string()).for_stderr().green(),
inactive_item_prefix: style(" ".to_string()).for_stderr(),
checked_item_prefix: style("✔".to_string()).for_stderr().green(),
unchecked_item_prefix: style("✔".to_string()).for_stderr().black(),
picked_item_prefix: style("❯".to_string()).for_stderr().green(),
unpicked_item_prefix: style(" ".to_string()).for_stderr(),
}
}
}
Expand Down

0 comments on commit 1a219fe

Please sign in to comment.