gecko-dev/themes/modern/global/globalBindings.xml

273 строки
11 KiB
XML
Исходник Обычный вид История

<?xml version="1.0"?>
<bindings id="globalBindings"
xmlns="http://www.mozilla.org/xbl"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- :::/ toolbar \ ::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<binding id="toolbargrippy" extends="chrome://global/content/bindings/toolbar.xml#toolbargrippy">
<content>
<xul:spring class="toolbargrippy-top"/>
<xul:spring class="toolbargrippy-mid" flex="1"/>
<xul:spring class="toolbargrippy-btm"/>
</content>
</binding>
<binding id="toolbargrippy-collapsed" extends="chrome://global/content/bindings/toolbar.xml#toolbargrippy">
<content>
<xul:spring class="toolbargrippy-collapsed-left"/>
<xul:spring class="toolbargrippy-collapsed-right" flex="1"/>
</content>
</binding>
<!-- :::/ widgets \ ::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<binding id="button" extends="chrome://global/content/bindings/button.xml#button-base">
<content>
<xul:vbox class="button-box-left" inherits="default,disabled">
<xul:spring class="button-left-top" inherits="default,disabled"/>
<xul:spring class="button-left-mid" inherits="default,disabled" flex="1"/>
<xul:spring class="button-left-btm" inherits="default,disabled"/>
</xul:vbox>
<xul:stack class="button-stack" flex="1">
<xul:vbox class="button-box-mid" inherits="default,disabled">
<xul:spring class="button-mid-top" inherits="default,disabled"/>
<xul:spring class="button-mid-mid" inherits="default,disabled" flex="1"/>
<xul:spring class="button-mid-btm" inherits="default,disabled"/>
</xul:vbox>
<xul:hbox class="button-text-box" align="center" pack="center">
<xul:image class="button-icon-mid" inherits="src"/>
<xul:text class="button-text-mid" inherits="default,value=label,crop,accesskey"/>
<children/>
</xul:hbox>
</xul:stack>
<xul:vbox class="button-box-right" inherits="default,disabled">
<xul:spring class="button-right-top" inherits="default,disabled"/>
<xul:spring class="button-right-mid" inherits="default,disabled" flex="1"/>
<xul:spring class="button-right-btm" inherits="default,disabled"/>
</xul:vbox>
<children includes="menupopup"/>
</content>
<resources>
<image src="chrome://global/skin/button/btn-act-lft-top.gif"/>
<image src="chrome://global/skin/button/btn-act-lft-mid.gif"/>
<image src="chrome://global/skin/button/btn-act-lft-btm.gif"/>
<image src="chrome://global/skin/button/btn-act-mid-top.gif"/>
<image src="chrome://global/skin/button/btn-act-mid-btm.gif"/>
<image src="chrome://global/skin/button/btn-act-rit-top.gif"/>
<image src="chrome://global/skin/button/btn-act-rit-mid.gif"/>
<image src="chrome://global/skin/button/btn-act-rit-btm.gif"/>
<image src="chrome://global/skin/button/btn-def-act-lft-top.gif"/>
<image src="chrome://global/skin/button/btn-def-act-lft-mid.gif"/>
<image src="chrome://global/skin/button/btn-def-act-lft-btm.gif"/>
<image src="chrome://global/skin/button/btn-def-act-mid-top.gif"/>
<image src="chrome://global/skin/button/btn-def-act-mid-btm.gif"/>
<image src="chrome://global/skin/button/btn-def-act-rit-top.gif"/>
<image src="chrome://global/skin/button/btn-def-act-rit-mid.gif"/>
<image src="chrome://global/skin/button/btn-def-act-rit-btm.gif"/>
</resources>
</binding>
<binding id="menulist" extends="chrome://global/content/bindings/menulist.xml#menulist">
<content>
<xul:vbox class="menulist-box-left" inherits="disabled">
<xul:spring class="menulist-left-top" inherits="disabled"/>
<xul:spring class="menulist-left-mid" inherits="disabled" flex="1"/>
<xul:spring class="menulist-left-btm" inherits="disabled"/>
</xul:vbox>
<xul:stack class="menulist-stack" flex="1">
<xul:vbox class="menulist-box-mid" inherits="disabled">
<xul:spring class="menulist-mid-top" inherits="disabled"/>
<xul:spring class="menulist-mid-mid" inherits="disabled" flex="1"/>
<xul:spring class="menulist-mid-btm" inherits="disabled"/>
</xul:vbox>
<xul:hbox class="menulist-text-box" align="center">
<xul:image class="menulist-icon-mid" inherits="src"/>
<xul:text class="menulist-text-mid" inherits="value=label,crop,accesskey" crop="right" flex="1"/>
</xul:hbox>
</xul:stack>
<xul:vbox class="menulist-box-right" inherits="disabled">
<xul:stack flex="1">
<xul:vbox>
<xul:spring class="menulist-right-top" inherits="disabled"/>
<xul:spring class="menulist-right-mid" inherits="disabled" flex="1"/>
<xul:spring class="menulist-right-btm" inherits="disabled"/>
</xul:vbox>
<xul:hbox class="menulist-dropmarker-box" align="center" pack="center">
<xul:image class="menulist-dropmarker" inherits="disabled"/>
</xul:hbox>
</xul:stack>
</xul:vbox>
<children includes="menupopup"/>
</content>
</binding>
<binding id="menulist-editable" extends="chrome://global/content/bindings/menulist.xml#menulist-editable">
<content>
<xul:hbox flex="1" class="menulist-editable-box">
<xul:image class="menu-icon" inherits="src"/>
<html:input type="text" class="menulist-editable-text" flex="1" inherits="value=label,disabled"/>
<xul:hbox class="menu-dropmarker-box" align="center">
<xul:image class="menu-dropmarker"/>
</xul:hbox>
</xul:hbox>
<children includes="menupopup"/>
</content>
</binding>
<binding id="menulist-compact" extends="chrome://global/content/bindings/menulist.xml#menulist">
<content flex="1">
<xul:hbox class="menulist-compact-internal-box" flex="1" align="center">
<xul:image class="menulist-compact-dropmarker" inherits="disabled"/>
<xul:spring flex="1"/>
<xul:text class="menulist-compact-text" inherits="value=label,accesskey,crop,disabled" crop="right"/>
</xul:hbox>
<children includes="menupopup"/>
</content>
</binding>
<binding id="menubutton-single" extends="chrome://global/content/bindings/menubutton.xml#menubutton-base">
<content>
<xul:hbox class="menubutton-single-internal-box" flex="1">
<xul:button class="menubutton-single-button" flex="1" inherits="open,label,disabled">
<xul:image class="menubutton-single-dropmarker" inherits="open,disabled"/>
</xul:button>
</xul:hbox>
<children includes="menupopup"/>
</content>
</binding>
<binding id="progressmeter"
extends="chrome://global/content/bindings/progressmeter.xml#progressmeter">
<content>
<xul:progressbar class="progressmeter-progressbar" inherits="value,mode,statusbar" flex="1">
<xul:spring class="progress-bar" inherits="mode"/>
<xul:spring class="progress-remainder" inherits="mode"/>
</xul:progressbar>
</content>
</binding>
<binding id="splitter"
extends="chrome://global/content/bindings/splitter.xml#splitter">
<content>
<xul:hbox class="splitter-internal-box" flex="1" align="center" pack="center">
<children/>
</xul:hbox>
</content>
</binding>
<binding id="treecell-header"
extends="chrome://global/content/bindings/tree.xml#treecell-header">
<content>
<xul:vbox class="treecell-header-box" flex="1" align="center">
<xul:image class="tree-header-image" inherits="src"/>
<xul:text class="tree-header-text" inherits="crop,value=label" flex="1" crop="right"/>
<xul:image class="tree-header-sortdirection"/>
</xul:vbox>
</content>
</binding>
<!-- :::/ scrollbar \ ::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<binding id="thumb-vertical"
extends="chrome://global/content/bindings/scrollbar.xml#thumb">
<content>
<xul:vbox flex="1">
<xul:spring class="thumb-vert-spring-top"/>
<xul:vbox flex="1" class="thumb-vert-box-middle">
<xul:spring flex="1"/>
<xul:spring class="thumb-vert-grippy"/>
<xul:spring flex="1"/>
</xul:vbox>
<xul:spring class="thumb-vert-spring-bottom"/>
</xul:vbox>
</content>
</binding>
<binding id="thumb-horizontal"
extends="chrome://global/content/bindings/scrollbar.xml#thumb">
<content>
<xul:spring class="thumb-horz-spring-left"/>
<xul:hbox flex="1" class="thumb-horz-box-middle">
<xul:spring flex="1"/>
<xul:spring class="thumb-horz-grippy"/>
<xul:spring flex="1"/>
</xul:hbox>
<xul:spring class="thumb-horz-spring-right"/>
</content>
</binding>
<!-- :::/ mini scrollbar \ ::::::::::::::::::::::::::::::::::::::::::::::::: -->
<binding id="iframe-miniscroll" extends="chrome://global/content/bindings/general.xml#iframe">
<content usechromesheets="chrome://global/skin/scrollbars-mini.css"/>
</binding>
<binding id="browser-miniscroll" extends="chrome://global/content/bindings/browser.xml#browser">
<content usechromesheets="chrome://global/skin/scrollbars-mini.css"/>
</binding>
<binding id="scrollbar-mini" extends="chrome://global/content/bindings/scrollbar.xml#scrollbar">
<resources>
<stylesheet src="chrome://global/skin/scrollbars-mini.css"/>
</resources>
</binding>
<!-- :::/ tab control \ ::::::::::::::::::::::::::::::::::::::::::::::::: -->
<binding id="tab" extends="chrome://global/content/bindings/tabbox.xml#tab">
<content orient="horizontal">
<xul:vbox class="tab-left">
<xul:spring class="tab-left-top" inherits="selected"/>
<xul:spring class="tab-left-mid" inherits="selected" flex="1"/>
<xul:spring class="tab-left-btm" inherits="selected"/>
</xul:vbox>
<xul:vbox flex="1" class="tab-mid" inherits="selected">
<xul:spring class="tab-mid-top" inherits="selected"/>
<xul:hbox class="tab-mid-mid" align="center" pack="center" flex="1">
<xul:image class="tab-icon"/>
<xul:text flex="1" inherits="value=label,crop,accesskey" crop="right" class="tab-text"/>
</xul:hbox>
<xul:spring class="tab-mid-btm" inherits="selected"/>
</xul:vbox>
<xul:vbox class="tab-right">
<xul:spring class="tab-right-top" inherits="selected"/>
<xul:spring class="tab-right-mid" inherits="selected" flex="1"/>
<xul:spring class="tab-right-btm" inherits="selected"/>
</xul:vbox>
</content>
</binding>
<binding id="tabs" extends="chrome://global/content/bindings/tabbox.xml#tabs">
<content>
<xul:spring class="tabs-left-cap"/>
<xul:spring class="tabs-left"/>
<xul:hbox class="tabs-mid">
<children/>
</xul:hbox>
<xul:spring class="tabs-right" flex="1"/>
<xul:spring class="tabs-right-cap"/>
</content>
</binding>
<binding id="row-iconic" extends="xul:row">
<content>
<xul:hbox align="center">
<xul:image class="row-iconic-icon"/>
<children/>
</xul:hbox>
</content>
</binding>
</bindings>