From 1d5e2f703e5eb6d92b72a00d0feb419cd1fe024e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20L=C3=A9caud=C3=A9?= Date: Mon, 8 Feb 2016 00:01:19 -0500 Subject: [PATCH 1/4] Create node-red-icon-black.svg --- editor/images/node-red-icon-black.svg | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 editor/images/node-red-icon-black.svg diff --git a/editor/images/node-red-icon-black.svg b/editor/images/node-red-icon-black.svg new file mode 100644 index 000000000..613427a47 --- /dev/null +++ b/editor/images/node-red-icon-black.svg @@ -0,0 +1,9 @@ + + + + + + + + + From dcaa0eeea487b479a54d1804eac9b874663e2815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20L=C3=A9caud=C3=A9?= Date: Mon, 8 Feb 2016 00:05:17 -0500 Subject: [PATCH 2/4] Add node-red-icon-black.svg file to header Add node-red-icon-black.svg file to header, according to Safari's pinned tab icon spec. See : https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/pinnedTabs/pinnedTabs.html --- editor/templates/index.mst | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/templates/index.mst b/editor/templates/index.mst index 6d0b6f717..e93ef5d34 100644 --- a/editor/templates/index.mst +++ b/editor/templates/index.mst @@ -23,6 +23,7 @@ {{ page.title }} + From 7615743aa533b915c332ec4700c68cb9e32e86d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20L=C3=A9caud=C3=A9?= Date: Mon, 8 Feb 2016 09:20:07 -0500 Subject: [PATCH 3/4] Update theme.js --- red/api/theme.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/red/api/theme.js b/red/api/theme.js index ae8c260b2..3866c1eaf 100644 --- a/red/api/theme.js +++ b/red/api/theme.js @@ -23,7 +23,8 @@ var clone = require("clone"); var defaultContext = { page: { title: "Node-RED", - favicon: "favicon.ico" + favicon: "favicon.ico", + tabicon: "red/images/node-red-icon-black.svg" }, header: { title: "Node-RED", @@ -94,6 +95,13 @@ module.exports = { themeContext.page.favicon = url; } } + + if (theme.page.tabicon) { + url = serveFile(themeApp,"/tabicon/",theme.page.tabicon) + if (url) { + themeContext.page.tabicon = url; + } + } themeContext.page.title = theme.page.title || themeContext.page.title; } From d1269b441d035d3202c8e3d0b6a90c78e605b6be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20L=C3=A9caud=C3=A9?= Date: Mon, 8 Feb 2016 09:20:43 -0500 Subject: [PATCH 4/4] Update index.mst --- editor/templates/index.mst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/templates/index.mst b/editor/templates/index.mst index e93ef5d34..a89047209 100644 --- a/editor/templates/index.mst +++ b/editor/templates/index.mst @@ -23,7 +23,7 @@ {{ page.title }} - +