Make another attempt to fix compile button size.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16167
This commit is contained in:
parent
efaa131bc4
commit
aa3b4ee6d6
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include <bitmaps.h>
|
||||
#include <confirm.h>
|
||||
#include <widgets/std_bitmap_button.h>
|
||||
#include <widgets/paged_dialog.h>
|
||||
#include <pcb_edit_frame.h>
|
||||
#include <pcbexpr_evaluator.h>
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "widgets/std_bitmap_button.h"
|
||||
#include "widgets/wx_html_report_box.h"
|
||||
|
||||
#include "panel_setup_rules_base.h"
|
||||
|
@ -72,7 +73,7 @@ PANEL_SETUP_RULES_BASE::PANEL_SETUP_RULES_BASE( wxWindow* parent, wxWindowID id,
|
|||
wxBoxSizer* bSizer5;
|
||||
bSizer5 = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
m_compileButton = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 28,28 ), wxBU_AUTODRAW|0 );
|
||||
m_compileButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 28,28 ), wxBU_AUTODRAW|0 );
|
||||
m_compileButton->SetToolTip( _("Check rule syntax") );
|
||||
|
||||
bSizer5->Add( m_compileButton, 0, wxTOP|wxBOTTOM, 5 );
|
||||
|
|
|
@ -350,7 +350,7 @@
|
|||
<property name="show">1</property>
|
||||
<property name="size">28,28</property>
|
||||
<property name="style"></property>
|
||||
<property name="subclass">; ; forward_declare</property>
|
||||
<property name="subclass">STD_BITMAP_BUTTON; widgets/std_bitmap_button.h; forward_declare</property>
|
||||
<property name="toolbar_pane">0</property>
|
||||
<property name="tooltip">Check rule syntax</property>
|
||||
<property name="validator_data_type"></property>
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include <wx/artprov.h>
|
||||
#include <wx/xrc/xmlres.h>
|
||||
#include <wx/intl.h>
|
||||
class STD_BITMAP_BUTTON;
|
||||
class WX_HTML_REPORT_BOX;
|
||||
|
||||
#include <wx/string.h>
|
||||
|
@ -45,7 +46,7 @@ class PANEL_SETUP_RULES_BASE : public wxPanel
|
|||
wxHyperlinkCtrl* m_syntaxHelp;
|
||||
wxBoxSizer* m_topMargin;
|
||||
wxStyledTextCtrl* m_textEditor;
|
||||
wxBitmapButton* m_compileButton;
|
||||
STD_BITMAP_BUTTON* m_compileButton;
|
||||
WX_HTML_REPORT_BOX* m_errorsReport;
|
||||
|
||||
// Virtual event handlers, override them in your derived class
|
||||
|
|
Loading…
Reference in New Issue