More font scaling changes.
These may or may not fix scaling issues on GTK with HiDPI monitors.
This commit is contained in:
parent
61ef431c56
commit
7a035e2675
|
@ -38,6 +38,11 @@ WX_GRID::WX_GRID( wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxS
|
|||
m_weOwnTable( false )
|
||||
{
|
||||
SetDefaultCellOverflow( false );
|
||||
|
||||
// Make sure the GUI font scales properly on GTK
|
||||
wxFont guiFont = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT );
|
||||
guiFont.SetSymbolicSize( wxFONTSIZE_MEDIUM );
|
||||
SetDefaultCellFont( guiFont );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
|
||||
#include <bitmaps.h>
|
||||
#include <wx/settings.h>
|
||||
|
||||
#include "project_tree_item.h"
|
||||
#include "project_tree_pane.h"
|
||||
|
@ -47,6 +48,11 @@ PROJECT_TREE::PROJECT_TREE( PROJECT_TREE_PANE* parent ) :
|
|||
{
|
||||
m_projectTreePane = parent;
|
||||
|
||||
// Make sure the GUI font scales properly on GTK
|
||||
wxFont guiFont = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT );
|
||||
guiFont.SetSymbolicSize( wxFONTSIZE_MEDIUM );
|
||||
SetFont( guiFont );
|
||||
|
||||
// icons size is not know (depending on they are built)
|
||||
// so get it:
|
||||
wxSize iconsize;
|
||||
|
|
Loading…
Reference in New Issue