From: Stefan Csomor Date: Mon, 30 Aug 2004 06:49:26 +0000 (+0000) Subject: setting the mac theme font only in VARIANT_NORMAL X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/309e4c1464fd76663e81e39d7c2cf68a0f239b5a 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 --- diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index ac0ab03bb2..3a2774b15e 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -4659,9 +4659,13 @@ bool wxGenericListCtrl::Create(wxWindow *parent, m_mainWin = new wxListMainWindow( this, wxID_ANY, wxPoint(0,0), size, style ); #if defined( __WXMAC__ ) && __WXMAC_CARBON__ - wxFont font ; - font.MacCreateThemeFont( kThemeViewsFont ) ; - SetFont( font ) ; + // Human Interface Guidelines ask us for a special font in this case + if ( GetWindowVariant() == wxWINDOW_VARIANT_NORMAL ) + { + wxFont font ; + font.MacCreateThemeFont( kThemeViewsFont ) ; + SetFont( font ) ; + } #endif if ( InReportView() ) {