Skip to content

Commit 5088e87

Browse files
authored
Change chars for MultiSelect items (console-rs#275)
* Change chars for `MultiSelect` items * Use '◌' for unchecked * Changelog * cargo fmt * Change symbol to '⬚'
1 parent c4c00f4 commit 5088e87

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

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

1011
### Breaking
1112

src/history.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ pub struct BasicHistory {
2525
impl BasicHistory {
2626
/// Creates a new basic history value which has no limit on the number of
2727
/// entries and allows for duplicates.
28-
///
28+
///
2929
/// # Example
30-
///
30+
///
3131
/// A history with at most 8 entries and no duplicates:
32-
///
32+
///
3333
/// ```rs
3434
/// let mut history = BasicHistory::new().max_entries(8).no_duplicates(true);
3535
/// ```

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub use completion::Completion;
3939
pub use edit::Editor;
4040
pub use error::{Error, Result};
4141
#[cfg(feature = "history")]
42-
pub use history::{History, BasicHistory};
42+
pub use history::{BasicHistory, History};
4343
use paging::Paging;
4444
pub use validate::Validator;
4545

src/prompts/input.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use crate::{
1414

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

17-
1817
/// Renders an input prompt.
1918
///
2019
/// ## Example

src/theme/colorful.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl Default for ColorfulTheme {
7272
active_item_prefix: style("❯".to_string()).for_stderr().green(),
7373
inactive_item_prefix: style(" ".to_string()).for_stderr(),
7474
checked_item_prefix: style("✔".to_string()).for_stderr().green(),
75-
unchecked_item_prefix: style("".to_string()).for_stderr().black(),
75+
unchecked_item_prefix: style("".to_string()).for_stderr().magenta(),
7676
picked_item_prefix: style("❯".to_string()).for_stderr().green(),
7777
unpicked_item_prefix: style(" ".to_string()).for_stderr(),
7878
#[cfg(feature = "fuzzy-select")]

0 commit comments

Comments
 (0)