autohideが無効な時にまでタブが半透明になっていた

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5093 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-09-04 02:11:51 +00:00
parent 2e5cc7d386
commit ed342390cd
3 changed files with 10 additions and 9 deletions

View File

@ -24,7 +24,6 @@ var TreeStyleTabService = {
kHIDE_ALLTABS : 'treestyletab-hide-alltabs-button', kHIDE_ALLTABS : 'treestyletab-hide-alltabs-button',
kSTYLE : 'treestyletab-style', kSTYLE : 'treestyletab-style',
kFIRSTTAB_BORDER : 'treestyletab-firsttab-border', kFIRSTTAB_BORDER : 'treestyletab-firsttab-border',
kAUTOHIDE : 'treestyletab-tabbar-autohide',
kFIXED : 'treestyletab-tabbar-fixed', kFIXED : 'treestyletab-tabbar-fixed',
kRESIZING : 'treestyletab-tabbar-resizing', kRESIZING : 'treestyletab-tabbar-resizing',
kINDENTED : 'treestyletab-tabs-indented', kINDENTED : 'treestyletab-tabs-indented',

View File

@ -9,6 +9,8 @@ TreeStyleTabBrowserAutoHide.prototype = {
kMODE_HIDE : 1, kMODE_HIDE : 1,
kMODE_SHRINK : 2, kMODE_SHRINK : 2,
kAUTOHIDE : 'treestyletab-tabbar-autohide',
kSHOWN_BY_UNKNOWN : 0, kSHOWN_BY_UNKNOWN : 0,
kSHOWN_BY_SHORTCUT : 1 << 0, kSHOWN_BY_SHORTCUT : 1 << 0,
kSHOWN_BY_MOUSEMOVE : 1 << 1, kSHOWN_BY_MOUSEMOVE : 1 << 1,
@ -435,7 +437,7 @@ TreeStyleTabBrowserAutoHide.prototype = {
window.setTimeout(function(aSelf) { window.setTimeout(function(aSelf) {
if (aSelf.shown) { if (aSelf.shown) {
sv.mTabBrowser.setAttribute(sv.kAUTOHIDE, 'show'); sv.mTabBrowser.setAttribute(aSelf.kAUTOHIDE, 'show');
aSelf.redrawContentArea(); aSelf.redrawContentArea();
} }
b.mTabContainer.adjustTabstrip(); b.mTabContainer.adjustTabstrip();
@ -508,12 +510,12 @@ TreeStyleTabBrowserAutoHide.prototype = {
switch (this.mode) switch (this.mode)
{ {
case this.kMODE_HIDE: case this.kMODE_HIDE:
b.setAttribute(sv.kAUTOHIDE, 'hidden'); b.setAttribute(this.kAUTOHIDE, 'hidden');
break; break;
default: default:
case this.kMODE_SHRINK: case this.kMODE_SHRINK:
b.setAttribute(sv.kAUTOHIDE, 'show'); b.setAttribute(this.kAUTOHIDE, 'show');
if (pos == 'left' || pos == 'right') if (pos == 'left' || pos == 'right')
b.mStrip.width = this.getTreePref('tabbar.shrunkenWidth'); b.mStrip.width = this.getTreePref('tabbar.shrunkenWidth');
break; break;

View File

@ -164,17 +164,17 @@ tabbrowser[treestyletab-style~="vertigo"][treestyletab-mode="vertical"] .tabbrow
/* transaprent tab bar */ /* transaprent tab bar */
tabbrowser[treestyletab-tabbar-transparent] .tabbrowser-tab { tabbrowser[treestyletab-tabbar-autohide][treestyletab-tabbar-transparent] .tabbrowser-tab {
opacity: 0.85 !important; 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; opacity: 0.9 !important;
} }
tabbrowser[treestyletab-tabbar-transparent] .tabbrowser-tabs:hover .tabbrowser-tab[selected="true"], tabbrowser[treestyletab-tabbar-autohide][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:hover {
opacity: 0.95 !important; 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; opacity: 0.98 !important;
} }