Bug 994280 - Improve badged button for Australis. r=enn

- moved badged button XBL from browser to toolkit
 - made the XBL applied by CSS class instead of button's type
 - added australis look & feel to badged button
 - fixed OS X badge position
This commit is contained in:
2014-10-02 11:52:50 +01:00
parent 2268aa2fa9
commit 7a5279c09e
12 changed files with 158 additions and 159 deletions

View File

@@ -915,7 +915,7 @@ const CustomizableWidgets = [
node.setAttribute("id", this.id);
node.classList.add("toolbarbutton-1");
node.classList.add("chromeclass-toolbar-additional");
node.setAttribute("type", "badged");
node.classList.add("badged-button");
node.setAttribute("label", CustomizableUI.getLocalizedProperty(this, "label"));
node.setAttribute("tooltiptext", CustomizableUI.getLocalizedProperty(this, "tooltiptext"));
node.setAttribute("removable", "true");