From f102298eeb4e40bda3496134a360add52e95eda3 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 19 Apr 2025 16:53:01 +0100 Subject: [PATCH] Use link icon instead of refresh icon. --- pcbnew/dialogs/dialog_tablecell_properties.cpp | 2 +- pcbnew/dialogs/dialog_text_properties.cpp | 2 +- pcbnew/dialogs/dialog_text_properties_base.cpp | 6 +++--- pcbnew/dialogs/dialog_text_properties_base.fbp | 8 ++++---- pcbnew/dialogs/dialog_textbox_properties.cpp | 2 +- pcbnew/dialogs/dialog_textbox_properties_base.cpp | 4 ++-- pcbnew/dialogs/dialog_textbox_properties_base.fbp | 6 +++--- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/pcbnew/dialogs/dialog_tablecell_properties.cpp b/pcbnew/dialogs/dialog_tablecell_properties.cpp index 33029cad93..ff0e8c1cc3 100644 --- a/pcbnew/dialogs/dialog_tablecell_properties.cpp +++ b/pcbnew/dialogs/dialog_tablecell_properties.cpp @@ -116,7 +116,7 @@ DIALOG_TABLECELL_PROPERTIES::DIALOG_TABLECELL_PROPERTIES( PCB_BASE_EDIT_FRAME* a m_italic->SetBitmap( KiBitmapBundle( BITMAPS::text_italic ) ); m_adjustTextThickness->SetIsRadioButton(); - m_adjustTextThickness->SetBitmap( KiBitmapBundle( BITMAPS::refresh ) ); + m_adjustTextThickness->SetBitmap( KiBitmapBundle( BITMAPS::edit_cmp_symb_links ) ); SetupStandardButtons(); Layout(); diff --git a/pcbnew/dialogs/dialog_text_properties.cpp b/pcbnew/dialogs/dialog_text_properties.cpp index 43274c1e8d..19eb709893 100644 --- a/pcbnew/dialogs/dialog_text_properties.cpp +++ b/pcbnew/dialogs/dialog_text_properties.cpp @@ -202,7 +202,7 @@ DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES( PCB_BASE_EDIT_FRAME* aParent, PC m_mirrored->SetIsCheckButton(); m_mirrored->SetBitmap( KiBitmapBundle( BITMAPS::text_mirrored ) ); - m_adjustTextThickness->SetBitmap( KiBitmapBundle( BITMAPS::refresh ) ); + m_adjustTextThickness->SetBitmap( KiBitmapBundle( BITMAPS::edit_cmp_symb_links ) ); SetTitle( title ); m_hash_key = title; diff --git a/pcbnew/dialogs/dialog_text_properties_base.cpp b/pcbnew/dialogs/dialog_text_properties_base.cpp index 20aba968da..671290e0ca 100644 --- a/pcbnew/dialogs/dialog_text_properties_base.cpp +++ b/pcbnew/dialogs/dialog_text_properties_base.cpp @@ -94,7 +94,7 @@ DIALOG_TEXT_PROPERTIES_BASE::DIALOG_TEXT_PROPERTIES_BASE( wxWindow* parent, wxWi bSizer7 = new wxBoxSizer( wxHORIZONTAL ); m_cbKnockout = new wxCheckBox( this, wxID_ANY, _("Knockout"), wxDefaultPosition, wxDefaultSize, 0 ); - bSizer7->Add( m_cbKnockout, 0, wxALIGN_CENTER_VERTICAL, 10 ); + bSizer7->Add( m_cbKnockout, 1, wxTOP|wxBOTTOM|wxRIGHT, 15 ); bSizer7->Add( 20, 0, 1, wxEXPAND, 5 ); @@ -207,10 +207,10 @@ DIALOG_TEXT_PROPERTIES_BASE::DIALOG_TEXT_PROPERTIES_BASE( wxWindow* parent, wxWi m_adjustTextThickness = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE ); m_adjustTextThickness->SetToolTip( _("Adjust the text thickness") ); - bSizer8->Add( m_adjustTextThickness, 0, wxALIGN_CENTER_VERTICAL, 5 ); + bSizer8->Add( m_adjustTextThickness, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 ); - gbSizer1->Add( bSizer8, wxGBPosition( 5, 2 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL, 0 ); + gbSizer1->Add( bSizer8, wxGBPosition( 5, 2 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 ); m_PositionXLabel = new wxStaticText( this, wxID_ANY, _("Position X:"), wxDefaultPosition, wxDefaultSize, 0 ); m_PositionXLabel->Wrap( -1 ); diff --git a/pcbnew/dialogs/dialog_text_properties_base.fbp b/pcbnew/dialogs/dialog_text_properties_base.fbp index ee4273501c..a9727be1f9 100644 --- a/pcbnew/dialogs/dialog_text_properties_base.fbp +++ b/pcbnew/dialogs/dialog_text_properties_base.fbp @@ -2235,10 +2235,10 @@ - 0 + 5 2 2 - wxALIGN_CENTER_VERTICAL + wxALIGN_CENTER_VERTICAL|wxRIGHT 5 1 @@ -2309,8 +2309,8 @@ - 5 - wxALIGN_CENTER_VERTICAL + 3 + wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT 0 1 diff --git a/pcbnew/dialogs/dialog_textbox_properties.cpp b/pcbnew/dialogs/dialog_textbox_properties.cpp index ee8fd06225..325876ebf0 100644 --- a/pcbnew/dialogs/dialog_textbox_properties.cpp +++ b/pcbnew/dialogs/dialog_textbox_properties.cpp @@ -117,7 +117,7 @@ DIALOG_TEXTBOX_PROPERTIES::DIALOG_TEXTBOX_PROPERTIES( PCB_BASE_EDIT_FRAME* aPare m_separator4->SetIsSeparator(); - m_adjustTextThickness->SetBitmap( KiBitmapBundle( BITMAPS::refresh ) ); + m_adjustTextThickness->SetBitmap( KiBitmapBundle( BITMAPS::edit_cmp_symb_links ) ); // Configure the layers list selector. Note that footprints are built outside the current // board and so we may need to show all layers if the text is on an unactivated layer. diff --git a/pcbnew/dialogs/dialog_textbox_properties_base.cpp b/pcbnew/dialogs/dialog_textbox_properties_base.cpp index 55d8b671b3..9622c53065 100644 --- a/pcbnew/dialogs/dialog_textbox_properties_base.cpp +++ b/pcbnew/dialogs/dialog_textbox_properties_base.cpp @@ -198,10 +198,10 @@ DIALOG_TEXTBOX_PROPERTIES_BASE::DIALOG_TEXTBOX_PROPERTIES_BASE( wxWindow* parent m_adjustTextThickness = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE ); m_adjustTextThickness->SetToolTip( _("Adjust the text thickness") ); - bSizer5->Add( m_adjustTextThickness, 0, wxALIGN_CENTER_VERTICAL, 5 ); + bSizer5->Add( m_adjustTextThickness, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 ); - gbSizer1->Add( bSizer5, wxGBPosition( 7, 2 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL, 5 ); + gbSizer1->Add( bSizer5, wxGBPosition( 7, 2 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 ); m_OrientLabel = new wxStaticText( this, wxID_ANY, _("Orientation:"), wxDefaultPosition, wxDefaultSize, 0 ); m_OrientLabel->Wrap( -1 ); diff --git a/pcbnew/dialogs/dialog_textbox_properties_base.fbp b/pcbnew/dialogs/dialog_textbox_properties_base.fbp index a7b830bdc7..0d074fcec3 100644 --- a/pcbnew/dialogs/dialog_textbox_properties_base.fbp +++ b/pcbnew/dialogs/dialog_textbox_properties_base.fbp @@ -2220,7 +2220,7 @@ 5 2 2 - wxALIGN_CENTER_VERTICAL + wxALIGN_CENTER_VERTICAL|wxRIGHT 7 1 @@ -2291,8 +2291,8 @@ - 5 - wxALIGN_CENTER_VERTICAL + 3 + wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT 0 1