When I try to apply the built in Valo Theme to a label, I see no difference in the rendered text. The same actions taken against a button are immeditely visible upon redeployment of my application. I’ve tried multiple browsers to make sure nothing is cached, but the effects are the same, even on mobile browsers (Chrome in Android).
Setup
- Eclipse
- Maven project from
vaadin-archetype-application v7.3.0 - Tomcat 7
// imports go here
@Theme("mytheme")
@SuppressWarnings("serial")
public class MyVaadinUI extends UI
{
@WebServlet(value = "/*", asyncSupported = true)
@VaadinServletConfiguration(productionMode = false, ui = MyVaadinUI.class)
public static class Servlet extends VaadinServlet {
}
@Override
protected void init(VaadinRequest request) {
// main layout
final VerticalLayout layout = new VerticalLayout();
layout.setMargin(true);
setContent(layout);
final Label label = new Label();
label.setCaption("label");
// no combination works and text is always default size
label.addStyleName(ValoTheme.LABEL_BOLD + " " + ValoTheme.LABEL_HUGE);
final Button button = new Button();
button.setCaption("button");
// any combination works and is immeditely visible
button.addStyleName(ValoTheme.BUTTON_HUGE + " " + ValoTheme.BUTTON_DANGER);
layout.addComponent(label);
layout.addComponent(button);
}
}