61 lines
No EOL
2.4 KiB
XML
61 lines
No EOL
2.4 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
***** BEGIN LICENSE BLOCK *****
|
|
|
|
Copyright © 2009 Center for History and New Media
|
|
George Mason University, Fairfax, Virginia, USA
|
|
http://zotero.org
|
|
|
|
This file is part of Zotero.
|
|
|
|
Zotero is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
Zotero is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with Zotero. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
***** END LICENSE BLOCK *****
|
|
-->
|
|
|
|
<bindings xmlns="http://www.mozilla.org/xbl"
|
|
xmlns:xbl="http://www.mozilla.org/xbl" xmlns:svg="http://www.w3.org/2000/svg"
|
|
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
<binding id="zotero-tb-button" display="xul:button"
|
|
extends="chrome://global/content/bindings/button.xml#button-base">
|
|
<resources>
|
|
<stylesheet src="chrome://global/skin/toolbarbutton.css"/>
|
|
</resources>
|
|
<implementation>
|
|
<constructor>
|
|
<![CDATA[
|
|
var imageURL = document.defaultView.getComputedStyle(this, null).listStyleImage;
|
|
if(imageURL.substr(0, 4) == "url(") {
|
|
imageURL = imageURL.substring(4, imageURL.length-1);
|
|
} else if(imageURL.substr(0, 5) == "url('" || imageURL.substr(0, 5) == "url(\"") {
|
|
imageURL = imageURL.substring(5, imageURL.length-2);
|
|
}
|
|
document.getAnonymousElementByAttribute(this, "anonid", "tb-image")
|
|
.setAttributeNS("http://www.w3.org/1999/xlink", "href", imageURL);
|
|
]]>
|
|
</constructor>
|
|
</implementation>
|
|
<content>
|
|
<xul:stack>
|
|
<svg:svg class="zotero-tb-glow" xmlns="http://www.w3.org/2000/svg" width="18" height="24" version="1.1">
|
|
<svg:filter id="DropShadow">
|
|
<svg:feGaussianBlur in="SourceAlpha" stdDeviation="1" result="MyBlur"/>
|
|
</svg:filter>
|
|
<svg:image anonid="tb-image" filter="url(#DropShadow)" x="1" y="4" width="16" height="16"/>
|
|
</svg:svg>
|
|
<xul:image xbl:inherits="src=image" style="padding: 4px 1px 4px 1px;"/>
|
|
</xul:stack>
|
|
</content>
|
|
</binding>
|
|
</bindings> |