Guard off the dock art size change temporarily for win32 and wxwidgets 3.1

This commit is contained in:
Marek Roszko 2020-10-18 11:09:14 -04:00
parent 29577a571d
commit 496532b6ea
1 changed files with 5 additions and 1 deletions

View File

@ -23,11 +23,15 @@
WX_AUI_DOCK_ART::WX_AUI_DOCK_ART() : wxAuiDefaultDockArt() WX_AUI_DOCK_ART::WX_AUI_DOCK_ART() : wxAuiDefaultDockArt()
{ {
#if defined( _WIN32 )
#if wxCHECK_VERSION( 3, 1, 0 )
// Use normal control font, wx likes to use "small" // Use normal control font, wx likes to use "small"
m_captionFont = *wxNORMAL_FONT; m_captionFont = *wxNORMAL_FONT;
// Increase the box the caption rests in size a bit // Increase the box the caption rests in size a bit
m_captionSize = wxWindow::FromDIP( 25, NULL ); m_captionSize = wxWindow::FromDIP( 20, NULL );
#endif
#endif
// Turn off the ridiculous looking gradient // Turn off the ridiculous looking gradient
m_gradientType = wxAUI_GRADIENT_NONE; m_gradientType = wxAUI_GRADIENT_NONE;