diff --git a/common/widgets/properties_panel.cpp b/common/widgets/properties_panel.cpp index e20b5f9c5c..1774ff4e20 100644 --- a/common/widgets/properties_panel.cpp +++ b/common/widgets/properties_panel.cpp @@ -82,7 +82,7 @@ PROPERTIES_PANEL::PROPERTIES_PANEL( wxWindow* aParent, EDA_BASE_FRAME* aFrame ) m_grid->DedicateKey( WXK_NUMPAD_ENTER ); m_grid->DedicateKey( WXK_DOWN ); m_grid->DedicateKey( WXK_UP ); - mainSizer->Add( m_grid, 1, wxALL | wxEXPAND, 5 ); + mainSizer->Add( m_grid, 1, wxEXPAND, 5 ); m_grid->SetCellDisabledTextColour( wxSystemSettings::GetColour( wxSYS_COLOUR_GRAYTEXT ) ); @@ -91,6 +91,8 @@ PROPERTIES_PANEL::PROPERTIES_PANEL( wxWindow* aParent, EDA_BASE_FRAME* aFrame ) m_grid->SetCaptionTextColour( wxSystemSettings::GetColour( wxSYS_COLOUR_CAPTIONTEXT ) ); #endif + SetFont( KIUI::GetDockedPaneFont( this ) ); + SetSizer( mainSizer ); Layout(); diff --git a/common/widgets/search_pane_base.cpp b/common/widgets/search_pane_base.cpp index 967a93426d..e4b592d32d 100644 --- a/common/widgets/search_pane_base.cpp +++ b/common/widgets/search_pane_base.cpp @@ -20,11 +20,11 @@ SEARCH_PANE_BASE::SEARCH_PANE_BASE( wxWindow* parent, wxWindowID id, const wxPoi m_searchCtrl1->ShowSearchButton( true ); #endif m_searchCtrl1->ShowCancelButton( false ); - m_sizerOuter->Add( m_searchCtrl1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 ); + m_sizerOuter->Add( m_searchCtrl1, 0, wxEXPAND|wxTOP, 5 ); m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 ); - m_sizerOuter->Add( m_notebook, 1, wxEXPAND, 5 ); + m_sizerOuter->Add( m_notebook, 1, wxEXPAND|wxTOP, 5 ); this->SetSizer( m_sizerOuter ); diff --git a/common/widgets/search_pane_base.fbp b/common/widgets/search_pane_base.fbp index 6215b800d5..7400e655b7 100644 --- a/common/widgets/search_pane_base.fbp +++ b/common/widgets/search_pane_base.fbp @@ -61,7 +61,7 @@ protected 5 - wxEXPAND|wxTOP|wxRIGHT|wxLEFT + wxEXPAND|wxTOP 0 1 @@ -127,7 +127,7 @@ 5 - wxEXPAND + wxEXPAND|wxTOP 1 1 diff --git a/common/widgets/ui_common.cpp b/common/widgets/ui_common.cpp index b456ad7c63..dd90266f38 100644 --- a/common/widgets/ui_common.cpp +++ b/common/widgets/ui_common.cpp @@ -141,6 +141,18 @@ wxFont KIUI::GetStatusFont( wxWindow* aWindow ) } +wxFont KIUI::GetDockedPaneFont( wxWindow* aWindow ) +{ +#ifdef __WXMAC__ + int scale = -1; +#else + int scale = 0; +#endif + + return getGUIFont( aWindow, scale ); +} + + wxFont KIUI::GetInfoFont( wxWindow* aWindow ) { return getGUIFont( aWindow, -1 ); diff --git a/include/widgets/ui_common.h b/include/widgets/ui_common.h index 4425d96f51..95515a03f6 100644 --- a/include/widgets/ui_common.h +++ b/include/widgets/ui_common.h @@ -61,6 +61,7 @@ wxFont GetMonospacedUIFont(); wxFont GetControlFont( wxWindow* aWindow ); wxFont GetInfoFont( wxWindow* aWindow ); +wxFont GetDockedPaneFont( wxWindow* aWindow ); wxFont GetStatusFont( wxWindow* aWindow ); /** diff --git a/pcbnew/widgets/pcb_search_pane.cpp b/pcbnew/widgets/pcb_search_pane.cpp index e32a4110a7..02f7aa3c0c 100644 --- a/pcbnew/widgets/pcb_search_pane.cpp +++ b/pcbnew/widgets/pcb_search_pane.cpp @@ -36,7 +36,7 @@ PCB_SEARCH_PANE::PCB_SEARCH_PANE( PCB_EDIT_FRAME* aFrame ) : m_pcbFrame->Connect( BOARD_CHANGED, wxCommandEventHandler( PCB_SEARCH_PANE::onBoardChanged ), nullptr, this ); - wxFont infoFont = KIUI::GetInfoFont( this ); + wxFont infoFont = KIUI::GetDockedPaneFont( this ); SetFont( infoFont ); m_notebook->SetFont( infoFont );