From b7849f1145617178399d45af0290227eec9fca75 Mon Sep 17 00:00:00 2001 From: barkure <43804451+barkure@users.noreply.github.com> Date: Sat, 2 May 2026 00:16:28 +0800 Subject: [PATCH 1/2] Use compatible checkbox marker glyphs --- crates/edit/src/tui.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/edit/src/tui.rs b/crates/edit/src/tui.rs index 0fb7e628bc2..e07f1484377 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 } } @@ -2071,7 +2071,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(); @@ -3301,7 +3301,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 { From e1da5c008e380775eb5eb3da68180a1e483ebc7c Mon Sep 17 00:00:00 2001 From: barkure <43804451+barkure@users.noreply.github.com> Date: Tue, 5 May 2026 02:24:53 +0800 Subject: [PATCH 2/2] Use medium square checkbox markers --- crates/edit/src/tui.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/edit/src/tui.rs b/crates/edit/src/tui.rs index e07f1484377..55ee04be5fd 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 } } @@ -2071,7 +2071,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(); @@ -3301,7 +3301,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 {