WIP:: Initial stab at regions demo for Europe.
Change-Id: I80402aea2b3d57bf104db0c0fba68bebda0cae9e
diff --git a/web/gui/src/main/webapp/app/view/topo2/topo2NodeModel.js b/web/gui/src/main/webapp/app/view/topo2/topo2NodeModel.js
index 94a4ef9..ccedaff 100644
--- a/web/gui/src/main/webapp/app/view/topo2/topo2NodeModel.js
+++ b/web/gui/src/main/webapp/app/view/topo2/topo2NodeModel.js
@@ -33,16 +33,21 @@
// note: these are the device icon colors without affinity (no master)
var dColTheme = {
- light: {
- online: '#444444',
- offline: '#cccccc'
+ light: {
+ online: '#444444',
+ offline: '#cccccc'
+ },
+ dark: {
+ // TODO: theme
+ online: '#444444',
+ offline: '#cccccc'
+ }
},
- dark: {
- // TODO: theme
- online: '#444444',
- offline: '#cccccc'
- }
- };
+ // and here are the stroke colors of the glyph, per theme
+ dUseTheme = {
+ light: 'white',
+ dark: 'black'
+ };
angular.module('ovTopo2')
.factory('Topo2NodeModel', [
@@ -258,7 +263,7 @@
// Icon
glyph = is.addDeviceIcon(node, glyphId, devIconDim);
glyph.attr(this.iconBox(devIconDim, 0));
- glyph.style('fill', 'white');
+ glyph.style('fill', dUseTheme[ts.theme()]);
node.attr('transform',
sus.translate(-halfDevIcon, -halfDevIcon));