From 81f310424bea49966c09f53bab9de8adbfad850c Mon Sep 17 00:00:00 2001 From: AMahdy AbdElAziz Date: Mon, 16 Jan 2017 16:12:59 +0200 Subject: [PATCH] Step 6 | Add relevant meta tags --- src/main/java/org/vaadin/java_pwa/MyUI.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/vaadin/java_pwa/MyUI.java b/src/main/java/org/vaadin/java_pwa/MyUI.java index 0d99eb1..6af400d 100644 --- a/src/main/java/org/vaadin/java_pwa/MyUI.java +++ b/src/main/java/org/vaadin/java_pwa/MyUI.java @@ -10,7 +10,8 @@ import org.apache.commons.io.IOUtils; import org.vaadin.leif.headertags.HeaderTagHandler; import org.vaadin.leif.headertags.Link; -import org.vaadin.leif.headertags.LinkTags; +import org.vaadin.leif.headertags.Meta; +import org.vaadin.leif.headertags.MetaTags; import com.vaadin.annotations.JavaScript; import com.vaadin.annotations.Theme; @@ -38,6 +39,10 @@ */ @Theme("mytheme") @JavaScript("vaadin://js/app.js") +@MetaTags({ + @Meta(name="viewport", content="width=device-width, initial-scale=1"), + @Meta(name="theme-color", content="#00b4f0") +}) @Link(rel="manifest", href="VAADIN/manifest.json") public class MyUI extends UI {