From 8a3a7b2a100c82acfb4400351d688eee4875c08a Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Wed, 17 Jan 2024 21:45:09 -0500 Subject: [PATCH] Tie the caption size to the font size to scale at hi dpi better on windows --- common/widgets/wx_aui_art_providers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/widgets/wx_aui_art_providers.cpp b/common/widgets/wx_aui_art_providers.cpp index c8ca833991..a88c1c49b6 100644 --- a/common/widgets/wx_aui_art_providers.cpp +++ b/common/widgets/wx_aui_art_providers.cpp @@ -191,7 +191,7 @@ WX_AUI_DOCK_ART::WX_AUI_DOCK_ART() : wxAuiDefaultDockArt() m_captionFont = *wxNORMAL_FONT; // 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 SetColour( wxAUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR,