split pref for aero glass
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7144 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
26e78394d8
commit
287ea62327
@ -1703,7 +1703,8 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'extensions.treestyletab.tabbar.style':
|
case 'extensions.treestyletab.tabbar.style':
|
||||||
this.setTabbarStyle(value);
|
case 'extensions.treestyletab.tabbar.style.aero':
|
||||||
|
this.setTabbarStyle(this.getTreePref('tabbar.style'));
|
||||||
value = this.getTreePref('twisty.style');
|
value = this.getTreePref('twisty.style');
|
||||||
if (value != 'auto')
|
if (value != 'auto')
|
||||||
break;
|
break;
|
||||||
@ -1792,10 +1793,6 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
|
|
||||||
if (aStyle) {
|
if (aStyle) {
|
||||||
let additionalValues = [];
|
let additionalValues = [];
|
||||||
if (/-aero$/.test(aStyle)) {
|
|
||||||
additionalValues.push('aero');
|
|
||||||
aStyle = aStyle.replace('-aero', '')
|
|
||||||
}
|
|
||||||
if (/^(plain|flat|mixed|vertigo)$/.test(aStyle))
|
if (/^(plain|flat|mixed|vertigo)$/.test(aStyle))
|
||||||
additionalValues.push('square');
|
additionalValues.push('square');
|
||||||
if (/^(plain|flat|mixed)$/.test(aStyle))
|
if (/^(plain|flat|mixed)$/.test(aStyle))
|
||||||
@ -1804,6 +1801,8 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
additionalValues.push('color');
|
additionalValues.push('color');
|
||||||
if (/^(plain|mixed)$/.test(aStyle))
|
if (/^(plain|mixed)$/.test(aStyle))
|
||||||
additionalValues.push('shadow');
|
additionalValues.push('shadow');
|
||||||
|
if (this.getTreePref('tabbar.style.aero'))
|
||||||
|
additionalValues.push('aero');
|
||||||
if (additionalValues.length)
|
if (additionalValues.length)
|
||||||
aStyle = additionalValues.join(' ')+' '+aStyle;
|
aStyle = additionalValues.join(' ')+' '+aStyle;
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@ pref("extensions.treestyletab.tabbar.scroll.duration", 250);
|
|||||||
pref("extensions.treestyletab.tabbar.scrollToNewTab.mode", 1);
|
pref("extensions.treestyletab.tabbar.scrollToNewTab.mode", 1);
|
||||||
// flat, mixed, vertigo
|
// flat, mixed, vertigo
|
||||||
pref("extensions.treestyletab.tabbar.style", "mixed");
|
pref("extensions.treestyletab.tabbar.style", "mixed");
|
||||||
|
pref("extensions.treestyletab.tabbar.style.aero", false);
|
||||||
// 0 = disabled, 1 = hide, 2 = shrink
|
// 0 = disabled, 1 = hide, 2 = shrink
|
||||||
pref("extensions.treestyletab.tabbar.autoHide.mode", 0);
|
pref("extensions.treestyletab.tabbar.autoHide.mode", 0);
|
||||||
pref("extensions.treestyletab.tabbar.autoHide.mode.fullscreen", 1);
|
pref("extensions.treestyletab.tabbar.autoHide.mode.fullscreen", 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user