summaryrefslogtreecommitdiff
path: root/common/content/bindings.xml
blob: d2fd0254ddaaed1f0a119e20417690b0e13417fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0"?>

<bindings xmlns="http://www.mozilla.org/xbl"
          xmlns:liberator="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">
        <content>
            <html:div liberator:highlight="FrameIndicator"/>
            <children/>
        </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://global/content/bindings/tabbox.xml#tab">
        <content chromedir="ltr" closetabtext="Close Tab">
            <xul:stack class="liberator-tab-stack">
                <xul:image xbl:inherits="validate,src=image" class="tab-icon-image" liberator:highlight="TabIcon"/>
                <xul:vbox>
                    <xul:spring flex="1"/>
                    <xul:label xbl:inherits="value=ordinal" liberator:highlight="TabIconNumber"/>
                    <xul:spring flex="1"/>
                </xul:vbox>
            </xul:stack>
            <xul:label xbl:inherits="value=ordinal" liberator:highlight="TabNumber"/>
            <xul:label flex="1" xbl:inherits="value=label,crop,accesskey" class="tab-text" liberator:highlight="TabText"/>
            <xul:toolbarbutton anonid="close-button" tabindex="-1" class="tab-close-button" liberator:highlight="TabClose"/>
        </content>
    </binding>
    <binding id="tab-mac"
             extends="chrome://browser/content/tabbrowser.xml#tabbrowser-tab">
        <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 liberator-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=ordinal" liberator:highlight="TabIconNumber"/>
                        <xul:spring flex="1"/>
                    </xul:vbox>
                </xul:stack>
                <xul:stack class="tab-text-stack">
                    <xul:label xbl:inherits="value=ordinal" class="tab-text" liberator: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: -->