support themed foreground brushes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37413 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2006-02-09 15:20:39 +00:00
parent 54a6974c51
commit cabb99da6d

View File

@@ -2155,7 +2155,21 @@ void wxDC::MacInstallBrush() const
int brushStyle = m_brush.GetStyle();
if (brushStyle == wxSOLID)
{
switch ( m_brush.MacGetBrushKind() )
{
case kwxMacBrushTheme :
{
Pattern whiteColor ;
::BackPat(GetQDGlobalsWhite(&whiteColor));
::SetThemePen( m_brush.MacGetTheme() , wxDisplayDepth() , true ) ;
}
break ;
default :
::PenPat(GetQDGlobalsBlack(&blackColor));
break ;
}
}
else if (m_brush.IsHatch())
{