diff --git a/crates/edit/src/tui.rs b/crates/edit/src/tui.rs index 7670752e38c..de8a01b0a2c 100644 --- a/crates/edit/src/tui.rs +++ b/crates/edit/src/tui.rs @@ -276,7 +276,7 @@ impl ButtonStyle { pub fn accelerator(self, char: char) -> Self { Self { accelerator: Some(char), ..self } } - /// Draw a checkbox prefix: `[🗹 Example Button]` + /// Draw a checkbox prefix: `[◼ Example Button]` pub fn checked(self, checked: bool) -> Self { Self { checked: Some(checked), ..self } } @@ -2077,7 +2077,7 @@ impl<'a> Context<'a, '_> { if self.is_focused() { self.attr_reverse(); } - self.styled_label_add_text(if *checked { "[🗹 " } else { "[☐ " }); + self.styled_label_add_text(if *checked { "[◼ " } else { "[◻ " }); self.styled_label_add_text(text); self.styled_label_add_text("]"); self.styled_label_end(); @@ -3332,7 +3332,7 @@ impl<'a> Context<'a, '_> { self.styled_label_add_text("["); } if let Some(checked) = style.checked { - self.styled_label_add_text(if checked { "🗹 " } else { " " }); + self.styled_label_add_text(if checked { "◼ " } else { " " }); } // Label text match style.accelerator {