Browse Source

Fix layer widget appearance on OSX

pull/10/head
Simon Wells 10 years ago
committed by Chris Pavlina
parent
commit
b5a9e466ff
  1. 6
      pcbnew/layer_widget.cpp

6
pcbnew/layer_widget.cpp

@ -210,12 +210,12 @@ wxBitmapButton* LAYER_WIDGET::makeColorButton( wxWindow* aParent, EDA_COLOR_T aC
// then create a wxBitmapButton from it.
wxBitmap bitmap = makeBitmap( aColor );
#ifndef __WXMAC__
#ifdef __WXMAC__
wxBitmapButton* ret = new wxBitmapButton( aParent, aID, bitmap,
wxDefaultPosition, wxSize(BUTT_SIZE_X, BUTT_SIZE_Y), wxBORDER_RAISED );
wxDefaultPosition, wxSize(BUTT_SIZE_X, BUTT_SIZE_Y), wxBORDER_NONE );
#else
wxBitmapButton* ret = new wxBitmapButton( aParent, aID, bitmap,
wxDefaultPosition, wxSize(BUTT_SIZE_X, BUTT_SIZE_Y));
wxDefaultPosition, wxSize(BUTT_SIZE_X, BUTT_SIZE_Y), wxBORDER_RAISED );
#endif
// save the color value in the name, no where else to put it.
ret->SetName( makeColorTxt( aColor ) );

Loading…
Cancel
Save