Skip to content

Commit

Permalink
Swap the checkbox character to an X
Browse files Browse the repository at this point in the history
See Textualize#1934. Simply put: the character that we were doesn't render well at all
in Windows Terminal on Windows 10; while there are other options available,
few seem to work well there either. So here we go for a bold X; this should
render fine everywhere.
  • Loading branch information
davep committed Mar 6, 2023
1 parent 623b70d commit f7a6981
Show file tree
Hide file tree
Showing 2 changed files with 186 additions and 185 deletions.
3 changes: 2 additions & 1 deletion src/textual/widgets/_toggle_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class ToggleButton(Static, can_focus=True):
ToggleButton > .toggle--button {
color: $background;
text-style: bold;
background: $foreground 15%;
}
Expand Down Expand Up @@ -99,7 +100,7 @@ class ToggleButton(Static, can_focus=True):
BUTTON_LEFT: str = "▐"
"""The character used for the left side of the toggle button."""

BUTTON_INNER: str = ""
BUTTON_INNER: str = "X"
"""The character used for the inside of the button."""

BUTTON_RIGHT: str = "▌"
Expand Down
Loading

0 comments on commit f7a6981

Please sign in to comment.