Skip to content

Commit

Permalink
Change chars for MultiSelect items (#275)
Browse files Browse the repository at this point in the history
* Change chars for `MultiSelect` items

* Use '◌' for unchecked

* Changelog

* cargo fmt

* Change symbol to '⬚'
  • Loading branch information
Gordon01 authored Sep 1, 2023
1 parent c4c00f4 commit 5088e87
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

* Added `dialouger::Result` and `dialouger::Error`
* Resolve some issues on Windows where pressing shift keys sometimes aborted dialogs.
* Resolve `MultiSelect` checked and unchecked variants looking the same on Windows.

### Breaking

Expand Down
6 changes: 3 additions & 3 deletions src/history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ pub struct BasicHistory {
impl BasicHistory {
/// Creates a new basic history value which has no limit on the number of
/// entries and allows for duplicates.
///
///
/// # Example
///
///
/// A history with at most 8 entries and no duplicates:
///
///
/// ```rs
/// let mut history = BasicHistory::new().max_entries(8).no_duplicates(true);
/// ```
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub use completion::Completion;
pub use edit::Editor;
pub use error::{Error, Result};
#[cfg(feature = "history")]
pub use history::{History, BasicHistory};
pub use history::{BasicHistory, History};
use paging::Paging;
pub use validate::Validator;

Expand Down
1 change: 0 additions & 1 deletion src/prompts/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ use crate::{

type ValidatorCallback<'a, T> = Box<dyn FnMut(&T) -> Option<String> + 'a>;


/// Renders an input prompt.
///
/// ## Example
Expand Down
2 changes: 1 addition & 1 deletion src/theme/colorful.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl Default for ColorfulTheme {
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(),
unchecked_item_prefix: style("".to_string()).for_stderr().magenta(),
picked_item_prefix: style("❯".to_string()).for_stderr().green(),
unpicked_item_prefix: style(" ".to_string()).for_stderr(),
#[cfg(feature = "fuzzy-select")]
Expand Down

0 comments on commit 5088e87

Please sign in to comment.