update changelog

This commit is contained in:
Will McGugan
2022-10-31 13:46:28 +00:00
parent 0d99b0ccd1
commit 41e2b71dcc
3 changed files with 10 additions and 1 deletions

View File

@@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed ### Fixed
- Fixed issue where scrollbars weren't being unmounted - 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 ### 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 auto_pilot to App.run and App.run_async
- Added Widget._get_virtual_dom to get scrollbars - Added Widget._get_virtual_dom to get scrollbars
- Added size parameter to run and run_async - 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 ## [0.2.1] - 2022-10-23

View File

@@ -119,6 +119,10 @@ class Footer(Widget):
text.append_text(key_text) text.append_text(key_text)
return text return text
def _on_styles_updated(self) -> None:
self._key_text = None
self.refresh()
def post_render(self, renderable): def post_render(self, renderable):
return renderable return renderable

View File

@@ -52,7 +52,7 @@ def snap_compare(
Args: Args:
app_path (str): The path of the app. app_path (str): The path of the app.
press (Iterable[str]): Key presses to run before taking screenshot. "_" is a short pause. 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: Returns:
bool: True if the screenshot matches the snapshot. bool: True if the screenshot matches the snapshot.