From 37368073593a1e78644efdc167c3d86fc1a60407 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 22 Apr 2023 17:49:00 +0100 Subject: [PATCH] fix color system render (#2360) * fix color system render * changelog --- CHANGELOG.md | 1 + src/textual/strip.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 154c41a7b..ba59ae84b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fixed dark mode toggles in a "child" screen not updating a "parent" screen https://github.com/Textualize/textual/issues/1999 - Fixed "panel" border not exposed via CSS +- Fixed broken color on macOS Terminal https://github.com/Textualize/textual/issues ## [0.20.1] - 2023-04-18 diff --git a/src/textual/strip.py b/src/textual/strip.py index cbe7d7a67..554acdecf 100644 --- a/src/textual/strip.py +++ b/src/textual/strip.py @@ -421,7 +421,7 @@ class Strip: Rendered sequences. """ if self._render_cache is None: - color_system = cast(ColorSystem, console.color_system) + color_system = console._color_system render = Style.render self._render_cache = "".join( [