textual icon indicating copy to clipboard operation
textual copied to clipboard

[FEATURE] possible to load/unload css files?

Open kraanzu opened this issue 2 years ago • 1 comments

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

kraanzu avatar Dec 21 '23 16:12 kraanzu

Not currently. But its not a bad idea.

willmcgugan avatar Dec 21 '23 16:12 willmcgugan