зеркало из https://github.com/mozilla/pjs.git
get tabs looking better and fix some enabling/active issues with the drawing logic. r=pink/sr=hyatt. patch from ajfeldman@brown.edu. bug# 134447
This commit is contained in:
Родитель
fcd9280cc6
Коммит
d1c8e26cd6
|
@ -452,7 +452,7 @@ nsNativeThemeMac::DrawEditText ( const Rect& inBoxRect, PRBool inIsDisabled )
|
|||
::BackPat(GetQDGlobalsWhite(&whitePat));
|
||||
::EraseRect(&inBoxRect);
|
||||
|
||||
ThemeDrawState drawState = inIsDisabled ? kThemeStateActive : kThemeStateDisabled;
|
||||
ThemeDrawState drawState = inIsDisabled ? kThemeStateDisabled : kThemeStateActive;
|
||||
::DrawThemeEditTextFrame(&inBoxRect, drawState);
|
||||
#endif
|
||||
}
|
||||
|
@ -467,7 +467,7 @@ nsNativeThemeMac::DrawListBox ( const Rect& inBoxRect, PRBool inIsDisabled )
|
|||
::BackPat(GetQDGlobalsWhite(&whitePat));
|
||||
::EraseRect(&inBoxRect);
|
||||
|
||||
ThemeDrawState drawState = inIsDisabled ? kThemeStateActive : kThemeStateDisabled;
|
||||
ThemeDrawState drawState = inIsDisabled ? kThemeStateDisabled : kThemeStateActive;
|
||||
::DrawThemeListBoxFrame(&inBoxRect, drawState);
|
||||
#endif
|
||||
}
|
||||
|
@ -496,7 +496,7 @@ nsNativeThemeMac::DrawProgress ( const Rect& inBoxRect, PRBool inIsDisabled, PRB
|
|||
void
|
||||
nsNativeThemeMac::DrawTabPanel ( const Rect& inBoxRect, PRBool inIsDisabled )
|
||||
{
|
||||
ThemeDrawState drawState = inIsDisabled ? kThemeStateActive : kThemeStateDisabled;
|
||||
ThemeDrawState drawState = inIsDisabled ? kThemeStateDisabled : kThemeStateActive;
|
||||
::DrawThemeTabPane(&inBoxRect, drawState);
|
||||
}
|
||||
|
||||
|
@ -504,7 +504,7 @@ nsNativeThemeMac::DrawTabPanel ( const Rect& inBoxRect, PRBool inIsDisabled )
|
|||
void
|
||||
nsNativeThemeMac::DrawSeparator ( const Rect& inBoxRect, PRBool inIsDisabled )
|
||||
{
|
||||
ThemeDrawState drawState = inIsDisabled ? kThemeStateActive : kThemeStateDisabled;
|
||||
ThemeDrawState drawState = inIsDisabled ? kThemeStateDisabled : kThemeStateActive;
|
||||
::DrawThemeSeparator(&inBoxRect, drawState);
|
||||
}
|
||||
|
||||
|
|
|
@ -87,6 +87,7 @@ tab:hover:active[selected="true"] > .tab-image-right {
|
|||
}
|
||||
|
||||
.tab-border-top-left {
|
||||
-moz-appearance: dialog;
|
||||
background-color : #DEDEDE;
|
||||
border-bottom : 3px solid;
|
||||
-moz-border-bottom-colors: #FFFFFF #CECECE #000000;
|
||||
|
@ -94,12 +95,14 @@ tab:hover:active[selected="true"] > .tab-image-right {
|
|||
}
|
||||
|
||||
.tab-border-top-right {
|
||||
-moz-appearance: dialog;
|
||||
background-color : #DEDEDE;
|
||||
border-bottom : 3px solid;
|
||||
-moz-border-bottom-colors: #FFFFFF #CECECE #000000;
|
||||
}
|
||||
|
||||
.tab-border-top-left-cap, .tab-border-top-right-cap {
|
||||
-moz-appearance: dialog;
|
||||
background-color : #DEDEDE;
|
||||
border-bottom : 3px solid;
|
||||
-moz-border-bottom-colors: #000000;
|
||||
|
@ -172,6 +175,7 @@ tabs {
|
|||
}
|
||||
|
||||
.tabs-bottom > .tab-border-top-left {
|
||||
-moz-appearance: dialog;
|
||||
background-color : #DEDEDE;
|
||||
border-bottom : 0px;
|
||||
border-top : 3px solid;
|
||||
|
@ -180,6 +184,7 @@ tabs {
|
|||
}
|
||||
|
||||
.tabs-bottom > stack > .tab-border-top-right {
|
||||
-moz-appearance: dialog;
|
||||
background-color : #DEDEDE;
|
||||
border-bottom : 0px;
|
||||
border-top : 3px solid;
|
||||
|
@ -187,6 +192,7 @@ tabs {
|
|||
}
|
||||
|
||||
.tabs-bottom > .tab-border-top-left-cap, .tabs-bottom > .tab-border-top-right-cap {
|
||||
-moz-appearance: dialog;
|
||||
background-color : #DEDEDE;
|
||||
border-bottom : 0px;
|
||||
border-top : 3px solid;
|
||||
|
|
Загрузка…
Ссылка в новой задаче