diff --git a/content/treestyletab/res/tabFx2Compatible.css b/content/treestyletab/res/tabFx2Compatible.css index 7f377909..1cdb1dd9 100644 --- a/content/treestyletab/res/tabFx2Compatible.css +++ b/content/treestyletab/res/tabFx2Compatible.css @@ -14,93 +14,56 @@ @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); -:root[tabFx2Compatible="8"] +:root[tabFx2Compatible="9"] .tabbrowser-tab { -moz-binding: url(tabFx2Compatible.xml#tabbrowser-tab-3) !important; } -:root[tabFx2Compatible="8"][tabFx2Compatible-flags~="separate-tabContextMenu"] +:root[tabFx2Compatible="9"][tabFx2Compatible-flags~="separate-tabContextMenu"] .tabbrowser-tab { -moz-binding: url(tabFx2Compatible.xml#tabbrowser-tab-4) !important; } -:root[tabFx2Compatible="8"]:not([tabFx2Compatible-flags~="png-throbber"]) - .tabbrowser-tab[busy] > hbox > stack > .tab-icon-image { +:root[tabFx2Compatible="9"]:not([tabFx2Compatible-flags~="png-throbber"]) + .tab-icon-image[busy] { list-style-image: url("chrome://global/skin/throbber/Throbber-small.gif") !important; opacity: 0.6; } -:root[tabFx2Compatible="8"][tabFx2Compatible-flags~="png-throbber"] - .tabbrowser-tab[busy] > hbox > stack > .tab-icon-image { +:root[tabFx2Compatible="9"][tabFx2Compatible-flags~="png-throbber"] + .tab-icon-image[busy] { list-style-image: url("chrome://global/skin/icons/loading_16.png") !important; } -:root[tabFx2Compatible="8"][tabFx2Compatible-flags~="mac"][tabFx2Compatible-flags~="png-throbber"] - .tabbrowser-tab .tab-icon-image { +:root[tabFx2Compatible="9"][tabFx2Compatible-flags~="mac"][tabFx2Compatible-flags~="png-throbber"] + .tab-icon-image { list-style-image: url("chrome://global/skin/tree/item.png"); } -:root[tabFx2Compatible="8"][tabFx2Compatible-flags~="mac"] - .tabbrowser-tab:not(:hover):not([selected="true"]) .tab-icon-image { +:root[tabFx2Compatible="9"][tabFx2Compatible-flags~="mac"] + .tabbrowser-tab:not(:hover) .tab-icon-image:not([selected="true"]) { opacity: 0.6; } -:root[tabFx2Compatible="8"][tabFx2Compatible-flags~="pie"] - .tabbrowser-tab[busy] > hbox > stack > .tab-icon-image { +:root[tabFx2Compatible="9"][tabFx2Compatible-flags~="pie"] + .tab-icon-image[busy] { list-style-image: url("chrome://browser/skin/tabbrowser/progress.png") !important; -moz-image-region: rect(0, 16px, 16px, 0); } -:root[tabFx2Compatible="8"][tabFx2Compatible-flags~="pie"] - .tabbrowser-tab[busy][stalled] > hbox > stack > .tab-icon-image { +:root[tabFx2Compatible="9"][tabFx2Compatible-flags~="pie"] + .tab-icon-image[busy][stalled] { list-style-image: url("chrome://browser/skin/tabbrowser/progress-pulsing.png") !important; } -:root[tabFx2Compatible="8"][tabFx2Compatible-flags~="pie"] - .tabbrowser-tab[busy][progress="1"] > hbox > stack > .tab-icon-image { - -moz-image-region: rect(0, 32px, 16px, 16px); -} -:root[tabFx2Compatible="8"][tabFx2Compatible-flags~="pie"] - .tabbrowser-tab[busy][progress="2"] > hbox > stack > .tab-icon-image { - -moz-image-region: rect(0, 48px, 16px, 32px); -} -:root[tabFx2Compatible="8"][tabFx2Compatible-flags~="pie"] - .tabbrowser-tab[busy][progress="3"] > hbox > stack > .tab-icon-image { - -moz-image-region: rect(0, 64px, 16px, 48px); -} -:root[tabFx2Compatible="8"][tabFx2Compatible-flags~="pie"] - .tabbrowser-tab[busy][progress="4"] > hbox > stack > .tab-icon-image { - -moz-image-region: rect(0, 80px, 16px, 64px); -} -:root[tabFx2Compatible="8"][tabFx2Compatible-flags~="pie"] - .tabbrowser-tab[busy][progress="5"] > hbox > stack > .tab-icon-image { - -moz-image-region: rect(0, 96px, 16px, 80px); -} -:root[tabFx2Compatible="8"][tabFx2Compatible-flags~="pie"] - .tabbrowser-tab[busy][progress="6"] > hbox > stack > .tab-icon-image { - -moz-image-region: rect(0, 112px, 16px, 96px); -} -:root[tabFx2Compatible="8"][tabFx2Compatible-flags~="pie"] - .tabbrowser-tab[busy][progress="7"] > hbox > stack > .tab-icon-image { - -moz-image-region: rect(0, 128px, 16px, 112px); -} -:root[tabFx2Compatible="8"][tabFx2Compatible-flags~="pie"] - .tabbrowser-tab[busy][progress="8"] > hbox > stack > .tab-icon-image { - -moz-image-region: rect(0, 144px, 16px, 128px); -} -:root[tabFx2Compatible="8"] - .tabbrowser-tab[selected="true"]:focus > hbox > .tab-text { +:root[tabFx2Compatible="9"] + .tabbrowser-tab:focus > .tab-stack { border: 1px dotted -moz-DialogText; } -:root[tabFx2Compatible="8"] - .tabbrowser-tab[pinned="true"] .tab-text { - visibility: collapse !important; -} - -:root[tabFx2Compatible="8"] - .tabbrowser-tab[pinned="true"] > .tab-image-left, -:root[tabFx2Compatible="8"] - .tabbrowser-tab[pinned="true"] > .tab-image-right { +:root[tabFx2Compatible="9"] + .tab-image-left[pinned="true"], +:root[tabFx2Compatible="9"] + .tab-image-right[pinned="true"] { display: none !important; } diff --git a/content/treestyletab/res/tabFx2Compatible.xml b/content/treestyletab/res/tabFx2Compatible.xml index cc70aa6c..5c0bc9bb 100644 --- a/content/treestyletab/res/tabFx2Compatible.xml +++ b/content/treestyletab/res/tabFx2Compatible.xml @@ -29,16 +29,34 @@ extends="chrome://browser/content/tabbrowser.xml#tabbrowser-tab"> - - - - - - - - - - + + + + + + + + + + + + + + @@ -46,16 +64,34 @@ extends="chrome://browser/content/tabbrowser.xml#tabbrowser-tab"> - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/content/treestyletab/res/tabFx2Compatible.xul b/content/treestyletab/res/tabFx2Compatible.xul index 483ddd42..94f82eca 100644 --- a/content/treestyletab/res/tabFx2Compatible.xul +++ b/content/treestyletab/res/tabFx2Compatible.xul @@ -19,7 +19,7 @@ window.addEventListener('DOMContentLoaded', function() { window.removeEventListener('DOMContentLoaded', arguments.callee, true); - const currentRevision = 8; + const currentRevision = 9; var b = document.getElementById('content'); if (!b || b.localName != 'tabbrowser') return;