Skip to content

Commit 96be1ea

Browse files
authored
Merge pull request #1075 from Textualize/footer-fix
update changelog
2 parents b274894 + 67fcbde commit 96be1ea

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010
### Fixed
1111

1212
- Fixed issue where scrollbars weren't being unmounted
13+
- Fixed fr units for horizontal and vertical layouts https://github.com/Textualize/textual/pull/1067
14+
- Fixed `textual run` breaking sys.argv https://github.com/Textualize/textual/issues/1064
15+
- Fixed footer not updating styles when toggling dark mode
1316
- Fixed how the app title in a `Header` is centred https://github.com/Textualize/textual/issues/1060
1417
- Fixed the swapping of button variants https://github.com/Textualize/textual/issues/1048
1518
- Fixed reserved characters in screenshots https://github.com/Textualize/textual/issues/993
@@ -29,6 +32,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2932
- Added auto_pilot to App.run and App.run_async
3033
- Added Widget._get_virtual_dom to get scrollbars
3134
- Added size parameter to run and run_async
35+
- Returned an awaitable from push_screen, switch_screen, and install_screen https://github.com/Textualize/textual/pull/1061
36+
3237

3338
## [0.2.1] - 2022-10-23
3439

src/textual/widgets/_footer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ def make_key_text(self) -> Text:
119119
text.append_text(key_text)
120120
return text
121121

122+
def _on_styles_updated(self) -> None:
123+
self._key_text = None
124+
self.refresh()
125+
122126
def post_render(self, renderable):
123127
return renderable
124128

tests/snapshot_tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def compare(
5252
Args:
5353
app_path (str): The path of the app.
5454
press (Iterable[str]): Key presses to run before taking screenshot. "_" is a short pause.
55-
terminal_size (tuple[int, int]): A pair of integers (WIDTH, SIZE), representing terminal size.
55+
terminal_size (tuple[int, int]): A pair of integers (WIDTH, HEIGHT), representing terminal size.
5656
5757
Returns:
5858
bool: True if the screenshot matches the snapshot.

0 commit comments

Comments
 (0)