mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02:00
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 )
|
m_weOwnTable( false )
|
||||||
{
|
{
|
||||||
SetDefaultCellOverflow( 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 <bitmaps.h>
|
||||||
|
#include <wx/settings.h>
|
||||||
|
|
||||||
#include "project_tree_item.h"
|
#include "project_tree_item.h"
|
||||||
#include "project_tree_pane.h"
|
#include "project_tree_pane.h"
|
||||||
@ -47,6 +48,11 @@ PROJECT_TREE::PROJECT_TREE( PROJECT_TREE_PANE* parent ) :
|
|||||||
{
|
{
|
||||||
m_projectTreePane = 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)
|
// icons size is not know (depending on they are built)
|
||||||
// so get it:
|
// so get it:
|
||||||
wxSize iconsize;
|
wxSize iconsize;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user