From cabb99da6db328dd673ed0068dbc1316a9930c61 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 9 Feb 2006 15:20:39 +0000 Subject: [PATCH] support themed foreground brushes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37413 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/dc.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/mac/carbon/dc.cpp b/src/mac/carbon/dc.cpp index 8b0d162f33..b3e3ef106a 100644 --- a/src/mac/carbon/dc.cpp +++ b/src/mac/carbon/dc.cpp @@ -2155,7 +2155,21 @@ void wxDC::MacInstallBrush() const int brushStyle = m_brush.GetStyle(); if (brushStyle == wxSOLID) { - ::PenPat(GetQDGlobalsBlack(&blackColor)); + 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()) { -- 2.45.2