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:
piro 2010-09-01 15:50:10 +00:00
parent 26e78394d8
commit 287ea62327
2 changed files with 6 additions and 6 deletions

View File

@ -1703,7 +1703,8 @@ TreeStyleTabBrowser.prototype = {
break;
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');
if (value != 'auto')
break;
@ -1792,10 +1793,6 @@ TreeStyleTabBrowser.prototype = {
if (aStyle) {
let additionalValues = [];
if (/-aero$/.test(aStyle)) {
additionalValues.push('aero');
aStyle = aStyle.replace('-aero', '')
}
if (/^(plain|flat|mixed|vertigo)$/.test(aStyle))
additionalValues.push('square');
if (/^(plain|flat|mixed)$/.test(aStyle))
@ -1804,6 +1801,8 @@ TreeStyleTabBrowser.prototype = {
additionalValues.push('color');
if (/^(plain|mixed)$/.test(aStyle))
additionalValues.push('shadow');
if (this.getTreePref('tabbar.style.aero'))
additionalValues.push('aero');
if (additionalValues.length)
aStyle = additionalValues.join(' ')+' '+aStyle;

View File

@ -18,7 +18,8 @@ pref("extensions.treestyletab.tabbar.scroll.duration", 250);
// 0 = no scroll, 1 = scroll to new tab only when the current tab will not scrolled out, 2 = scroll to new tab always
pref("extensions.treestyletab.tabbar.scrollToNewTab.mode", 1);
// 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
pref("extensions.treestyletab.tabbar.autoHide.mode", 0);
pref("extensions.treestyletab.tabbar.autoHide.mode.fullscreen", 1);