mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-07 20:55:45 +01:00
Use separate tab bindings for OS-X. Someone please test this.
This commit is contained in:
@@ -32,6 +32,33 @@
|
|||||||
<xul:toolbarbutton anonid="close-button" tabindex="-1" class="tab-close-button" liberator:highlight="TabClose"/>
|
<xul:toolbarbutton anonid="close-button" tabindex="-1" class="tab-close-button" liberator:highlight="TabClose"/>
|
||||||
</content>
|
</content>
|
||||||
</binding>
|
</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-shadow" liberator:highlight="TabNumber"/>
|
||||||
|
<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-shadow"/>
|
||||||
|
<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>
|
</bindings>
|
||||||
|
|
||||||
<!-- vim:se ft=xbl sw=4 sts=4 tw=0 et: -->
|
<!-- vim:se ft=xbl sw=4 sts=4 tw=0 et: -->
|
||||||
|
|||||||
@@ -216,9 +216,10 @@ function Tabs() //{{{
|
|||||||
},
|
},
|
||||||
validator: Option.validateCompleter
|
validator: Option.validateCompleter
|
||||||
});
|
});
|
||||||
|
let fragment = liberator.has("MacUnix") ? "tab-mac" : "tab";
|
||||||
// TODO: Add option, or only apply when go~=[nN]
|
// TODO: Add option, or only apply when go~=[nN]
|
||||||
styles.addSheet("tab-binding", "chrome://browser/content/browser.xul",
|
styles.addSheet("tab-binding", "chrome://browser/content/browser.xul",
|
||||||
".tabbrowser-tab { -moz-binding: url(chrome://liberator/content/bindings.xml#tab) !important; }", true);
|
".tabbrowser-tab { -moz-binding: url(chrome://liberator/content/bindings.xml#" + fragment + ") !important; }", true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user