通常時とフルスクリーンモードとで、自動で隠す設定を別々に保持するようにした
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6540 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
de4d61f96f
commit
ddde6f0e1f
@ -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
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -19,8 +19,9 @@ pref("extensions.treestyletab.tabbar.scroll.duration", 250);
|
|||||||
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user