textual
textual copied to clipboard
[FEATURE] possible to load/unload css files?
Discussed in https://github.com/Textualize/textual/discussions/3907
Originally posted by kraanzu December 20, 2023
I'm trying to make a theme changer and I'm currently using classes (like .theme-name) to override the color/styles in a widget but is there a way to dynamically load/unload css files?
I looked into the action_toggle_dark which also uses classnames.
Textual is able to determine any file changes in the CSS file, but It'd be great if I can change the CSS_PATH on demand :D
Not currently. But its not a bad idea.