setting the mac theme font only in VARIANT_NORMAL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4659,9 +4659,13 @@ bool wxGenericListCtrl::Create(wxWindow *parent,
|
|||||||
m_mainWin = new wxListMainWindow( this, wxID_ANY, wxPoint(0,0), size, style );
|
m_mainWin = new wxListMainWindow( this, wxID_ANY, wxPoint(0,0), size, style );
|
||||||
|
|
||||||
#if defined( __WXMAC__ ) && __WXMAC_CARBON__
|
#if defined( __WXMAC__ ) && __WXMAC_CARBON__
|
||||||
wxFont font ;
|
// Human Interface Guidelines ask us for a special font in this case
|
||||||
font.MacCreateThemeFont( kThemeViewsFont ) ;
|
if ( GetWindowVariant() == wxWINDOW_VARIANT_NORMAL )
|
||||||
SetFont( font ) ;
|
{
|
||||||
|
wxFont font ;
|
||||||
|
font.MacCreateThemeFont( kThemeViewsFont ) ;
|
||||||
|
SetFont( font ) ;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
if ( InReportView() )
|
if ( InReportView() )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user