Index: lib/inspectorObserver.js |
=================================================================== |
--- a/lib/inspectorObserver.js |
+++ b/lib/inspectorObserver.js |
@@ -40,7 +40,7 @@ |
inspectorReady: function(eventName, toolbox, panel) |
{ |
let panelWindow = panel.panelWin; |
- let inspectBtn = panelWindow.document.getElementById("inspector-inspect-toolbutton"); |
+ let inspectBtn = panelWindow.document.getElementById("inspector-breadcrumbs"); |
if (!inspectBtn) |
return; |
@@ -58,7 +58,12 @@ |
panelWindow.openDialog("chrome://elemhidehelper/content/composer.xul", "_blank", |
"chrome,centerscreen,resizable,dialog=no", panel.selection.node); |
}, false); |
- inspectBtn.parentNode.insertBefore(button, inspectBtn.nextSibling); |
+ |
+ //Override button style for light DevTools theme |
+ let style = panelWindow.document.createProcessingInstruction("xml-stylesheet", 'class="elemhidehelper-node" href="chrome://elemhidehelper/skin/devToolsOverlay.css" type="text/css"'); |
Wladimir Palant
2014/04/15 13:38:19
Nit: class attribute is unnecessary if we aren't g
saroyanm
2014/04/15 13:54:43
Done.
|
+ panelWindow.document.insertBefore(style, panelWindow.document.firstChild); |
+ |
+ inspectBtn.parentNode.insertBefore(button, inspectBtn); |
} |
}; |