Skip to content

Commit 6778c27

Browse files
committed
Fix Vaadin displaying styles
1 parent 8c459a1 commit 6778c27

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

demo/webapp-vaadin/src/main/java/software/xdev/sse/demo/Application.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,14 @@
1010
import org.springframework.scheduling.annotation.EnableAsync;
1111
import org.springframework.scheduling.annotation.EnableScheduling;
1212

13-
import com.vaadin.flow.component.dependency.StyleSheet;
1413
import com.vaadin.flow.spring.annotation.EnableVaadin;
15-
import com.vaadin.flow.theme.lumo.Lumo;
1614

1715

1816
@SuppressWarnings({"checkstyle:HideUtilityClassConstructor", "PMD.UseUtilityClass"})
1917
@SpringBootApplication(exclude = {ErrorMvcAutoConfiguration.class})
2018
@EnableScheduling
2119
@EnableAsync
2220
@EnableVaadin("software.xdev.sse.demo.ui")
23-
@StyleSheet(Lumo.STYLESHEET)
2421
public class Application
2522
{
2623
@SuppressWarnings("PMD.AvoidSystemSetterCall")

demo/webapp-vaadin/src/main/java/software/xdev/sse/demo/ui/AppShell.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@
22

33
import java.util.Map;
44

5+
import com.vaadin.flow.component.dependency.StyleSheet;
56
import com.vaadin.flow.component.page.AppShellConfigurator;
67
import com.vaadin.flow.component.page.Push;
78
import com.vaadin.flow.server.AppShellSettings;
9+
import com.vaadin.flow.theme.lumo.Lumo;
810

911

12+
@StyleSheet("context://" + Lumo.STYLESHEET)
1013
@Push
1114
public class AppShell implements AppShellConfigurator
1215
{
1316
@Override
1417
public void configurePage(final AppShellSettings settings)
1518
{
1619
// Don't use Vaadin's PWA implementation because it can only handle PNGs
17-
// Also it renders them for each IPhone resolution in existence, which bloats up the delivered content
20+
// Also it renders them for each iPhone resolution in existence, which bloats up the delivered content
1821
settings.addLink(
1922
"manifest.webmanifest",
2023
Map.of(

0 commit comments

Comments
 (0)