We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
skeleton-starter-flow
@Theme
MainView
package com.vaadin.starter.skeleton; import com.vaadin.flow.component.button.Button; import com.vaadin.flow.component.notification.Notification; import com.vaadin.flow.component.orderedlayout.VerticalLayout; import com.vaadin.flow.router.Route; import com.vaadin.flow.server.PWA; import com.vaadin.flow.theme.Theme; import com.vaadin.flow.theme.lumo.Lumo; import com.vaadin.flow.theme.material.Material; /** * The main view contains a button and a click listener. */ @Route("") @PWA(name = "Project Base for Vaadin Flow", shortName = "Project Base") @Theme(value = Material.class, variant = Material.LIGHT) //@Theme(value = Lumo.class, variant = Lumo.DARK) public class MainView extends VerticalLayout { public MainView() { Button button = new Button("Click me", event -> Notification.show("Clicked!")); add(button); } }
Expected behavior Themes and modes are switched respectively.
Actual behavior Only Lumo theme and Lumo.LIGHT mode are used as default and cannot be changed.
Versions:
14 beta1
java version "1.8.0_202"
Windows 10
Chrome
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
skeleton-starter-flow
project, add@Theme
on top ofMainView
class, e.g:Expected behavior
Themes and modes are switched respectively.
Actual behavior
Only Lumo theme and Lumo.LIGHT mode are used as default and cannot be changed.
Versions:
14 beta1
java version "1.8.0_202"
Windows 10
Chrome
The text was updated successfully, but these errors were encountered: