diff options
author | Artur Signell <artur@vaadin.com> | 2014-07-30 07:53:28 +0000 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2014-08-04 08:27:00 +0000 |
commit | 422c08c6145b8c8eaff4f453b5c0276beef27290 (patch) | |
tree | 4b21fae0fc435442c2d052ae76298b0fb33e3b43 /shared | |
parent | 99118ccf946486e140cd1a85ff75f2a6c09f4266 (diff) | |
download | vaadin-framework-422c08c6145b8c8eaff4f453b5c0276beef27290.tar.gz vaadin-framework-422c08c6145b8c8eaff4f453b5c0276beef27290.zip |
Allow changing theme on the fly (#2874, #14139, #14124)
* Updates UI and overlay container class names when the theme changes
* Initially verifies that the theme has actually been loaded (for the embed case)
and class names have been properly set
* Forces a state change to all components to re-translate theme:// URLs
* Runs a full layout after the new theme has been loaded and activated
Change-Id: I5a7391abe1bb467130bbb4660e4829b43f3e4255
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/com/vaadin/shared/ui/ui/UIState.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/shared/src/com/vaadin/shared/ui/ui/UIState.java b/shared/src/com/vaadin/shared/ui/ui/UIState.java index 3c3785b7d5..2f51fef6ee 100644 --- a/shared/src/com/vaadin/shared/ui/ui/UIState.java +++ b/shared/src/com/vaadin/shared/ui/ui/UIState.java @@ -62,6 +62,12 @@ public class UIState extends TabIndexState { * Configuration for the push channel */ public PushConfigurationState pushConfiguration = new PushConfigurationState(); + /** + * Currently used theme. + * + * @since 7.3 + */ + public String theme; { primaryStyleName = "v-ui"; // Default is 1 for legacy reasons @@ -95,7 +101,7 @@ public class UIState extends TabIndexState { NotificationRole role) { this.prefix = prefix; this.postfix = postfix; - this.notificationRole = role; + notificationRole = role; } } |