Fix inactive cells being black in default settings panels on MSW.
This commit is contained in:
parent
d4879e05ac
commit
5c86247e21
|
@ -240,7 +240,7 @@ PANEL_FP_EDITOR_DEFAULTS::~PANEL_FP_EDITOR_DEFAULTS()
|
||||||
|
|
||||||
void PANEL_FP_EDITOR_DEFAULTS::loadFPSettings( FOOTPRINT_EDITOR_SETTINGS* aCfg )
|
void PANEL_FP_EDITOR_DEFAULTS::loadFPSettings( FOOTPRINT_EDITOR_SETTINGS* aCfg )
|
||||||
{
|
{
|
||||||
wxColour disabledColour = wxSystemSettings::GetColour( wxSYS_COLOUR_BACKGROUND );
|
wxColour disabledColour = wxSystemSettings::GetColour( wxSYS_COLOUR_FRAMEBK );
|
||||||
|
|
||||||
auto disableCell =
|
auto disableCell =
|
||||||
[&]( int row, int col )
|
[&]( int row, int col )
|
||||||
|
|
|
@ -128,7 +128,7 @@ void PANEL_SETUP_TEXT_AND_GRAPHICS::onUnitsChanged( wxCommandEvent& aEvent )
|
||||||
|
|
||||||
bool PANEL_SETUP_TEXT_AND_GRAPHICS::TransferDataToWindow()
|
bool PANEL_SETUP_TEXT_AND_GRAPHICS::TransferDataToWindow()
|
||||||
{
|
{
|
||||||
wxColour disabledColour = wxSystemSettings::GetColour( wxSYS_COLOUR_BACKGROUND );
|
wxColour disabledColour = wxSystemSettings::GetColour( wxSYS_COLOUR_FRAMEBK );
|
||||||
|
|
||||||
#define SET_MILS_CELL( row, col, val ) \
|
#define SET_MILS_CELL( row, col, val ) \
|
||||||
m_grid->SetCellValue( row, col, m_Frame->StringFromValue( val, true ) )
|
m_grid->SetCellValue( row, col, m_Frame->StringFromValue( val, true ) )
|
||||||
|
|
Loading…
Reference in New Issue