<?xml version="1.0"?>

<bindings xmlns="http://www.mozilla.org/xbl"
          xmlns:dactyl="http://vimperator.org/namespaces/liberator"
          xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
          xmlns:xbl="http://www.mozilla.org/xbl"
          xmlns:html="http://www.w3.org/1999/xhtml">

    <binding id="frame" inheritstyle="false">
        <content>
            <children/>
            <html:div dactyl:highlight="FrameIndicator"/>
        </content>
    </binding>

    <binding id="hints" inheritstyle="false" bindToUntrustedContent="true">
        <content>
            <html:div anonid="hints"/>
        </content>
    </binding>

    <binding id="compitem-td">
        <!-- No white space. The table is white-space: pre; :( -->
        <content><html:span class="td-strut"/><html:span class="td-span"><children/></html:span></content>
    </binding>

    <binding id="tab" display="xul:hbox"
             extends="chrome://browser/content/tabbrowser.xml#tabbrowser-tab">
        <implementation>
            <property name="dactylOrdinal" onget="parseInt(this.getAttribute('dactylOrdinal'))"
                                           onset="this.setAttribute('dactylOrdinal', val)"/>
        </implementation>
        <content closetabtext="Close Tab">
            <xul:stack class="tab-icon dactyl-tab-stack">
                <xul:image xbl:inherits="validate,src=image" role="presentation" class="tab-icon-image"/>
                <xul:vbox>
                    <xul:spring flex="1"/>
                    <xul:label xbl:inherits="value=dactylOrdinal" dactyl:highlight="TabIconNumber"/>
                    <xul:spring flex="1"/>
                </xul:vbox>
            </xul:stack>
            <xul:label xbl:inherits="value=dactylOrdinal" dactyl:highlight="TabNumber"/>
            <xul:label xbl:inherits="value=label,crop,accesskey"
                       flex="1" class="tab-text" role="presentation"/>
            <xul:toolbarbutton anonid="close-button" tabindex="-1"
                               class="tab-close-button"/>
        </content>
    </binding>

    <binding id="tab-mac"
             extends="chrome://browser/content/tabbrowser.xml#tabbrowser-tab">
        <implementation>
            <property name="dactylOrdinal" onget="parseInt(this.getAttribute('dactylOrdinal'))"
                                           onset="this.setAttribute('dactylOrdinal', val)"/>
        </implementation>
        <content chromedir="ltr" closetabtext="Close Tab">
            <xul:hbox class="tab-image-left" xbl:inherits="selected"/>
            <xul:hbox class="tab-image-middle" flex="1" align="center" xbl:inherits="selected">
                <xul:stack class="tab-icon dactyl-tab-stack">
                    <xul:image xbl:inherits="validate,src=image" class="tab-icon-image"/>
                    <xul:image class="tab-extra-status"/>
                    <xul:vbox>
                        <xul:spring flex="1"/>
                        <xul:label xbl:inherits="value=dactylOrdinal" align="center" highlight="TabIconNumber" class="dactyl-tab-icon-number"/>
                        <xul:spring flex="1"/>
                    </xul:vbox>
                </xul:stack>
                <xul:stack class="tab-text-stack">
                    <xul:label xbl:inherits="value=dactylOrdinal" class="tab-text" dactyl:highlight="TabNumber"/>
                </xul:stack>
                <xul:stack class="tab-text-stack" flex="1">
                    <xul:label flex="1" xbl:inherits="value=label,crop,accesskey" crop="right" class="tab-text"/>
                </xul:stack>
            </xul:hbox>
            <xul:toolbarbutton anonid="close-button" tabindex="-1" class="tab-close-button"/>
            <xul:hbox class="tab-image-right" xbl:inherits="selected"/>
        </content>
    </binding>
</bindings>

<!-- vim:se ft=xbl sw=4 sts=4 tw=0 et: -->
