Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# textual-enhanced ChangeLog

## Unreleased

**Released: WiP**

- Removed all ANSI themes from the available themes. Not only do they not
look great, they can cause a crash in some applications.
([#74](https://github.com/davep/textual-enhanced/pull/74))

## v1.4.0

**Released: 20206-04-03**
Expand Down
10 changes: 10 additions & 0 deletions src/textual_enhanced/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# Textual imports.
from textual.app import App, ReturnType
from textual.binding import Binding
from textual.theme import Theme


##############################################################################
Expand Down Expand Up @@ -72,5 +73,14 @@ class EnhancedApp(Generic[ReturnType], App[ReturnType]):
),
]

@property
def available_themes(self) -> dict[str, Theme]:
"""All available non-ANSI themes."""
return {
name: theme
for name, theme in super().available_themes.items()
if not name.startswith("ansi")
}


### app.py ends here
Loading