add mac theme -> rgb color conversion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
94c80d5254
commit
ff38d8c1eb
@ -171,7 +171,10 @@ void wxBrush::MacSetTheme(ThemeBrush macThemeBrush)
|
||||
|
||||
M_BRUSHDATA->m_macBrushKind = kwxMacBrushTheme;
|
||||
M_BRUSHDATA->m_macThemeBrush = macThemeBrush;
|
||||
|
||||
RGBColor color ;
|
||||
GetThemeBrushAsColor( macThemeBrush , 32, true, &color );
|
||||
M_BRUSHDATA->m_colour.Set( color.red >> 8 , color.green >> 8 , color.blue >> 8 ) ;
|
||||
|
||||
RealizeResource();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user