mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Swap the checkbox character to an X
See #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.
This commit is contained in:
@@ -65,6 +65,7 @@ class ToggleButton(Static, can_focus=True):
|
||||
|
||||
ToggleButton > .toggle--button {
|
||||
color: $background;
|
||||
text-style: bold;
|
||||
background: $foreground 15%;
|
||||
}
|
||||
|
||||
@@ -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 = "▌"
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user