Tie the caption size to the font size to scale at hi dpi better on windows
This commit is contained in:
parent
4d1a016429
commit
8a3a7b2a10
|
@ -191,7 +191,7 @@ WX_AUI_DOCK_ART::WX_AUI_DOCK_ART() : wxAuiDefaultDockArt()
|
||||||
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( 20, nullptr );
|
m_captionSize = ( wxNORMAL_FONT->GetPixelSize().y * 7 ) / 4;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
SetColour( wxAUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR,
|
SetColour( wxAUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR,
|
||||||
|
|
Loading…
Reference in New Issue