Can i bind existing Rich theme to textual app? #2618
Unanswered
SanctusAnimus
asked this question in
Q&A
Replies: 1 comment
-
I also just ran into this as I was trying to use a custom from rich.theme import Theme
from textual.app import App
theme = Theme({
"myprop": "red",
})
class MyApp(App):
def __init__(*args, **kwargs):
super().__init__(*args, **kwargs):
self.console.push_theme(theme) The rich docs state one should favor |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a few Rich tables and panels that share common theme styles, and i'm passing them to render in TextLog (as well as some Labels etc).
I haven't found a way to pass existing theme into the app, for it to highlight properly, so it's currently throwing errors at me.
Am i missing something?
Beta Was this translation helpful? Give feedback.
All reactions