From 41e2b71dcc6b5b0caa4899ef66f4fc470ec93597 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Mon, 31 Oct 2022 13:46:28 +0000 Subject: [PATCH] update changelog --- CHANGELOG.md | 5 +++++ src/textual/widgets/_footer.py | 4 ++++ tests/snapshot_tests/conftest.py | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69b41ae86..35c4d9902 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed - Fixed issue where scrollbars weren't being unmounted +- Fixed fr units for horizontal and vertical layouts https://github.com/Textualize/textual/pull/1067 +- Fixed `textual run` breaking sys.argv https://github.com/Textualize/textual/issues/1064 +- Fixed footer not updating styles when toggling dark mode ### Changed @@ -25,6 +28,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Added auto_pilot to App.run and App.run_async - Added Widget._get_virtual_dom to get scrollbars - Added size parameter to run and run_async +- Returned an awaitable from push_screen, switch_screen, and install_screen https://github.com/Textualize/textual/pull/1061 + ## [0.2.1] - 2022-10-23 diff --git a/src/textual/widgets/_footer.py b/src/textual/widgets/_footer.py index 63b2265aa..4ead9222c 100644 --- a/src/textual/widgets/_footer.py +++ b/src/textual/widgets/_footer.py @@ -119,6 +119,10 @@ class Footer(Widget): text.append_text(key_text) return text + def _on_styles_updated(self) -> None: + self._key_text = None + self.refresh() + def post_render(self, renderable): return renderable diff --git a/tests/snapshot_tests/conftest.py b/tests/snapshot_tests/conftest.py index a399c5533..58fb1125f 100644 --- a/tests/snapshot_tests/conftest.py +++ b/tests/snapshot_tests/conftest.py @@ -52,7 +52,7 @@ def snap_compare( Args: app_path (str): The path of the app. press (Iterable[str]): Key presses to run before taking screenshot. "_" is a short pause. - terminal_size (tuple[int, int]): A pair of integers (WIDTH, SIZE), representing terminal size. + terminal_size (tuple[int, int]): A pair of integers (WIDTH, HEIGHT), representing terminal size. Returns: bool: True if the screenshot matches the snapshot.