From 12f0ed090df7ebba90a4618dfd71b7227e7deced Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Mon, 9 Sep 2024 17:47:23 +0100 Subject: [PATCH] simplify --- src/textual/app.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/textual/app.py b/src/textual/app.py index 417574babb..7b2675437d 100644 --- a/src/textual/app.py +++ b/src/textual/app.py @@ -832,11 +832,8 @@ def get_pseudo_classes(self) -> Iterable[str]: Returns: Names of the pseudo classes. """ - if self.app_focus: - yield "focus" - else: - yield "blur" - yield "dark" if self.app.dark else "light" + yield "focus" if self.app_focus else "blur" + yield "dark" if self.dark else "light" if self.is_inline: yield "inline"