Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

setTheme method in vaadin 7 ?

Jihad Guedouar
10 years ago Feb 19, 2012 2:08am
Henri Sara
10 years ago Feb 19, 2012 9:30am
Alex C
9 years ago Aug 07, 2012 8:04pm
Henri Sara
9 years ago Aug 08, 2012 6:36am
Ralf N
9 years ago Aug 08, 2012 9:34am

Hi,

Henri Sara: The method setTheme() has been replaced with the @Theme annotation

Putting things that could be configured into the code is always a bad idea.

Henri Sara: True on-the-fly theme change support was left out in Vaadin 7. Changing the whole theme is a feature that was mostly used in demo applications and on certain portals etc. just because the portal allowed it.

Selecting/Setting up Colors on a per user basis is a feature that is always nice to have in every application.

Henri Sara: You can override Application.getThemeForRoot(Root) to decide on the theme to use at application start

I will have a look on that, at least the app L&F can be configured at the start then.

Henri Sara: perhaps even almost support changing whole themes on the fly.

Please don't forget to do this, it is more important than it seems to be.

geetings
Ralf

Last updated on Aug, 8th 2012
Alex C
9 years ago Aug 08, 2012 5:56pm
Jouni Koivuviita
9 years ago Aug 08, 2012 7:14pm
Ralf N
9 years ago Aug 09, 2012 7:55am
Leif Åstrand
9 years ago Aug 10, 2012 11:37am
Riku S
9 years ago Sep 01, 2012 4:52pm
Gideon Le Grange
9 years ago Sep 16, 2012 8:40am
Henri Sara
9 years ago Sep 17, 2012 5:43am
A R
9 years ago Apr 12, 2013 5:12am
Emmanuel Denzer
8 years ago Apr 16, 2013 1:29pm
Gerhard Sinne
8 years ago Apr 23, 2013 3:23pm
Henri Sara
8 years ago Apr 24, 2013 8:08am
Sebastian Dietrich
8 years ago Oct 14, 2013 10:51am
Henri Sara
8 years ago Oct 14, 2013 12:22pm
Sebastian Dietrich
8 years ago Oct 14, 2013 2:03pm
Leif Åstrand
7 years ago Sep 04, 2014 11:25am

Everyone involved in this discussion might be happy to learn that we added setTheme functionality to Vaadin 7.3.0.

See https://vaadin.com/wiki/-/wiki/Main/Changing+theme+on+the+fly for a very simple example on how this is used.

omkar darekar
6 years ago Sep 04, 2015 6:24am
omkar darekar
6 years ago Sep 04, 2015 6:25am
Leif Åstrand
6 years ago Sep 04, 2015 7:04am
omkar darekar
6 years ago Sep 04, 2015 7:08am
Leif Åstrand
6 years ago Sep 04, 2015 7:15am
Dmitry Smirnov
6 years ago Sep 04, 2015 8:44am
omkar darekar
6 years ago Sep 07, 2015 8:58am
omkar darekar
6 years ago Sep 07, 2015 9:04am
Leif Åstrand
6 years ago Oct 01, 2015 7:08am