From b808a6a47180adb39cc807b99f33e727c2d46191 Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Sat, 20 Aug 2005 07:12:53 +0000 Subject: [PATCH] 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 --- widget/src/mac/nsNativeThemeMac.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/widget/src/mac/nsNativeThemeMac.cpp b/widget/src/mac/nsNativeThemeMac.cpp index 22f3a2544a1a..bae9f6e3d8f6 100644 --- a/widget/src/mac/nsNativeThemeMac.cpp +++ b/widget/src/mac/nsNativeThemeMac.cpp @@ -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); }