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:
Dave Pearson
2023-03-07 15:18:36 +00:00
committed by GitHub
parent b7de48cca3
commit 6d23fdf4f1
2 changed files with 185 additions and 185 deletions

View File

@@ -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
# make it look like it's a "cutout".
if not self.value:
button_style = Style.from_color(
button_style += Style.from_color(
self.background_colors[1].rich_color, button_style.bgcolor
)

File diff suppressed because one or more lines are too long