From 21ef07f142d50794a94a201ef61e41e0d14ccc0d Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Wed, 20 Feb 2002 02:14:04 +0000 Subject: [PATCH] cleanup bg theme brush and fix things for dialog bg to draw. r=bryner/sr=hyatt. bug#119736 --- gfx/src/mac/nsNativeThemeMac.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gfx/src/mac/nsNativeThemeMac.cpp b/gfx/src/mac/nsNativeThemeMac.cpp index b51694c67b9e..10acc7ef9748 100644 --- a/gfx/src/mac/nsNativeThemeMac.cpp +++ b/gfx/src/mac/nsNativeThemeMac.cpp @@ -670,15 +670,16 @@ nsNativeThemeMac::DrawWidgetBackground(nsIRenderingContext* aContext, nsIFrame* switch ( aWidgetType ) { case NS_THEME_DIALOG: - printf("!!! draw dialog bg\n"); ::SetThemeBackground(kThemeBrushDialogBackgroundActive, 24, true); ::EraseRect(&macRect); + ::SetThemeBackground(kThemeBrushWhite, 24, true); break; case NS_THEME_MENU: printf("!!! draw menu bg\n"); ::SetThemeBackground(kThemeBrushDialogBackgroundActive, 24, true); ::EraseRect(&macRect); + ::SetThemeBackground(kThemeBrushWhite, 24, true); break; case NS_THEME_TOOLTIP: @@ -750,6 +751,7 @@ nsNativeThemeMac::DrawWidgetBackground(nsIRenderingContext* aContext, nsIFrame* break; case NS_THEME_TREEVIEW_TREEITEM: case NS_THEME_TREEVIEW: + ::SetThemeBackground(kThemeBrushWhite, 24, true); ::EraseRect ( &macRect ); break; case NS_THEME_TREEVIEW_HEADER: @@ -1027,6 +1029,8 @@ nsNativeThemeMac::WidgetStateChanged(nsIFrame* aFrame, PRUint8 aWidgetType, case NS_THEME_TAB_PANELS: case NS_THEME_TAB_PANEL: case NS_THEME_TEXTFIELD: + case NS_THEME_DIALOG: + case NS_THEME_MENU: *aShouldRepaint = PR_FALSE; return NS_OK; }