Component classes reactive to theme change? #5502
Unanswered
TomJGooding
asked this question in
Q&A
Replies: 1 comment 5 replies
-
I think I understand now why this works for Textual's key panel but not the widgets in my example. After taking a closer look at the source code, I found the key panel actually constructs its content within its |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to achieve something similar to Textual's key panel in my app, where the colors change according to the current theme.
It looks like the help panel achieves this using component classes, but I can't seem to manage to replicate this in my custom widgets.
Hopefully the example app below demonstrates what I mean . Thanks in advance for any help to understand what I might be missing!
Beta Was this translation helpful? Give feedback.
All reactions