Use standard bitmap button.
This commit is contained in:
@@ -154,15 +154,15 @@ DIALOG_PLOT::DIALOG_PLOT( PCB_EDIT_FRAME* aParent ) :
|
||||
wxBoxSizer* bButtonSizer;
|
||||
bButtonSizer = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
m_bpMoveUp = new wxBitmapButton( sbSizer->GetStaticBox(), wxID_ANY, wxNullBitmap,
|
||||
wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW | 0 );
|
||||
m_bpMoveUp = new STD_BITMAP_BUTTON( sbSizer->GetStaticBox(), wxID_ANY, wxNullBitmap,
|
||||
wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW | 0 );
|
||||
m_bpMoveUp->SetToolTip( _( "Move current selection up" ) );
|
||||
m_bpMoveUp->SetBitmap( KiBitmap( BITMAPS::small_up ) );
|
||||
|
||||
bButtonSizer->Add( m_bpMoveUp, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5 );
|
||||
|
||||
m_bpMoveDown = new wxBitmapButton( sbSizer->GetStaticBox(), wxID_ANY, wxNullBitmap,
|
||||
wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW | 0 );
|
||||
m_bpMoveDown = new STD_BITMAP_BUTTON( sbSizer->GetStaticBox(), wxID_ANY, wxNullBitmap,
|
||||
wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW | 0 );
|
||||
m_bpMoveDown->SetToolTip( _( "Move current selection down" ) );
|
||||
m_bpMoveDown->SetBitmap( KiBitmap( BITMAPS::small_down ) );
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 1992-2022 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
* Copyright (C) 1992-2023 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
@@ -96,8 +96,8 @@ private:
|
||||
PCB_PLOT_PARAMS m_plotOpts;
|
||||
|
||||
wxRearrangeList* m_plotAllLayersList;
|
||||
wxBitmapButton* m_bpMoveUp;
|
||||
wxBitmapButton* m_bpMoveDown;
|
||||
STD_BITMAP_BUTTON* m_bpMoveUp;
|
||||
STD_BITMAP_BUTTON* m_bpMoveDown;
|
||||
|
||||
/// The plot layer set that last time the dialog was opened.
|
||||
static LSET m_lastLayerSet;
|
||||
|
||||
Reference in New Issue
Block a user