Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Sep 9, 2024
1 parent d4ccc67 commit 12f0ed0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/textual/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 12f0ed0

Please sign in to comment.