Programmatically set css color variables? #1207
-
Not sure if I just missed it in the docs, but is there an easy way to set the $primary or $secondary colors in python? Right now, I've been checking if the app is dark and if so, then pulling the primary color scheme out of the Default Light/Dark ColorSystem _variables. Probably something I overlooked; I did notice you can set the variant to be primary or secondary, is this the same as setting the color? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Currently Textual doesn't have an exposed interface for doing that, but it's something that makes a lot of sense and we do plan on adding; the actual approach not being decided yet though. |
Beta Was this translation helpful? Give feedback.
Currently Textual doesn't have an exposed interface for doing that, but it's something that makes a lot of sense and we do plan on adding; the actual approach not being decided yet though.