Updated topo toolbar to use mojo glyphs and give it a cleaner look.
- Changed color scheme / hover behavior
- Differentiate between regular buttons and toggle buttons (visually)
- (Added temp. placeholders for 'endstation' and 'relatedIntents' glyphs)
Change-Id: I0338b076fe71e58a274542360b2b077c93dd867d
diff --git a/web/gui/src/main/webapp/app/view/topo/topoToolbar.js b/web/gui/src/main/webapp/app/view/topo/topoToolbar.js
index 136e7d8..6d07da7 100644
--- a/web/gui/src/main/webapp/app/view/topo/topoToolbar.js
+++ b/web/gui/src/main/webapp/app/view/topo/topoToolbar.js
@@ -42,24 +42,22 @@
// key to button mapping data
var k2b = {
- O: { id: 'summary-tog', gid: 'summary', isel: true},
- I: { id: 'instance-tog', gid: 'uiAttached', isel: true },
- D: { id: 'details-tog', gid: 'details', isel: true },
- H: { id: 'hosts-tog', gid: 'endstation', isel: false },
- M: { id: 'offline-tog', gid: 'switch', isel: true },
- P: { id: 'ports-tog', gid: 'ports', isel: true },
- B: { id: 'bkgrnd-tog', gid: 'map', isel: false },
- G: { id: 'bkgrnd-sel', gid: 'filters' },
- S: { id: 'sprite-tog', gid: 'cloud', isel: false },
+ O: { id: 'summary-tog', gid: 'm_summary', isel: true},
+ I: { id: 'instance-tog', gid: 'm_uiAttached', isel: true },
+ D: { id: 'details-tog', gid: 'm_details', isel: true },
+ H: { id: 'hosts-tog', gid: 'm_endstation', isel: false },
+ M: { id: 'offline-tog', gid: 'm_switch', isel: true },
+ P: { id: 'ports-tog', gid: 'm_ports', isel: true },
+ B: { id: 'bkgrnd-tog', gid: 'm_map', isel: false },
+ G: { id: 'bkgrnd-sel', gid: 'm_selectMap' },
+ S: { id: 'sprite-tog', gid: 'm_cloud', isel: false },
- // TODO: add reset-node-locations button to toolbar
- //X: { id: 'nodelock-tog', gid: 'lock', isel: false },
- Z: { id: 'oblique-tog', gid: 'oblique', isel: false },
- N: { id: 'filters-btn', gid: 'filters' },
- L: { id: 'cycleLabels-btn', gid: 'cycleLabels' },
- R: { id: 'resetZoom-btn', gid: 'resetZoom' },
+ Z: { id: 'oblique-tog', gid: 'm_oblique', isel: false },
+ N: { id: 'filters-btn', gid: 'm_filters' },
+ L: { id: 'cycleLabels-btn', gid: 'm_cycleLabels' },
+ R: { id: 'resetZoom-btn', gid: 'm_resetZoom' },
- E: { id: 'eqMaster-btn', gid: 'eqMaster' }
+ E: { id: 'eqMaster-btn', gid: 'm_eqMaster' }
};
var prohibited = [
@@ -171,7 +169,7 @@
// generate radio button set for overlays; start with 'none'
var rset = [{
- gid: 'unknown',
+ gid: 'm_unknown',
tooltip: 'No Overlay',
cb: function () {
tov.tbSelection(null, switchOverlayActions);