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:
@@ -2155,7 +2155,21 @@ void wxDC::MacInstallBrush() const
|
|||||||
int brushStyle = m_brush.GetStyle();
|
int brushStyle = m_brush.GetStyle();
|
||||||
if (brushStyle == wxSOLID)
|
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));
|
::PenPat(GetQDGlobalsBlack(&blackColor));
|
||||||
|
break ;
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (m_brush.IsHatch())
|
else if (m_brush.IsHatch())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user