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 @@ + + + + + + + + + diff --git a/editor/templates/index.mst b/editor/templates/index.mst index 7344befcc..489228f00 100644 --- a/editor/templates/index.mst +++ b/editor/templates/index.mst @@ -23,6 +23,7 @@ {{ page.title }} + 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; }