Bug 967168 - DevTools Addon icons should not be inverted on light theme;r=jwalker
This commit is contained in:
@@ -554,7 +554,7 @@ Toolbox.prototype = {
|
||||
_buildPickerButton: function() {
|
||||
this._pickerButton = this.doc.createElement("toolbarbutton");
|
||||
this._pickerButton.id = "command-button-pick";
|
||||
this._pickerButton.className = "command-button";
|
||||
this._pickerButton.className = "command-button command-button-invertable";
|
||||
this._pickerButton.setAttribute("tooltiptext", toolboxStrings("pickButton.tooltip"));
|
||||
|
||||
let container = this.doc.querySelector("#toolbox-buttons");
|
||||
@@ -588,11 +588,14 @@ Toolbox.prototype = {
|
||||
// The radio element is not being used in the conventional way, thus
|
||||
// the devtools-tab class replaces the radio XBL binding with its base
|
||||
// binding (the control-item binding).
|
||||
radio.className = "toolbox-tab devtools-tab";
|
||||
radio.className = "devtools-tab";
|
||||
radio.id = "toolbox-tab-" + id;
|
||||
radio.setAttribute("toolid", id);
|
||||
radio.setAttribute("ordinal", toolDefinition.ordinal);
|
||||
radio.setAttribute("tooltiptext", toolDefinition.tooltip);
|
||||
if (toolDefinition.invertIconForLightTheme) {
|
||||
radio.setAttribute("icon-invertable", "true");
|
||||
}
|
||||
|
||||
radio.addEventListener("command", () => {
|
||||
this.selectTool(id);
|
||||
|
||||
Reference in New Issue
Block a user