diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 23655bbc..613b4dbc 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -24,7 +24,6 @@ var TreeStyleTabService = { kHIDE_ALLTABS : 'treestyletab-hide-alltabs-button', kSTYLE : 'treestyletab-style', kFIRSTTAB_BORDER : 'treestyletab-firsttab-border', - kAUTOHIDE : 'treestyletab-tabbar-autohide', kFIXED : 'treestyletab-tabbar-fixed', kRESIZING : 'treestyletab-tabbar-resizing', kINDENTED : 'treestyletab-tabs-indented', diff --git a/content/treestyletab/treestyletabbrowser_autoHide.js b/content/treestyletab/treestyletabbrowser_autoHide.js index e286596b..d2fcfff2 100644 --- a/content/treestyletab/treestyletabbrowser_autoHide.js +++ b/content/treestyletab/treestyletabbrowser_autoHide.js @@ -9,6 +9,8 @@ TreeStyleTabBrowserAutoHide.prototype = { kMODE_HIDE : 1, kMODE_SHRINK : 2, + kAUTOHIDE : 'treestyletab-tabbar-autohide', + kSHOWN_BY_UNKNOWN : 0, kSHOWN_BY_SHORTCUT : 1 << 0, kSHOWN_BY_MOUSEMOVE : 1 << 1, @@ -435,7 +437,7 @@ TreeStyleTabBrowserAutoHide.prototype = { window.setTimeout(function(aSelf) { if (aSelf.shown) { - sv.mTabBrowser.setAttribute(sv.kAUTOHIDE, 'show'); + sv.mTabBrowser.setAttribute(aSelf.kAUTOHIDE, 'show'); aSelf.redrawContentArea(); } b.mTabContainer.adjustTabstrip(); @@ -508,12 +510,12 @@ TreeStyleTabBrowserAutoHide.prototype = { switch (this.mode) { case this.kMODE_HIDE: - b.setAttribute(sv.kAUTOHIDE, 'hidden'); + b.setAttribute(this.kAUTOHIDE, 'hidden'); break; default: case this.kMODE_SHRINK: - b.setAttribute(sv.kAUTOHIDE, 'show'); + b.setAttribute(this.kAUTOHIDE, 'show'); if (pos == 'left' || pos == 'right') b.mStrip.width = this.getTreePref('tabbar.shrunkenWidth'); break; diff --git a/skin/classic/treestyletab/treestyletab.css b/skin/classic/treestyletab/treestyletab.css index 98a89b3f..129d03cf 100644 --- a/skin/classic/treestyletab/treestyletab.css +++ b/skin/classic/treestyletab/treestyletab.css @@ -164,17 +164,17 @@ tabbrowser[treestyletab-style~="vertigo"][treestyletab-mode="vertical"] .tabbrow /* transaprent tab bar */ -tabbrowser[treestyletab-tabbar-transparent] .tabbrowser-tab { +tabbrowser[treestyletab-tabbar-autohide][treestyletab-tabbar-transparent] .tabbrowser-tab { opacity: 0.85 !important; } -tabbrowser[treestyletab-tabbar-transparent] .tabbrowser-tabs:hover .tabbrowser-tab { +tabbrowser[treestyletab-tabbar-autohide][treestyletab-tabbar-transparent] .tabbrowser-tabs:hover .tabbrowser-tab { opacity: 0.9 !important; } -tabbrowser[treestyletab-tabbar-transparent] .tabbrowser-tabs:hover .tabbrowser-tab[selected="true"], -tabbrowser[treestyletab-tabbar-transparent] .tabbrowser-tabs:hover .tabbrowser-tab:hover { +tabbrowser[treestyletab-tabbar-autohide][treestyletab-tabbar-transparent] .tabbrowser-tabs:hover .tabbrowser-tab[selected="true"], +tabbrowser[treestyletab-tabbar-autohide][treestyletab-tabbar-transparent] .tabbrowser-tabs:hover .tabbrowser-tab:hover { opacity: 0.95 !important; } -tabbrowser[treestyletab-tabbar-transparent] .tabbrowser-tabs:hover .tabbrowser-tab[selected="true"]:hover { +tabbrowser[treestyletab-tabbar-autohide][treestyletab-tabbar-transparent] .tabbrowser-tabs:hover .tabbrowser-tab[selected="true"]:hover { opacity: 0.98 !important; }