mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Ensure the toggle button keeps any bold state (#1965)
* Ensure the toggle button keeps any bold state Fixes #1963. * Update snapshots
This commit is contained in:
@@ -158,7 +158,7 @@ class ToggleButton(Static, can_focus=True):
|
|||||||
# If the button is off, we're going to do a bit of a switcharound to
|
# If the button is off, we're going to do a bit of a switcharound to
|
||||||
# make it look like it's a "cutout".
|
# make it look like it's a "cutout".
|
||||||
if not self.value:
|
if not self.value:
|
||||||
button_style = Style.from_color(
|
button_style += Style.from_color(
|
||||||
self.background_colors[1].rich_color, button_style.bgcolor
|
self.background_colors[1].rich_color, button_style.bgcolor
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user