Dynamic themes

Hi all, I’m migrating from 6-7 and I saw that the themes are implemented with annotations, but if I want to do it dynamically, how do I do it?

Same issue.

Well, it looks like the UIProvider is responsible for returning the theme. So you can extend UIProvider to return the theme of your choice, but if you’re not using a UIProvider you’d probably have to switch over.

Here’s a solution from StackOverflow with code examples: