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?
Please

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:
http://stackoverflow.com/questions/16141247/change-themes-in-vaadin-7-via-code