通常時とフルスクリーンモードとで、自動で隠す設定を別々に保持するようにした

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6540 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-03-31 18:47:30 +00:00
parent de4d61f96f
commit ddde6f0e1f
2 changed files with 13 additions and 6 deletions

View File

@ -1241,9 +1241,15 @@ TreeStyleTabBrowserAutoHide.__defineSetter__('mode', function(aValue) {
TreeStyleTabBrowserAutoHide.mMode = TreeStyleTabBrowserAutoHide.prototype.kMODE_HIDE; TreeStyleTabBrowserAutoHide.mMode = TreeStyleTabBrowserAutoHide.prototype.kMODE_HIDE;
TreeStyleTabBrowserAutoHide.toggleMode = function TSTAutoHide_toggleMode() { /* PUBLIC API */ TreeStyleTabBrowserAutoHide.toggleMode = function TSTAutoHide_toggleMode() { /* PUBLIC API */
TreeStyleTabService.setTreePref('tabbar.autoHide.mode', var key = 'tabbar.autoHide.mode';
TreeStyleTabService.getTreePref('tabbar.autoHide.mode') == this.prototype.kMODE_DISABLED ? var toggleKey = 'tabbar.autoHide.mode.toggle';
TreeStyleTabService.getTreePref('tabbar.autoHide.mode.toggle') : if (window.fullScreen) {
key += '.fullscreen';
toggleKey += '.fullscreen';
}
TreeStyleTabService.setTreePref(key,
TreeStyleTabService.getTreePref(key) == this.prototype.kMODE_DISABLED ?
TreeStyleTabService.getTreePref(toggleKey) :
this.prototype.kMODE_DISABLED this.prototype.kMODE_DISABLED
); );
}; };

View File

@ -18,9 +18,10 @@ pref("extensions.treestyletab.tabbar.scroll.duration", 250);
// flat, mixed, vertigo // flat, mixed, vertigo
pref("extensions.treestyletab.tabbar.style", "mixed"); pref("extensions.treestyletab.tabbar.style", "mixed");
// 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.toggle", 2); pref("extensions.treestyletab.tabbar.autoHide.mode.fullscreen", 1);
pref("extensions.treestyletab.tabbar.autoHide.mode.fullscreen", 1); pref("extensions.treestyletab.tabbar.autoHide.mode.toggle", 2);
pref("extensions.treestyletab.tabbar.autoHide.mode.toggle.fullscreen", 1);
pref("extensions.treestyletab.tabbar.autoHide.delay", 50); pref("extensions.treestyletab.tabbar.autoHide.delay", 50);
pref("extensions.treestyletab.tabbar.autoHide.area", 7); pref("extensions.treestyletab.tabbar.autoHide.area", 7);
pref("extensions.treestyletab.tabbar.autoHide.expandArea", false); pref("extensions.treestyletab.tabbar.autoHide.expandArea", false);