summaryrefslogtreecommitdiff
path: root/common/content/bindings.xml
blob: 800230de0d51cb2c7bfcbe10088e0716a81e0c18 (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
63
64
65
66
67
68
69
70
71
72
73
<?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">
        <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">
        <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">
        <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: -->