]> git.donarmstrong.com Git - dactyl.git/blob - common/content/bindings.xml
Import 1.0rc1 supporting Firefox up to 11.*
[dactyl.git] / common / content / bindings.xml
1 <?xml version="1.0"?>
2
3 <bindings xmlns="http://www.mozilla.org/xbl"
4           xmlns:dactyl="http://vimperator.org/namespaces/liberator"
5           xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
6           xmlns:xbl="http://www.mozilla.org/xbl"
7           xmlns:html="http://www.w3.org/1999/xhtml">
8
9     <binding id="frame" inheritstyle="false">
10         <content>
11             <children/>
12             <html:div dactyl:highlight="FrameIndicator"/>
13         </content>
14     </binding>
15
16     <binding id="hints" inheritstyle="false">
17         <content>
18             <html:div anonid="hints"/>
19         </content>
20     </binding>
21
22     <binding id="compitem-td">
23         <!-- No white space. The table is white-space: pre; :( -->
24         <content><html:span class="td-strut"/><html:span class="td-span"><children/></html:span></content>
25     </binding>
26
27     <binding id="tab" display="xul:hbox"
28              extends="chrome://browser/content/tabbrowser.xml#tabbrowser-tab">
29         <implementation>
30             <property name="dactylOrdinal" onget="parseInt(this.getAttribute('dactylOrdinal'))"
31                                            onset="this.setAttribute('dactylOrdinal', val)"/>
32         </implementation>
33         <content closetabtext="Close Tab">
34             <xul:stack class="tab-icon dactyl-tab-stack">
35                 <xul:image xbl:inherits="validate,src=image" role="presentation" class="tab-icon-image"/>
36                 <xul:vbox>
37                     <xul:spring flex="1"/>
38                     <xul:label xbl:inherits="value=dactylOrdinal" dactyl:highlight="TabIconNumber"/>
39                     <xul:spring flex="1"/>
40                 </xul:vbox>
41             </xul:stack>
42             <xul:label xbl:inherits="value=dactylOrdinal" dactyl:highlight="TabNumber"/>
43             <xul:label xbl:inherits="value=label,crop,accesskey"
44                        flex="1" class="tab-text" role="presentation"/>
45             <xul:toolbarbutton anonid="close-button" tabindex="-1"
46                                class="tab-close-button"/>
47         </content>
48     </binding>
49
50     <binding id="tab-mac"
51              extends="chrome://browser/content/tabbrowser.xml#tabbrowser-tab">
52         <implementation>
53             <property name="dactylOrdinal" onget="parseInt(this.getAttribute('dactylOrdinal'))"
54                                            onset="this.setAttribute('dactylOrdinal', val)"/>
55         </implementation>
56         <content chromedir="ltr" closetabtext="Close Tab">
57             <xul:hbox class="tab-image-left" xbl:inherits="selected"/>
58             <xul:hbox class="tab-image-middle" flex="1" align="center" xbl:inherits="selected">
59                 <xul:stack class="tab-icon dactyl-tab-stack">
60                     <xul:image xbl:inherits="validate,src=image" class="tab-icon-image"/>
61                     <xul:image class="tab-extra-status"/>
62                     <xul:vbox>
63                         <xul:spring flex="1"/>
64                         <xul:label xbl:inherits="value=dactylOrdinal" align="center" highlight="TabIconNumber" class="dactyl-tab-icon-number"/>
65                         <xul:spring flex="1"/>
66                     </xul:vbox>
67                 </xul:stack>
68                 <xul:stack class="tab-text-stack">
69                     <xul:label xbl:inherits="value=dactylOrdinal" class="tab-text" dactyl:highlight="TabNumber"/>
70                 </xul:stack>
71                 <xul:stack class="tab-text-stack" flex="1">
72                     <xul:label flex="1" xbl:inherits="value=label,crop,accesskey" crop="right" class="tab-text"/>
73                 </xul:stack>
74             </xul:hbox>
75             <xul:toolbarbutton anonid="close-button" tabindex="-1" class="tab-close-button"/>
76             <xul:hbox class="tab-image-right" xbl:inherits="selected"/>
77         </content>
78     </binding>
79 </bindings>
80
81 <!-- vim:se ft=xbl sw=4 sts=4 tw=0 et: -->